Skip to content

Read design reference sections when the task needs them - #1490

Merged
mergify[bot] merged 3 commits into
mainfrom
lean178/1473-design-read-load
Nov 26, 2026
Merged

mergify[bot] merged 3 commits into
mainfrom
lean178/1473-design-read-load

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Read design reference sections when the task needs them

Context and goal

  • Goal: Load fewer design instructions before drafting or reviewing a design.
  • Problem: A design trigger requests an entire reference even when only one or two sections affect the first decision.
  • Context: The reference stays available, and its existing checks run when their decisions or validation steps come up.

Closes #1473

Acceptance

  • A known-type draft starts with Grounding and Design Contract. Artifact choice, decisions, lifecycle and type-specific validation stay at their stated triggers.
  • Design reviews start with Design Contract and Design Lenses. Alias routing and non-design reviews stay intact.
  • The measured initial load meets both issue targets, the batched skill bench shows no regression, and the existing doc budgets pass.

Notes

  • Base: 504a97a. The bench compares the four changes together against 29a3f88, whose instruction text matches this base.

Validation

Recorded for 40a03f05d4ce

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, e5a2d31, request_changes
  • delta, claude, 40a03f0, approve

Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot 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.

loopzero primary review by claude on e5a2d31a394e42dc5310d670a4a64fa2585f09e8, 30.2s: request_changes (0 critical, 1 important, 2 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

Comment thread core/skills/write-design-doc/SKILL.md Resolved
Comment thread core/skills/write-design-doc/SKILL.md Outdated
Read only Grounding and Design Contract in [the reference](reference.md) up front.
Read Artifact Choice if undecided, Decisions for material choices, Artifact
Lifecycle for relationships or time gates, and Validate and the applicable
Type-Specific Checks before handoff. Resolve ambiguity and keep blockers owned.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion: Timing of ambiguity alignment and blocker visibility weakened

"Align material ambiguity before drafting" became "Resolve ambiguity", and "keep unresolved questions owned and visibly blocking the relevant action" became "keep blockers owned". The "before drafting" timing is gone, so the agent may draft first and ask later. "Visibly blocking" survives only in the existing-artifact paragraph (line 26), not for new drafts. Consider "Align material ambiguity before drafting; keep blockers owned and visible." It costs about the same number of words.

Comment thread core/skills/write-design-doc/SKILL.md Outdated
visibly blocking the relevant action.
Read only Grounding and Design Contract in [the reference](reference.md) up front.
Read Artifact Choice if undecided, Decisions for material choices, Artifact
Lifecycle for relationships or time gates, and Validate and the applicable

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion: Lifecycle trigger misses the implementation-readiness gate and generated fields

Artifact Lifecycle loads only "for relationships or time gates". It also carries two rules no other trigger reaches: change generated lifecycle fields and indexes through their source or generator, and an implementation-ready ADR or blueprint needs converged questions or explicit blockers. An agent editing an existing artifact's generated frontmatter, or handing off an implementation-ready ADR or blueprint, may not load them. Either widen the trigger ("relationships, generated fields, time gates or implementation-ready handoff") or move the readiness sentence into Type-Specific Checks, which already loads before handoff.

eowca and others added 2 commits November 26, 2026 04:30
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot 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.

loopzero delta review by claude on 40a03f05d4ce9172894768d56270dc0e8fb9a1fc, 15.8s: approve (0 critical, 0 important, 1 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

drafting; preserve requester decisions and keep unresolved questions owned and
visibly blocking the relevant action.
Read only Grounding and Design Contract in [reference](reference.md) first.
Before drafting, read Artifact Choice conventions. Read its table if type is open.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion: The "conventions" read and the table read are not separately loadable

In reference.md:16-30, the 5-row type table and the convention paragraph (paths, templates, frontmatter, terminology, labels, linking) sit under the same ## Artifact Choice heading. Nothing labels or anchors the paragraph as "conventions". Any agent that reads Artifact Choice before drafting therefore loads the table too, so "Read its table if type is open" doesn't reduce the initial load. It only tells the agent what to pay attention to, which also makes the bench comparison for this step mostly cosmetic. The behaviour is still correct: conventions are read before drafting and the table stays available when the type is open. Smallest fix, if the split should really reduce what gets loaded: move the convention paragraph into its own heading, for example ## Conventions, and name that heading in SKILL.md. Otherwise, simplify line 13 to "Before drafting, read Artifact Choice."

@eowca
eowca marked this pull request as ready for review November 26, 2026 07:20
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 7f7016a at 07:31 UTC

10 min in the queue, 4 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 07:21 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1633
  • ✅ Merged 07:31 · 7f7016a · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 7f7016a into main Nov 26, 2026
17 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1473-design-read-load branch November 26, 2026 07:32
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.

Read design reference sections when the task needs them

1 participant