Skip to content

planning/design-handoff: Zachman six-interrogative completeness check in the gate #3817

Description

@kyle-sexton

Parent

Refs #3801

Agent Brief

Type: Feature
Summary: The design-handoff gate reports six-dimension coverage across resolved and directional design threads as an advisory table.

Current behavior:
The design-handoff gate performs a binary check that every design thread is RESOLVED, directional, or TAGGED-DEFERRED. It says nothing about whether the resolved set covers the dimensions of the design, so a design can pass the gate having never addressed where something runs or who operates it.

Desired behavior:
After the binary gate's verdict, on PASS and FAIL alike and after the unchanged verdict sentence, the gate emits one advisory table with six rows, what, how, where, who, when, why, and columns Dimension | Covered by | Status. The dimension names appear BARE in the table's first column (not in code spans; the sanity check greps for a bare | why | row). A row is covered when a thread whose status is RESOLVED or directional records a decision about that dimension; the cell names the thread and its status. TAGGED-DEFERRED threads never cover a row. An uncovered row reads none.

design-threads.md carries no dimension field (threads are name, options, status, rationale), so coverage is a judgment read over the whole artifact. The skill states the reading rule per dimension in one line each, rendered as the example table itself (one row per dimension): what = the thing being built or changed; how = mechanism or algorithm; where = location, topology, runtime placement; who = actor, owner, operator, caller; when = timing, sequencing, lifecycle; why = recorded rationale for the decision.

On a design-resolution.md early-exit the same table is read over that file. The handoff summary gains one bullet, "Uncovered dimensions", listing them verbatim, and the resume prompt carries them so /planning:plan can hold them as open questions. The table is never written to disk. The gate's pass/fail sentence and routing are unchanged; the coverage report never blocks and no flag makes it block.

The six words are introduced as "the six dimensions a design answers". No Zachman or TOGAF prose; the frameworks are not named, explained, or cited.

Key interfaces:

  • The design-handoff gate output: a new ## Coverage report (advisory) section between "Binary gate" and "Handoff summary" in plugins/planning/skills/design-handoff/SKILL.md; the handoff summary's new bullet; the resume prompt.
  • The gate's pass/fail determination: unchanged; coverage never contributes to it.
  • The frontmatter description gains one clause (for example "...then an advisory six-dimension coverage table...") and every existing "Use when:" and "Skip when:" phrase stays verbatim. skill-quality check 3 is advisory only, so the PR must run the diff assertion below.

Files:

  • plugins/planning/skills/design-handoff/SKILL.md (66 lines today; the FAIL sentence "A thread that is unresolved AND untagged is a silent gap" stays byte-identical; Gotchas gains "A coverage gap is information for the human, not a FAIL; do not promote it")
  • plugins/planning/skills/design-handoff/evals/evals.json: three new cases, each with a new fixture under evals/fixtures/ referenced in files[]: coverage-table-all-resolved (threads covering all six; expects six rows each naming a thread and status), coverage-gaps-still-pass (all threads resolved, nothing about where or who; expects PASS and two none rows), coverage-on-early-exit (a design-resolution.md fixture; expects the table read over it). Existing case gate-fails-unresolved-untagged-thread gains one expectation: the FAIL verdict and routing are unchanged and any coverage table follows them
  • plugins/planning/README.md: the design-handoff row mentions the advisory coverage table
  • plugins/planning/CHANGELOG.md ## [0.37.0] ### Added; plugins/planning/.claude-plugin/plugin.json version 0.37.0
  • docs/SKILL-CHEAT-SHEET.md only if metadata.summary changes (it should not)

Sanity checks. Run git fetch origin main first (the base ref is also CHECK_SKILL_BASE_REF). All must hold before opening the PR. Given in a fenced block so nothing is markdown-escaped:

