Repository navigation
pm-dispatch: contract-review states the session-evidence limit; the record templates carry the SQL push-down check - #34029
Merged
Conversation
…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>
Contributor
Author
|
domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19 席位核对 · ACCEPT · head
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Steve · project thread
Fixes #33716
Clause-②: no
Metadata-protocol: none
维护者速读
verify-review-tier.mjs就拒收,改在子代理里重跑;复核简报和记录模板的 ③ 加上 SQL 下推检查(SQL 能下推处新增 id 物化或应用内 join 而无理由即记发现),模板还写明无复核面的 PR 由席位自读、发现记在席位的 ACCEPT 评论里。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-test403 例全绿。What changes
.claude/skills/pm-dispatch/references/contract-review.md, theServed-tier:evidence bullet (lines 35–38). The session route now carries the limitverify-review-tier.mjsenforces: 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.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).--templatelegend: a new ③ entry (dev flags andopen_questionsanswered 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 inFACELESS_FINDING_CARRIER, the seat's ACCEPT comment on the PR.Tests
node scripts/pm/record-recognisers.mjs --self-test: exit 0, 403 cases across the declared batteries.PUSH_DOWN_CHECKbetween 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.scripts/ablation-replace.mjs, each restored to the HEAD blob withgit diff HEADempty:Acceptance notes
handsWorkToAnotherAgent): true forAgent,Task,Workflow,SendMessage,Skill, and connector tools such asmessage_thread,message_coordinator,send_message,start_remote_control,create_trigger; false forpost_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".贴:moves up one line, "(调用显式传该档 model)" becomes "(显式传该档 model)" and "给其输出文件" becomes "给输出文件" (same meaning). Byte lengths 118/118/119/118, all within 120.--templatelegend only. The ③ line incontract-review.mdsits 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.record-recognisers.mjs(two constants defined just abovecontractReviewTemplateLines, two battery-roster rows, two batteries); the mailboxreadMailboxCommentregion is untouched.check:pm-skill-id-lintgreen).Verification
check-governed-merges --branch HEAD→ Tier S (.claude/**×1;scripts/pm/record-recognisers.mjsnot on the register); 51 changed lines, under 3000. Stays draft until aCONTRACT_REVIEW_TIERPASS 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;--ranreconciliation: "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, forcheck:doc-formula-expressions.Generated by Claude Code