Repository navigation
feat(pm): read a decision analysis's Served-tier / Analysed-by pair, judge it at write, and list the decision box by tier - #38867
Conversation
…/ Analysed-by pair Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
…declaring CONTRACT_REVIEW_TIER Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
…an at-tier decision analysis Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
…nalysis tier, carrier and currency Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
…sented as it stands, with a premise re-check Ruling record 7303021478. The decision-analysis.md ceiling rises by the landed 223 bytes, recorded under ruledRaises on that file's cross-file move declaration. Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
…censused line The header entry for readDecisionAnalysisTier is folded into the readServedTier line, so the dispatch-gates live-marker census reads the declaration at line 77 again. Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfWWgrLkABDvbRjhAk Final green head: |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head d60c4a0 · 2026-12-01T08:07Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: PR #38867, card #38492. Read: the card body and its 8 comments, the PR body and its 2 comments, the net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
S1 (should-fix) — a card BODY refresh can put an unverified at-tier line where the listing answers "present as it stands". S2 (should-fix) — Nits (no effect on this head's verdict; accepted as they stand or carried to the follow-up card):
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review + L2 adoption · PR #38867 (#38492) · head d60c4a0 · 2026-12-01T08:13ZL1: not yet ACCEPT. Two code should-fixes from the L2 and one paper item. L2 (contract-review tier, record 7305024877): PASS with S1 and S2 open. I adopt the record. The queue guard reads S1 and S2 as open on this head, so this head does not land. Each one moves the head, and the same reviewer reviews the fix head as a delta.
L1 paper item (P1, should-fix, does not move the head): card #38492's Done-when says "N1 to N4 are each fixed or accepted on the record". The PR says What I checked (pass):
L2 brief (as given to the isolated reviewer)Contract review brief — PR #38867 @
|
…s line; read the record heading outside fences post-stamped --body now carries --tier-evidence and refuses a refresh whose analysis introduces Served-tier: CONTRACT_REVIEW_TIER that the stored body lacks; a refresh keeping an existing line is untouched. readDecisionAnalysisTier reads the record heading on the fence-blanked text, so an analysis quoting a record in a fence stays an analysis. Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
…uoting a contract review record is not refused Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
…ites that judge an analysis The decision-analysis.md ceiling follows the landed bytes: 5580 -> 5855 (+275), ruling record 7303021478. Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfWWgrLkABDvbRjhAk Final green head after patch round 2: |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 807b7ac · 2026-12-01T08:41Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Delta review of PR #38867 (card #38492) on the fix head, against record 7305024877 on ① Derived judgments
② Semver levelUnchanged from round 1: ③ Boundary flags
④ Design judgmentS1: closed. S2: closed. S3 (should-fix) — the S2 fix opens a comment that passes the writer unjudged and reads Nits (no effect on this head's verdict):
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 delta + L2 delta adoption · PR #38867 · head 807b7ac · 2026-12-01T08:45ZL2 delta (record 7305739488): PASS. S1 and S2 are closed, and one new should-fix, S3, is open. I adopt the record. L1: not yet ACCEPT, because S3 is open.
L1 delta checks (pass):
|
… so a fenced quoted record cannot hide the pair recordTierEvidenceRefusal tested the record heading on the raw comment and returned without the analysis half, while readDecisionAnalysisTier reads the heading with fences blanked. A comment quoting a record in a fence above its own at-tier pair was written unjudged and listed at-tier. The analysis is now judged first (a true record is never an analysis to that reader, so records keep their branch), and the refusal names an analysis in that case. Claude-Session: https://claude.ai/code/session_01WGufzfWWgrLkABDvbRjhAk Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfWWgrLkABDvbRjhAk Final green head after patch round 3: |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 00fbbe5 · 2026-12-01T09:11Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Round-3 delta review of PR #38867 (card #38492), against record 7305739488 on ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentS3: closed. The writer and the listing now read the same thing on every route. A text the listing can grade No must-fix, no should-fix. Nits, unchanged and already routed: N-i (a refresh over a stored body that already declares the line is not re-judged; the stated bound) and N-f (22 decision cards by hand against 10 in the live listing; NOT MEASURED) remain for the seat's carry to #38874. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 delta + L2 delta adoption · PR #38867 · head 00fbbe5 · 2026-12-01T09:13ZL1: ACCEPT. L2 round-3 delta (record 7306378546): PASS, S3 closed, no must-fix and no should-fix. I adopt the record. Nothing graded is open on this head. It is Tier H, so it goes to the maintainer through the seat.
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #38867 @
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 维护者速读
席位意见:同意落地。ACCEPT → PR #38867 comment 7306439987。 |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 2026-12-01T10:40Z · Merged at 2026-12-01T10:39Z after the maintainer enqueued it; |
Requested by Yibo Wang · project thread
Fixes #38492
Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: 「升 p2,交 fleet 区现在做」 — the maintainer, a decision card in this account's fleet project, 2026-12-01T06:29Z, recorded on the card as comment 7303021478 (his words behind it, 2026-12-01T04:45Z: 「之前已经用 fable 分析过的不用重复分析吧?」「卡片上会有记录吗?是否用 fable 分析过」「立 skills卡优化」)
维护者速读
What changes
Scope is ruling record 7303021478: the card's Ask 1 and Ask 2, plus the two additions in pull reading 7301124099 (a per-card "still current" reading, and the rule text for presenting an at-tier, still-current analysis as it stands).
record-recognisers.mjsgainsreadDecisionAnalysisTier(text)andreadAnalysedBy(text): theServed-tier:/Analysed-by:pair on a decision analysis, read with the record's own parser (readServedTier, verdictservedTierStandsatCONTRACT_REVIEW_TIER_NAME, the N/M stamp control included). States:at-tier,below-tier,unreadable,missing. A text is an analysis when it carries the four-facet marker outside code or anAnalysed-by:line; a## Contract reviewrecord never is one; fenced code is a citation and is not read.check-owed-reviews.mjs --decisions(report-only, exit 0, no new gate): one row per openneeds-user-decisioncard with the tier read on the newest trusted text that carries a line of the pair (body or comment), the carrying comment id,Analysed-by, andcurrentorstale— stale when a ruling comment (classifyRulingComment) follows the carrier, when the body carries aRuled:record at or after it, or (comment carrier) when the body's newest protocol stamp is at or after its minute. The act column sayspresent as it stands, premise re-checkonly for at-tier and current; every other rowre-run at tier before presenting. Body and comments are read through the queue guard's author binding (recordTrustedAuthors), drops counted on the row.recordTierEvidenceRefusal(post-stamped.mjs) now judges a decision analysis as it judges a contract review record: an analysis comment declaringServed-tier: CONTRACT_REVIEW_TIERis refused unless--tier-evidence=PATHpassesverify-review-tier.mjs; the refusal names which of the two it is about.label-write.mjs --comment-filegets it throughjudgeBodyunchanged. A card BODY is judged on the analysis half alone (analysisTierEvidenceRefusal; a record is a comment, never a body):issue-create.mjs --tier-evidence=PATHon a new card, andpost-stamped.mjs --body=N --tier-evidence=PATHon a refresh that INTRODUCES an at-tier analysis line the stored body lacks (bodyTierEvidenceRefusal; a refresh keeping an existing line is untouched). The analysis reader reads the record heading outside fences, so an analysis quoting a record in a fence stays an analysis; on a comment the analysis is judged first, so a fenced record quoted above the comment's own at-tier pair cannot route it past the analysis half, and the refusal then names an analysis.references/decision-analysis.md〈落卡分析模板〉: the reading line namescheck-owed-reviews.mjs --decisions; a new line says an analysis at tier and still current (no ruling after the carrying comment, body unchanged) is presented as it stands with only the premise re-check, ⛔ not re-run, and is re-run at tier when the premise moved; 「⛔ 不沿用他席推荐」 gains the carve-out 「(照原样呈达档现行分析除外)」 so the two lines do not contradict; the--tier-evidence=parenthetical, which said it judged only L2 records, now names the three writes that judge an analysis (a comment, a new card, a body refresh introducing the line).decision-analysis.mdceiling 5580 → 5855, +275 bytes, the measured landed delta, by ruling record 7303021478; the row quotes the ruling, and the raise is recorded underruledRaiseson that file's existing cross-file move declaration (otherwise the move arithmetic would price it as part of the move). The other ratchet rows, including pm-dispatch: a two-way vocabulary pin (ADR-0087's #8299 pin) forces the ADR text and its gate into one PR, but the dispatch rules give an implementation card no docs/adr exit for that case #38367's, are untouched.Out of scope (Ask 3) — carried to #38874
Carried to follow-up #38874, per the seat's routing record on #38492 (comment 7305087335), which also carries the contract review's nits N-a, N-b, N-c, N-d and N-g. Not implemented here:
verify-review-tier.mjsrefuses (the precedent sentence incontract-review.md).Analysed-by:has no stated value for a sub-agent, which has no session id of its own. (The reader takes the first token: a prose value such as "an isolated sub-agent of …" readsan.)current; belongs with N2.staleafter a ruling reads only the prior-rulings reader's three first-line shapes, so a ruling in another shape (such as aRuling-ref:comment) is not seen by the comment check.staleon the next listing; the order is worth one clause where N2 is settled.label-write.mjsusage and its two--tier-evidencerefusal texts still describe the option as a contract review record's alone (outside the claim's file surface).Analysed-by:reads its first token, so a prose value reads its first word (the same question as N3).Tests
Final head:
00fbbe54(patch round 3: S3 and N-h from contract review 7305739488). Round 2 readings were taken at807b7ac2and round 1 readings at67f80f5f; the newest round is listed first.Patch round 3 at 00fbbe5 — S3, readings and ablation
post-stamped.mjs --self-test→ exit 0, 863 cases (analysis battery 17 → 19: a comment quoting a record in a fence ahead of its own at-tier pair is refused without evidence as an analysis, readat-tierby the listing's reader, and passes on at-tier evidence; when the quoted record names the contract tier too, the refusal still speaks of an analysis).check:pm-skill-ratchet: decision-analysis.md 5855 / 5855;check:pm-post-stamped;check:pm-label-write;check:pm-record-recognisers;check:pm-issue-create);check-self-test-workflow-commandshit a spawn timeout once under load and passed on its re-run; 4 NOT MEASURED as before;dispatch-gates --ran→ 71 accounted for, 67 run, 4 NOT-MEASURED. The self-test-reads declaration is still on line 77.Patch round 2 at 807b7ac — S1, S2, readings and ablations
post-stamped.mjs --self-test→ exit 0, 861 cases (analysis battery 12 → 17: a refresh introducing an at-tier line refused without evidence, replacing TIER_DEFAULT refused, at-tier evidence passes and off-tier does not, a refresh keeping the line untouched, a non-analysis / another tier / a body quoting a record untouched, structural:maincallsbodyTierEvidenceRefusalon the stored body right after the unread check).issue-create.mjs --self-test→ exit 0, 77 cases (battery 8 → 10: a body quoting a record, bare and fenced, planned with no evidence; an analysis quoting a fenced record still judged; structural: never the record half).record-recognisers.mjs --self-test→ exit 0, 507 cases (battery 18 → 19: an analysis quoting a record in a fence stays an analysis).issue-createback on the whole judge → 2 failing (the quoted-record row, the structural row);bodyTierEvidenceRefusalignoring the stored body → the keep-the-line row fails; the record heading read on raw text → the quoting-analysis row fails.check:pm-skill-ratchet: decision-analysis.md 5855 / 5855;check:pm-skill-id-lint;check:pm-post-stamped;check:pm-issue-create;check:pm-record-recognisers, which runscheck-owed-reviews --self-test;check:pm-label-write),check-handover --self-testexit 0; 4 NOT MEASURED as in round 1;dispatch-gates --ran→ 71 accounted for, 67 run, 4 NOT-MEASURED.Round 1: self-tests of the touched scripts (67f80f5)
node scripts/pm/record-recognisers.mjs --self-test→ exit 0, 506 cases; new battery (18): at tier (present), stamp control, below tier (TIER_DEFAULT, partial control, prefix/suffix), missing (marker only; Analysed-by only), unreadable, one parser (same reading asreadServedTier), not an analysis, a contract review record, a fence, an inline-span marker, Analysed-by decoration, a model id never quoted back, empty value, placement.node scripts/pm/post-stamped.mjs --self-test→ exit 0, 856 cases across 31 batteries; new battery (12): refused without evidence, passes at tier, refused off tier, no model id or path in the refusal, a delta with Analysed-by and no facet block judged, TIER_DEFAULT / no line / fenced pair / non-analysis untouched, the label-write fold, body refresh not judged (stated bound), structural import.node scripts/pm/issue-create.mjs --self-test→ exit 0, 75 cases; new battery (8).node scripts/pm/check-owed-reviews.mjs --self-test→ exit 0, 117 cases in 11 batteries; new battery (16): at tier and current, stale after a ruling, a ruling before stays current, bodyRuled:stamped and unstamped, body stamp, body carrier, below tier, missing with and without an analysis, newest carrier both ways, untrusted comment and body, a record is no carrier, unjudged thread, the live read through one reader with a gap, report order and the printed bound.node scripts/pm/check-skill-line-ratchet.mjs --self-test→ 116 cases;node scripts/pm/check-handover.mjs --self-test(imports post-stamped) → 116 cases.Round 1: ablations (on-disk mutation, restored from HEAD, tree clean after each)
recordTierEvidenceRefusalwith the analysis branch removed → post-stamped self-test exit 1, 10 failing cases (the analysis battery).decisionCurrencywith the ruling-comment check disabled → check-owed-reviews self-test exit 1 (the stale-after-a-ruling case).readDecisionAnalysisTiergrading any readable value as at tier → record-recognisers self-test exit 1 (the three below-tier cases).Round 1: derived gates (dispatch-gates --commands, 71 families, at 67f80f5)
pnpm check:pm-skill-ratchet(then 5803 bytes, ceiling 5803, headroom 0; the move into it +557 less 223 of ruled raise against a source decrease of 592),pnpm check:pm-skill-id-lint(134 files clean),check:pm-record-recognisers,check:pm-post-stamped,check:pm-issue-create,check:pm-label-write,check:pm-prior-rulings,check:pm-half-states,check:pm-governed-merges,check-governed-queue-guard --self-test,check:nul-bytes,check:doc-authoring.node scripts/check-comment-mask-corpus.mjs(whole-tree sweep killed at its 280 s timeout on the shared container),pnpm --filter @objectstack/lint run check:doc-formula-expressionsandpnpm check:i18n-coverage(both exit 3, PREREQUISITE NOT MET: the workspace CLI is not built; this diff touches no package),pnpm check:pm-dispatch-gates(killed at a 570 s foreground timeout, still printing passing cases).dispatch-gates --ran→71 derived famil(ies) accounted for — 67 run, 4 NOT-MEASURED.Acceptance notes
recordTierEvidenceRefusalreturned null unless the body was a## Contract reviewrecord, andissue-create.mjshad no--tier-evidence(both held);readServedTier/servedTierStandsare reused, no second parser; a decision analysis is recognised by the facet marker outside code (the readingpost-stamped.mjsand the handover check already give it) or by itsAnalysed-by:line;check-owed-reviews.mjstook the listing as a mode, not a new gate.record-recognisers.mjsis over 1,000 lines; the pair reader (about 60 lines with its docblocks) sits besidereadServedTieras part of the same line's reader family rather than in a new sibling module, because the claim's file surface binds and names this file.check-owed-reviews.mjsgrows 937 → 1,142 lines.current: the REST issue carries no body-edit time (the measurement is stated incheck-half-states.mjs), so an edit to the body that writes no stamp is not seen; the listing prints this under its rows, and the rule's premise re-check is what covers it. An unstampedRuled:record counts as after the carrier (the safe direction).post-stamped.mjs --bodyrefresh is judged only when it INTRODUCES an at-tier analysis line the stored body lacks; a refresh that keeps an existing line (such as the director'sRuled:edit) has no transcript to show and is untouched. The check reads the stored body the refresh already fetches, so like the unread check it runs on a live write, not on--dry-run.node scripts/pm/check-owed-reviews.mjs --decisionsat 2026-12-01T06:49Z: 10 open decision cards, allmissing(5 carry an analysis without the line, 5 no analysis). Positive controls read through the same row function: objectql: a tenant's copy of a packaged validation rule is judged against a disabled extender's same-name rule, so a message-only copy of the served rule is refused #38624 (now out of the box)below-tieron comment 7258301085; [Decision] Search the package manuals (docmetadata) through the knowledge service: which of three shapes #38352 (on hold)at-tieron comment 7247373051,staleafter ruling comment 7247382346.scripts/pm/**and.claude/**publish nothing (skip-changeset).Verification
Read first, by risk:
scripts/pm/post-stamped.mjsrecordTierEvidenceRefusal— the only hunk that can refuse a write; check that a non-analysis comment and a TIER_DEFAULT analysis stay untouched.scripts/pm/record-recognisers.mjsreadDecisionAnalysisTier— what counts as an analysis, and that the tier is the record's parser.scripts/pm/check-owed-reviews.mjsdecisionCurrency/decisionAnalysisRow— carrier choice and the stale reasons.Two-minute check:
node scripts/pm/check-owed-reviews.mjs --decisions— expect one row per openneeds-user-decisioncard ending inre-run at tier before presentingorpresent as it stands, premise re-check, a summary line with the counts, and the body-edit bound printed under the rows; exit 0.Generated by Claude Code