! grep -qiE 'zachman|togaf' plugins/planning/skills/design-handoff/SKILL.md
grep -qE '^\| *why *\|' plugins/planning/skills/design-handoff/SKILL.md && grep -q 'Dimension | Covered by | Status' plugins/planning/skills/design-handoff/SKILL.md   # both fail on today's main; the absence grep above only means something once these pass
grep -q 'unresolved AND untagged is a silent gap' plugins/planning/skills/design-handoff/SKILL.md
! (git diff origin/main -- plugins/planning/skills/design-handoff/SKILL.md | grep -q '^-.*Use when:')   # passes vacuously until the file changes; it is the real gate on the description edit (check 3 only WARNs)
test "$(grep -c '"id":' plugins/planning/skills/design-handoff/evals/evals.json)" -eq 8
grep -q '^## \[0.37.0\]' plugins/planning/CHANGELOG.md
bash scripts/check-changed-skills.sh origin/main
bash scripts/validate-plugins.sh
bash scripts/check-skill-count-claims.sh --check
bash scripts/check-orphaned-fixtures.sh --check
bash scripts/check-changelog-parity.sh --check-bump origin/main && bash scripts/check-changelog-parity.sh --check-preserved origin/main && bash scripts/check-changelog-parity.sh --check-order
npx markdownlint-cli2 <every changed markdown file>   # 0 issues

Acceptance criteria:

  • Running the design-handoff gate against a design with all threads resolved emits a coverage table with one row per dimension, each naming the resolved or directional thread that addresses it, or none.
  • A design with uncovered dimensions still passes the gate when every thread is RESOLVED, directional, or TAGGED-DEFERRED.
  • A design with an unresolved untagged thread still fails the gate with the same message as today (the sanity check pins the sentence; byte-identity is manual smoke recorded in the PR body).
  • On a design-resolution.md early-exit the table is read over that file.
  • Uncovered dimensions appear in the handoff summary and the resume prompt; nothing is written to disk.
  • No Zachman or TOGAF framework prose appears in the skill content.
  • Every existing "Use when:" phrase in the description is preserved (diff assertion above).
  • bash scripts/check-changed-skills.sh origin/main passes for the design-handoff skill.
  • markdownlint passes on the changed files.
  • The planning plugin version is 0.37.0 with a matching CHANGELOG entry.
  • The planning plugin README row reflects the change.

Out of scope:

  • Making coverage blocking, or adding a flag that makes it blocking.
  • Shipping a Zachman grid as a skill.
  • Changing how design threads are resolved or tagged, or writing coverage into design-threads.md.
  • Prompting for dimension coverage at design time in /planning:design (deferred; see the container).

Amendment note (2026-09-06, planning slice #3807)

This body is the worker's complete contract. The planner's record (docs/topics/cross-repo-landscape/PLAN.md on branch plan/3807-cross-repo-landscape) is contract-tier and never merges, so it is not reachable from a branch cut from main; nothing in it is needed beyond what is here. Changes from the original brief: (1) "resolved" widened to "resolved or directional" so a dimension the team has agreed a direction for does not read as none; TAGGED-DEFERRED never covers; (2) the table is emitted on FAIL too, after the unchanged verdict, and on early-exit over design-resolution.md; (3) the reading rule per dimension is stated because threads carry no dimension field, and dimension names are bare in the table; (4) "interrogative" wording replaced by "dimension" so no framework vocabulary enters the skill; (5) the description edit is guarded by a diff assertion because skill-quality check 3 is advisory; (6) /planning:plan reads the design artifacts on disk, not the gate's emitted text, so the table breaks no downstream hop.

Blocked by

Activity

  1. added
    agent-ready
    on Sep 6, 2026
  2. added
    needs-triage
    on Sep 6, 2026
  3. self-assigned this
    on Sep 6, 2026
  4. kyle-sexton commented on Sep 6, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  5. added a commit that references this issue on Sep 7, 2026
    63f52be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyneeds-triage

Fields

No fields configured for Feature.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions