Repository navigation
skills(automation): the approvals reference says a reject carries its reason - #35842
Conversation
… reason A reject recorded through ApprovalService.decide() or POST …/reject always carries a non-blank comment, else 400 VALIDATION_ERROR. Paid in place: the outputs paragraph drops a restatement. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1ZJL93Kin2UHFXbFv
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1eW7iLBvc8c6xv9Fx L1 verdict (L1-a): ACCEPT at head Gates on this head: What I checked (holds):
NOT MEASURED: Non-blocking notes:
Landing: governed, Tier H ( Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Served-tier: Contract review — PASS at ddcee8bHead-sha: Isolated, read-only sub-agent record, written 2026-11-20T11:27Z. Face: governed rule text ( F: none. S: none. No must-fix, no should-fix. N1 to N3 are nits, and none of them moves the head. ① Derived judgments
② Semver levelOne changeset, ③ Boundary flags
④ Design judgment
Notes:
Implemented-by: VERDICT: PASS |
Requested by Elon · project thread
Fixes #35817
Part of #35772
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-automation/references/state-machines-and-approvals.md, section "Recording a decision", one hunk (the card's hunk, byte-identical to the wording contract-reviewed at6d93210a: the resulting blob is3277c7f9b2, the same blob id the card's diff header names).ApprovalService.decide()orPOST /api/v1/approvals/requests/:id/rejectalways carries a non-blankcomment, its reason, else400 VALIDATION_ERROR..changeset/35817-skill-reject-reason.md:'@objectstack/skills': patch.The wording was re-verified against
origin/mainatbb1c55d138before writing:packages/plugins/plugin-approvals/src/approval-service.ts,decide(): fordecision === 'reject'it validatescommentas a requiredtextareaparam and throws{ status: 400, code: 'VALIDATION_ERROR' }beforedecideAndResumeruns. A missing, blank or non-string comment is refused; nothing is read or written first.packages/spec/src/contracts/approval-service.ts: theApprovalDecisionInput.commentandIApprovalService.decidedocblocks state the same rule.decide(). The sentence is scoped to a decision "recorded throughApprovalService.decide()(or the REST routes)", so it stays true of them.Read first, by risk: (1) the reworded first paragraph of "Recording a decision"; (2) the shortened outputs paragraph, to confirm "Dynamic approvers ② below" still carries what was cut; (3) the changeset.
Two-minute check:
node scripts/check-skills-token-ratchet.mjsprints the line quoted below and exits 0.Evals
No eval case added. Decision: not owed for this change, and it would not fit.
skills/objectstack-automation/evals/*.json) grade authored metadata, adefineFlowan agent writes. This hunk teaches a runtime call rule (what a decide call must carry), not an authorable key, and no existing case exercises the decide call, so no existing case goes stale.commentwould be a new eval subject for the skill, well past this card's net-added-line budget of 5 (the PR sits at exactly 5). It is named here as a possible follow-up for the skills lane, not filed.Verification
Head
ddcee8b8f6. Net-added lines, whole PR: 5 (git diff --numstat origin/main...HEAD: changeset 6/0, reference 6/7).Token ratchet, no ceiling raise:
The hunk is a net token cut of 6: the restatement it drops is larger than the rule it adds. The dispatch order quoted 5927/5936 as the reading before; measured, 5927 is the reading after and main sits at 5933.
Size readings for the published catalog:
SKILL.mdfiles, linesLocal gates at this head (each exit code captured before any pipe)
All exit 0:
node scripts/check-skills-token-ratchet.mjsand its--self-test(104 cases),node scripts/check-closing-keyword-parity.mjs,node scripts/check-doc-route-spelling.mjs --advisory,pnpm check:doc-authoring,pnpm check:pm-skill-id-lint,pnpm check:role-word,pnpm check:skill-compatibility,pnpm check:skill-frame-sync,pnpm check:skill-identifier-liveness,pnpm check:skill-links,pnpm check:published-files,pnpm check:nul-bytes,pnpm check:corpus-claim-drift,pnpm check:adr-anchors,pnpm --filter @objectstack/spec run check:skill-refs,pnpm --filter @objectstack/spec run check:skill-served-sections,node scripts/check-empty-changeset.mjs,node scripts/check-adr-0087-registration.mjs,node scripts/check-commit-card-trailers.mjs --self-test.node scripts/pm/overlap-check.mjs --branch=claude/area-a4A-35817:VERDICT clean exit 0(merges cleanly withorigin/mainand with the open PR #35673 that shares the file).NOT MEASURED locally:
pnpm --filter @objectstack/lint run check:doc-formula-expressionsansweredPREREQUISITE NOT MET(the formula package is not built in this worktree); left to CI.dispatch-gates --rannames 32 of 49 derived families unrun: a declared narrowing to the families that read skill text and changesets. The rest are self-tests and build-reading gates that this two-file text diff cannot move, and CI runs the full farm.No test, ablation or dogfood battery: the diff changes prose and a changeset, no tested behaviour.
Acceptance notes
node scripts/check-skills-token-ratchet.mjs; this PR leaves headroom 9.check-adr-0087-registrationreads it as one non-breaking changeset.🤖 Generated with Claude Code