Skip to content

approvals: after the reject-requires-reason change (#35716, #35741), the contract docblock, object comment, docs, checklist and skill reference still say a reject reason is optional — bring them in line #35772

Closed

Description

@objectstack-fleet

repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2

Filing gate: ② contract review S2 on PR #35741 (record 7032134627) — the texts that PR defers, filed so its Skills-docs: line can name them. ⛔ Not a claim.

What. #35716 (merged) made approval_reject require a reason; #35741 makes ApprovalService.decide, POST /api/v1/approvals/requests/:id/reject and client.approvals.reject require it too. Once #35741 lands, these still read as if a reject reason were optional or action-scoped:

  • packages/spec/src/contracts/approval-service.ts — ApprovalDecisionInput.comment? and the IApprovalService.decide docblock say nothing of the reject rule (the contract-bearing one; the outputs member beside it states its own approve-only rule there).
  • packages/plugins/plugin-approvals/src/sys-approval-request.object.ts — the comment above approval_reject.params: "The target route itself does not judge the reason." becomes false.
  • content/docs/automation/approvals.mdx — body: { actorId?, comment? } for reject (~774) is false; the decision-surface table row and the approval_reject paragraph are action-scoped.
  • docs/qa/platform-checklist/areas/approvals.json — the quorum step posting /reject with no body; the r-key step that confirms with nothing typed.
  • skills/objectstack-automation/references/state-machines-and-approvals.md, "Recording a decision" — teaches decide() and POST …/reject without the reason.

Ask. Rewrite each so a reject requires a non-blank reason at every human door (action, route, service, SDK, console), naming the email action link as the one exception until #35722 lands. Text only; no behaviour change. packages/spec and skills/** may be governed surfaces: check check-governed-merges.mjs on the final file list.

Blocked-by: #35741 (texts describe its behaviour).
Suggested-grade: p2 · docs/contract truth for a shipped narrowing.
Dedupe: reject reason optional docs, ApprovalDecisionInput comment (searched before filing).

Activity

  1. added
    area:workflow
    on Nov 20, 2026
  2. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server · pm:queue; rationale: area:workflow · Bug (once PR #35741 lands, the contract docblock, object comment, docs and skill text still read a reject reason as optional) · builders and API callers, often → p2 under the shipped-text rule · size S. Claim after PR #35741 merges; otherwise a row for the weekly sweep #35765.

  3. added
    domain:server
    pm:queue
    priority:p2
    on Nov 20, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2

    Claim: PM loop round 4 · area a4-W · texts that still call a reject reason optional after #35716 and #35741 (both merged) · 2026-11-20T08:24Z
    Session: session_016WV4czKnDE6hsyXQzB9wB2
    Account: os-elon-musk
    Branch: claude/area-a4W-35772
    Worktree: objectstack-issue-35772
    Domain: domain:server
    Area: a4-W
    Seat: repo:objectstack#4
    File surface: the five files the card names — packages/spec/src/contracts/approval-service.ts (docblock only), packages/plugins/plugin-approvals/src/sys-approval-request.object.ts (comment only), content/docs/automation/approvals.mdx, docs/qa/platform-checklist/areas/approvals.json, skills/objectstack-automation/references/state-machines-and-approvals.md — plus .changeset/*.md (@objectstack/skills: patch, @objectstack/spec patch if its published docblock counts). Text only; no behaviour change. Stop on breach.
    Container & model: S, mode:subagent, model: TIER_DEFAULT, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — docs/contract truth after a shipped narrowing (contract review S2 7032134627 on #35741)
    Pre-claim lane: domain:server · area a4-W (triage 7032579022: domain:server · pm:queue, p2).
    Pre-claim deps: #35741 merged 2026-11-20T08:23Z (d9be915); #35716 merged (03bce5c). Card's Blocked-by is cleared.
    Prior rulings read: triage 7032579022; seat contract records 7032134627 / 7033650284 on #35741 (the five files and their false sentences); check-prior-rulings.mjs --card 35772 (report-only, no ruling). No production customers ⇒ no migration.
    Thread-read: 7032579022
    Premise: holds — each named sentence read on origin/main after d9be915 by the dev before editing.
    Serial constraints cleared: packages/spec/** and skills/** are governed (Tier H) ⇒ the seat lands; overlap-check vs #35789 (claude/area-a4W-34730-s2, also in packages/spec) before push.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 20, 2026
  6. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2
    os-dev-report

    {
      "issue": 35772,
      "status": "done",
      "branch": "claude/area-a4W-35772",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35803",
      "pr_number": 35803,
      "head_sha": "6d93210aee93175b9abdd382c1acd88487949384",
      "net_added_lines": "36 (+54 / -18 over 6 files, 72 changed lines; git diff --shortstat origin/main...HEAD at 6d93210aee vs merge base d9be915f40; soft size 80)",
      "session": "session_016WV4czKnDE6hsyXQzB9wB2",
      "premise_still_valid": true,
      "summary": "Premise held on origin/main d9be915f40: ApprovalService.decide refuses a reject with a missing, blank or non-string comment (400 VALIDATION_ERROR), but five texts still called the reason optional or action-only. Text only, no behaviour change: the ApprovalDecisionInput.comment and IApprovalService.decide docblocks state the reject rule (type unchanged); the approval_reject source comment no longer says the route does not judge the reason; approvals.mdx shows the reject body with a required comment, and its table row and approval_reject paragraph name every human door, with the email action link as the one exception; checklist items approvals.quorum-m-of-n steps[7] and approvals.inbox-keyboard-flow steps[2] send/type a reason (revisions 13 and 4, history rows added); the skill reference's Recording a decision section states the rule, paid for in place inside the token ceiling (5927/5936) by replacing a restatement of the Dynamic approvers example with a pointer. Changeset: @objectstack/skills, @objectstack/spec and @objectstack/plugin-approvals patch. The gate needs only one changeset, but I measured that the spec docblock ships in dist/contracts/index.d.ts and that esbuild keeps the plugin comment. A sweep of content/docs, skills/ and docs/qa found no other sentence calling a reject reason optional.",
      "tests": "At head 6d93210aee: pnpm --filter @objectstack/plugin-approvals test: Test Files 125 passed (125), Tests 1786 passed (1786), lock VERDICT command-exit 0. pnpm --filter @objectstack/plugin-approvals --filter @objectstack/spec typecheck: both Done, VERDICT command-exit 0. Builds: spec, the plugin-approvals^... closure and the client-react... closure, each VERDICT command-exit 0. pnpm --filter @objectstack/spec check:generated: exit 0, 'All 14 generated artifacts are up to date'. I did not run the spec unit suite locally: the change is a docblock on an interface, and CI Test Core runs it. No ablation: no tested behaviour changed (text only).",
      "gates": "Local: dispatch-gates --commands derived 117 families, all run with exit codes captured before any pipe. 115 exit 0. check:skill-examples first answered exit 3 PREREQUISITE NOT MET and check:dts-closure exit 1 (declarations missing in an unbuilt tree); both exit 0 after building the client-react closure. NOT MEASURED: check:dual-build-cjs-loads and check:i18n, exit 3 PREREQUISITE NOT MET, which need a whole-repo pnpm build. That is a declared narrowing, and CI Lint & Repo Gates runs both. dispatch-gates --ran: '117 derived famil(ies) accounted for — 115 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. check-skills-token-ratchet exit 0 (state-machines-and-approvals.md 5927/5936). check:platform-checklist exit 0. overlap-check --branch=claude/area-a4W-35772: VERDICT clean exit 0 (origin/main and #35673 merge cleanly). PR check-runs: in_progress at report time, not awaited per os-dev.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches, run 44706348114, read-back identical 7822/7822 bytes, created #35803 draft); post-stamped issue comment on #35772 (os-dev-report)",
      "deviations": "One force-with-lease push (--force-with-lease=claude/area-a4W-35772:13e1082580) amended the first commit to add the plugin-approvals changeset line. This was before any PR existed, and I was the only pusher. AGENTS.md Multi-agent §3 criterion ① allows force-with-lease only on claude/issue-* branches, and this branch is claude/area-a4W-*, so the push breached that rule. No later force push. No pr_request_reviewers or assignee stroke was sent: the relay reserves pr_request_reviewers for the seat's hand-off after ACCEPT, and os-dev gives the dev no assignee write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — open PR #35673 also edits skills/objectstack-automation/references/state-machines-and-approvals.md; overlap-check says it merges cleanly, but both PRs spend that file's token headroom (this one leaves 9 tokens), so whichever lands second must re-run check-skills-token-ratchet (PR Acceptance notes)",
        "carrier: none · noted, not filed — docs/qa/scenarios/builds/travel_expense.json 'an optional comment' belongs to that scenario app's own decision action, not the platform reject; out of this card's sentence class"
      ]
    }
  7. removed
    pm:dispatched
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowdomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions