Skip to content

docs: ADR-0002 + config guide for preset-based semantic explosion (#17)#21

Merged
NickMoignard merged 1 commit into
masterfrom
docs/17-preset-explosion
Jul 11, 2026
Merged

docs: ADR-0002 + config guide for preset-based semantic explosion (#17)#21
NickMoignard merged 1 commit into
masterfrom
docs/17-preset-explosion

Conversation

@NickMoignard

Copy link
Copy Markdown
Owner

What & why

Final slice of preset-based semantic explosion (#17) — docs only. Records the design shipped across #14#16 and updates the user-facing docs to match the actual behavior.

Changes

  • ADR-0002 (docs/adr/0002-preset-semantic-explosion.md): the preset/rule-engine architecture — presets supersede profiles (carrying option defaults + path-anchored rules); the ForceExtract and Sidecar actions; the local per-scalar fidelity guard and the two yaml.v3 invariants its soundness rests on (content-only style, disabled wrapping — with the "don't add SetWidth" warning); the split: config precedence; and verify running the real preset. Marked as superseding ADR-0001 §4's profile. Lists deferred items (user-definable rules, more sidecars, nested identity paths).
  • Config guide: documents --preset (+ deprecated --profile), --no-sidecar, the split: config block, and the QuickSight semantic layout — sheets → folders, subcomponent categories → files, dataset SQL → .sql sidecars. Fixes the now-stale "visuals stay inline at depth 3" claim (the preset now folders them via rules).
  • README: quick-start tree updated to show the sheet folder + per-category files, plus a one-line pointer to the semantic behavior.

Verification

  • Example paths in the guide were checked against real split --preset quicksight output (.../sheets/customer-analysis/{visuals,filtercontrols,...}.yml).
  • ADR-0002 internal link resolves; go build ./... clean (docs-only change).
  • No lingering stale references (--profile as primary, "four flags", "visuals inline") outside the historical ADR-0001 record.

Closes #17.

🤖 Generated with Claude Code

Record the preset/rule-engine design as ADR-0002: presets supersede profiles and
carry option defaults + path-anchored rules; the ForceExtract and Sidecar actions;
the local per-scalar fidelity guard and the two yaml.v3 invariants it rests on; the
split: config precedence; and verify running the real preset. Notes what was
deferred (user-definable rules, more sidecars, nested identity paths).

Update the config guide and README to document the actual shipped behavior:
--preset (and deprecated --profile), --no-sidecar, the split: config block, and the
quicksight semantic layout — sheets to folders, subcomponent categories to files,
and dataset SQL to readable .sql sidecars. Fixes the now-stale claims that visuals
stay inline at the default depth.

Closes #17.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the preset-based “semantic explosion” design and updates user-facing docs to match the shipped QuickSight preset behavior (sheet foldering, per-subcomponent files, and SQL sidecars), including adding a new ADR to record the architectural decision.

Changes:

  • Add ADR-0002 describing the preset + rule-engine architecture, sidecar action, and fidelity guard constraints.
  • Update the configuration guide to document --preset, --no-sidecar, split: config precedence, and the QuickSight semantic layout.
  • Update the README quick-start example/output tree and link to the configuration guide.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
README.md Updates the quick-start tree output to reflect the QuickSight preset’s semantic layout and links to the config guide.
docs/guides/configuring-for-yaml-types.md Documents presets (incl. semantic rules), --no-sidecar, and updated QuickSight worked examples.
docs/adr/0002-preset-semantic-explosion.md Introduces ADR-0002 capturing the preset-based semantic explosion design and key invariants.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NickMoignard NickMoignard merged commit 177638b into master Jul 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: ADR-0002 + config guide for preset-based semantic explosion

2 participants