Repository navigation
docs(spec,adr): the action-page contract and ADR-0043 name the reject link's required reason - #37153
Conversation
… link's required reason IApprovalService.handleActionPage's docblock now says the POST also reads a reject's reason from the form's `comment` field, and that a reject with no reason is answered the confirm page again with status 400 (outcome `reason_required`), the token unconsumed. ADR-0043 gains an add-only note under its Non-goals: comment capture shipped for reject in #36695. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
📓 Docs Drift CheckThis PR changes 1 package(s): 2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin a60dc15cc6ccd93955581e93d2c2ff9c1e714df0 && git checkout a60dc15cc6ccd93955581e93d2c2ff9c1e714df0
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1f3e9f68e703c13e013185132f0e62ddc977f069 5d4cdbc23f2f43ad74b6132f90221e9e5bdd52ed && git checkout -B drift-repro 1f3e9f68e703c13e013185132f0e62ddc977f069 && git merge --no-ff 5d4cdbc23f2f43ad74b6132f90221e9e5bdd52ed
node scripts/docs-audit/affected-docs.mjs --json 1f3e9f68e703c13e013185132f0e62ddc977f069
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv2LZN1W2qSYTZvYs Contract-review-claim: session_01WGufzgv2LZN1W2qSYTZvYs · head 5d4cdbc · 2026-11-24T23:31Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv2LZN1W2qSYTZvYs 席位核对 — ACCEPT · repo:objectstack#3 · head 5d4cdbc · 2026-11-24T23:34ZL1: ACCEPT (L1-w, zone wf-A) No must-fix, no should-fix. Tier H ( Read and found right
Notes (not findings)
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgv2LZN1W2qSYTZvYs Contract reviewServed-tier: Security-touching is The code these texts describe is outside the diff ( ① Derived judgments
② Semver level
Clause-②: no — stated in both the PR body and the changeset body, line-initial, with no arm. Right: no accept-set is widened or narrowed. The reject-reason narrowing itself landed with PR #36695 and is not re-published here. ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Attempts to break it: a reject link that is dead and also has no reason (200 result page, as the text says); a repeated
Nits:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W 维护者速读
Request: approval · Tier H by governed path ( Seat's view: land. A docs-only correction of #36709. One reviewer pass covers both halves, so it stays one PR (no split to move the spec docblock out of review).
|
Requested by Yibo Wang · project thread
Fixes #36709
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Text only, no behaviour change. PR #36695 made the email action-link reject require a typed reason; contract review 7101851923 on it (nit N1) found two texts still describing the old POST.
packages/spec/src/contracts/approval-service.ts, theIApprovalService.handleActionPagedocblock only:GET: a reject link's confirm form also carries a required reason field, namedcomment.POST: readstokenand, for a reject link,comment(the last of each when a field repeats); a reject records that reason as its comment; an approve reads nocommentand records the fixed "Via action link".commentis missing, blank or not a string is refused before the token is consumed and answered the same confirm page again, carrying the refusal, with status400(redemption outcomereason_required). A dead link is judged first and still gets its200result page. The existing "never as an error status" sentence gains "The400above refuses the input, not the link."@param/@returnssay the same.Each statement is read off the implementation on
origin/main517e415 (ApprovalService.handleActionPage,redeemActionToken,actionRedemptionPageinpackages/plugins/plugin-approvals/src/approval-service.ts), not off the card.docs/adr/0043-actionable-approval-links.md: one ADD-ONLY paragraph after the Non-goals list. No existing line edited or removed; the first Non-goals bullet stands as written for v1..changeset/36709-action-page-contract-reject-reason.md:@objectstack/specpatch. Measured, not assumed: the docblock ships. Afterpnpm --filter @objectstack/spec build, the new sentence "refuses the input, not the link" is found indist/contracts/index.d.tsand.d.mts, both insidefiles[](dist). Positive control: the existing "The token is the only credential" sentence is found in the same two files. Soskip-changesetwould be wrong, andCheck Changesetneeds either a changeset or that label.Read first (by risk): (1) the new
400bullet in the docblock, since it is the contract sentence an AI caller reads; (2) the ADR paragraph, for add-only shape; (3) the changeset.Tests
No behaviour moved, so no test was added and no ablation applies (docblock and ADR text).
Local runs on 5d4cdbc
pnpm --filter @objectstack/spec build: lock VERDICT command-exit 0.pnpm --filter @objectstack/spec typecheck: lock VERDICT command-exit 0;check:test-typecheck: OK.pnpm --filter @objectstack/spec test: lock VERDICT command-exit 0;Test Files 889 passed (889),Tests 28273 passed | 1 todo (28274).Acceptance notes
addOnlyNoteReasonsfromscripts/pm/check-governed-merges.mjs, run on this diff at full context, returns exactly one reason: "docs/adr/0043-actionable-approval-links.mdnames no decision or status heading, so where a note sits cannot be judged". ADR-0043's headings are TL;DR, Mechanics, Non-goals (v1) and Consequences, and its Status is a bold line, not a heading. An add-only diff cannot add such a heading to the base side, so this PR reads Tier H. The note's own lines pass every other test the reader applies (no removed line, plain-prose allowlist, no status line, no header-block line).Verification
Derived gate families (dispatch-gates, tree a48e05f then 5d4cdbc)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 85 commands with the changeset present. 82 exited 0. Three exited 3 (PREREQUISITE NOT MET), left to CI and recorded as NOT MEASURED:node scripts/check-plugin-teardown-shape.mjs --self-test: the fixture is pinned to a commit a shallow checkout cannot reach.pnpm check:dual-build-cjs-loads: needs the whole workspace built.pnpm check:lean-entry-closure: needs@objectstack/objectqlbuilt.pnpm --filter @objectstack/lint run check:doc-formula-expressionsfirst exited 3 (unbuilt@objectstack/formula); after building formula and lint it exited 0.--ranreconciliation: "85 derived, 82 run, 3 NOT-MEASURED, 0 UNRUN" (3 derived from a recorded exit 3).Overlap:
node scripts/pm/overlap-check.mjs --branch=claude/issue-36709-approval-action-page-docsreportedVERDICT clean exit 0before each push. The in-flight branchclaude/issue-37041-batch-lock-detail-lines(a770353) does not touchpackages/spec/src/contracts/approval-service.ts, and this diff stays inside thehandleActionPagedocblock.Two-minute check:
git diff origin/main...HEAD -- docs/adr/0043-actionable-approval-links.mdshows only+lines (ten of them).grep -n "reason_required" packages/spec/src/contracts/approval-service.tshits the docblock once.Generated by Claude Code