Back to demo

Public demo question

Merge Layered Configuration

Stage: Build the First Vertical SliceA feature needs safe defaults with environment-specific overrides.DeliverableA recursively merged JSON configuration.I...

Stage: Build the First Vertical Slice

A feature needs safe defaults with environment-specific overrides.

Deliverable

A recursively merged JSON configuration.

Input and output contract

Read base JSON on the first line and override JSON on the second; recursively merge objects and print sorted compact JSON.

Acceptance criteria

  1. Preserve unmodified defaults.
  2. Replace scalar values.
  3. Merge nested objects recursively.

Suggested vibe loop

Ask the coach to restate the contract, inspect the starter files, propose one small plan, and explain what evidence will prove the change. Implement in app.py, keep main.py stable, then run the visible example before submitting.