Skip to content

pm-dispatch: contract-review states the session-evidence limit; the record templates carry the SQL push-down check - #34029

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-b3hvs6
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-b3hvs6

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #33716

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:契约复核细则写明「本会话转录作达档证据」的限制:卡线程或席内复核的会话只要起过别的 agent、给别的线程发过消息或调过技能,verify-review-tier.mjs 就拒收,改在子代理里重跑;复核简报和记录模板的 ③ 加上 SQL 下推检查(SQL 能下推处新增 id 物化或应用内 join 而无理由即记发现),模板还写明无复核面的 PR 由席位自读、发现记在席位的 ACCEPT 评论里。
  • 为什么改:规则文字落后于工具:校验器早已这样拒收,而 SQL 下推检查只写进了规则,只拿简报干活的复核子代理看不到。
  • 风险与回滚:只改内部规则文字和模板打印文字,不碰产品代码;contract-review.md 仍是 63/63 行,上限没抬;回滚即 revert 本 PR。
  • 先看:contract-review.md 第 36–38 行;scripts/pm/record-recognisers.mjs 的 PUSH_DOWN_CHECK 常量与 --template 的 ③ 图例。
  • 两分钟验证:node scripts/pm/record-recognisers.mjs --brief-template | grep -A2 '③ Boundary',预期 ③ 下面多出两行 SQL push-down 检查;--self-test 403 例全绿。
  • 需要你做的:无,席位落地(Tier S,等达档复核 PASS)。

What changes

  1. .claude/skills/pm-dispatch/references/contract-review.md, the Served-tier: evidence bullet (lines 35–38). The session route now carries the limit verify-review-tier.mjs enforces: a card thread or an in-seat review passes its own session transcript only when that session started no other agent, sent no message and called no Skill; otherwise the review re-runs in a sub-agent and passes that sub-agent's output file. The refusal sentence now says where to re-run (拒即子代理重跑). Paid in place: 63 → 63 lines, no ceiling moved.
  2. scripts/pm/record-recognisers.mjs, template and brief regions only:
    • PUSH_DOWN_CHECK: the ③ SQL push-down check in one wording, the English PR docs(agents,skills): write down the SQL-first rule — memory and mongo refuse, never a slower path kept for parity #33693 gave its ③ line (a new id materialisation or in-app join where SQL could push down is a finding unless a reason is given), pointing at AGENTS.md Prime Directive 5.
    • --brief-template: the ③ line gains the check, on every face, the declaration face included (the rule says 恒查, so it is face-neutral).
    • --template legend: a new ③ entry (dev flags and open_questions answered or escalated, plus the push-down check), and the carrier on a PR no face touches: no record is owed there, so the seat's self-read runs the same check and the finding goes in FACELESS_FINDING_CARRIER, the seat's ACCEPT comment on the PR.
    • Self-test: three new pins, battery floors raised template 30 → 32 and brief 23 → 24.

Tests

  • node scripts/pm/record-recognisers.mjs --self-test: exit 0, 403 cases across the declared batteries.
  • New pins: the ③ legend carries PUSH_DOWN_CHECK between the ③ and ④ entries on every face (bare, schema, rules, narrowing, declaration); the legend names the faceless-PR carrier; every face's brief carries the check inside the copyable region.
  • Mutation legs on fd9a7fa through scripts/ablation-replace.mjs, each restored to the HEAD blob with git diff HEAD empty:
    • brief lines deleted: exit 1, the brief pin red;
    • legend lines deleted: exit 1, the legend pin red;
    • carrier sentence rewritten: exit 1, the carrier pin red.
  • No forced test edits.

Acceptance notes

  • What the verifier refuses, measured on bc6b7ff (handsWorkToAnotherAgent): true for Agent, Task, Workflow, SendMessage, Skill, and connector tools such as message_thread, message_coordinator, send_message, start_remote_control, create_trigger; false for post_message, update_progress_checklist, Read, Bash. So a card thread that has told its seat its branch, or loaded a skill, already fails the session route; in practice its evidence is a review sub-agent's output file. The bullet says this in place of the old unconditional "card thread or in-seat review gives this session".
  • Line payment. Lines 36–38 are re-flowed inside the same three lines (no line bought): 贴: moves up one line, "(调用显式传该档 model)" becomes "(显式传该档 model)" and "给其输出文件" becomes "给输出文件" (same meaning). Byte lengths 118/118/119/118, all within 120.
  • Faceless-PR carrier lives in the --template legend only. The ③ line in contract-review.md sits at exactly 120 bytes, so naming the carrier there costs a line paid by a cut elsewhere; and the brief is written only for a reviewer, which a faceless PR never has. Raised in the report as an open question.
  • Concurrency. The diff stays in the template, brief and self-test regions of record-recognisers.mjs (two constants defined just above contractReviewTemplateLines, two battery-roster rows, two batteries); the mailbox readMailboxComment region is untouched.
  • No issue numbers in the operative skill text (check:pm-skill-id-lint green).

Verification

  • Governed tier: check-governed-merges --branch HEAD → Tier S (.claude/** ×1; scripts/pm/record-recognisers.mjs not on the register); 51 changed lines, under 3000. Stays draft until a CONTRACT_REVIEW_TIER PASS record names the head.
  • dispatch-gates --tier: no path-derived mandate.
Derived gates on fd9a7fa: 38 derived, 38 run, all exit 0

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, each exit captured before any pipe; --ran reconciliation: "38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero)". Before the gates: turbo run build --filter=@objectstack/formula... --filter=@objectstack/lint... under the verify lock, VERDICT command-exit 0, for check:doc-formula-expressions.

node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs :: exit 0
node scripts/check-declaration-mirrors.mjs --self-test :: exit 0
node scripts/check-self-test-wired.mjs :: exit 0
node scripts/check-self-test-wired.mjs --self-test :: exit 0
node scripts/check-self-test-workflow-commands.mjs :: exit 0
node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0
node scripts/check-whole-set-label-write.mjs :: exit 0
node scripts/check-whole-set-label-write.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/check-harness-current.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:agent-test-spelling :: exit 0
pnpm check:bash32-floor :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-record-recognisers :: exit 0
pnpm check:pm-skill-id-lint :: exit 0
pnpm check:pm-skill-ratchet :: exit 0
pnpm check:pnpm-filter-targets :: exit 0
pnpm check:pnpm-flag-spellings :: exit 0
pnpm check:ratchet-remedy-authority :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:scripts-symbol-anchors :: exit 0
pnpm check:skill-frame-sync :: exit 0
pnpm check:watch-hint-literal :: exit 0
  • Every family CI runs beyond the derived list: read off this PR's check-runs.

Generated by Claude Code

…ecord templates carry the SQL push-down check

contract-review.md: a card thread or in-seat review passes its own session
transcript only when the session started no other agent, sent no message
and called no Skill (what verify-review-tier.mjs refuses); otherwise the
review re-runs in a sub-agent. Paid in place, 63/63 lines.

record-recognisers.mjs: the --brief-template ③ line and the --template
legend carry the SQL push-down check on every face, and the legend names
the faceless-PR carrier (the seat's ACCEPT comment). Self-test pins: three.

Claude-Session: https://claude.ai/code/session_01ADHkmSZHK7Um3TifRRbuLE
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19

席位核对 · ACCEPT · head fd9a7fa743994ae28ba24c0cb4e00feb3b803b4d · 2026-11-15T16:57Z

  • 形态: 2 files, .claude/skills/pm-dispatch/references/contract-review.md (+3/−3, lines 36–38, 63/63 lines) and scripts/pm/record-recognisers.mjs (template, brief and self-test regions only; the mailbox region is untouched), +46 / −5. check-governed-merges --pr 34029: Tier S (席内达档复核落地).
  • 前提实测: both predecessor PRs merged (pm: the governed-merges sweep lists low-risk arm landings apart and judges each on a same-head at-tier PASS record #33711, docs(agents,skills): write down the SQL-first rule — memory and mongo refuse, never a slower path kept for parity #33693); grep push-down on record-recognisers.mjs returned nothing on bc6b7ffd; the dev measured handsWorkToAnotherAgent refusing message_thread, send_message and Skill.
  • 复核: PASS 6897840089 on this head, Served-tier: CONTRACT_REVIEW_TIER, no must-fix, no should-fix. PUSH_DOWN_CHECK matches the merged check word for word; the faceless carrier agrees with the ACCEPT rules.
  • 门禁 check-runs: 49 on this head, all completed, 26 success, 23 skipped, none red (the ratchet and id-lint ride Lint · PM dispatch-gates).
  • 接受的偏差: nits N1–N4 not carried (the session bullet summarises the verifier's main doors; any refusal sends the review to a sub-agent, so no wrong record can result). Dev open question answered A: the carrier stays in the --template legend.
  • 范围外去向: none.
  • 落地: K = 3 (PRBASE 9db729f8). Tier S → ready + auto-merge by this seat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm-dispatch: contract-review.md and the record templates trail the verifier's session-evidence limit and the new SQL push-down ③ check

2 participants