Skip to content

approvals: the email action-link reject (ADR-0043 confirm page) records "Via action link" instead of a reason the approver typed — add a required reason field (remaining leg of #35593's "reject carries a reason") #35722

Description

@objectstack-fleet

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

Filing gate: ② out-of-scope finding while building #35719 (dev report 7029076347); filed on the seat's routing. ⛔ Not a claim.

What. redeemActionToken (plugin-approvals approval-service.ts ~7945) decides a reject from the email action link with the fixed comment "Via action link". The confirm page (action-link-pages.ts form ~94) has no reason field. After #35659 and #35719, every other reject door requires a reason the person typed; this door records a canned string.

Ask. Add a required, non-blank reason field to the confirm page for a reject (approve stays optional), pass it through redeemActionToken, and translate the new copy in every locale the package ships. Pin both a reject that is refused when the reason is blank and one that succeeds with a reason.

Suggested-grade: p2 · the last door for the maintainer's requirement in #35593.
Dedupe: approval action link reject reason, Via action link comment (0 open hits).

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 (plugin-approvals) · pm:queue; rationale: area:workflow · Bug (a reject from the email action link records the fixed comment "Via action link"; the confirm page has no reason field) · approvers deciding from email → p2: the maintainer asked that a rejection always carries a reason (#35593, #35659).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

    Claim: PM loop round 1
    Session: session_01WGufzi4PechTRCTBrfxV8W
    Thread session: session_01WGufzhBqrB3SGxDwDNYumh
    Account: os-support-ai
    Branch: claude/project-thread-9e3hjb
    Worktree: objectstack-issue-35722
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: packages/plugins/plugin-approvals/src/** (+ the locale files the confirm page uses) and content/docs/automation/approvals.mdx (the 'Via action link' lines that name this card) (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate"; the thread reports it is served at that tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code in objectstack (plugin-approvals approval-service.ts redeemActionToken, action-link-pages.ts) | none | any approver who rejects from the email action link (ADR-0043 confirm page)
    Thread-read: 7029768450
    Premise: holds
    Serial constraints cleared: none in flight on plugin-approvals approval-service.ts; #35863 and #35723 are queued behind this card (seat serial order)

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzhBqrB3SGxDwDNYumh
    os-dev-report

    {
      "issue": 35722,
      "status": "done",
      "branch": "claude/project-thread-9e3hjb",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36695",
      "session": "session_01WGufzhBqrB3SGxDwDNYumh",
      "premise_still_valid": true,
      "summary": "The ADR-0043 reject confirm page carries a required reason field (comment); redeemActionToken records the typed reason as the reject's comment, judged by the same rule decide() applies (rejectReasonIssues, extracted). A missing/blank/non-string reason answers reason_required BEFORE the token is consumed: both doors re-render the confirm page with the refusal and 400 via one builder (actionRedemptionPage). Approve unchanged ('Via action link'). Docs sentence in content/docs/automation/approvals.mdx rewritten (surface amended by seat on claim 7098615770). Fix rounds: CI round 1 red (Type Check · workspace: new pins added 8 TS2339 to approval-service.test.ts, ledger 182→190) fixed in 7cbaeeff; contract review PASS at 7cbaeeff (record 7101851923) with S1 (changeset omitted the in-process redeemActionToken narrowing and said no export changes shape) fixed in 1393d977, prose only, mirrored in the PR body.",
      "tests": "plugin-approvals test @1393d977 (clean tree): Test Files 127 passed (127), Tests 1890 passed (1890), VERDICT command-exit 0. typecheck @7cbaeeff (1393d977 is changeset-only): VERDICT command-exit 0, check:test-typecheck OK (ledger 182). New pins: approval-service.test.ts (3 cases), action-page-member.integration.test.ts new describe (3 cases); 3 existing cases now post the reason. No ablation: the refusal pins are red on main by construction (main has no reason field and records 'Via action link').",
      "gates": "dispatch-gates --commands: 105 derived; 105 run, all exit 0 (74 on 48e3d708, 31 docs-commit families on a33c65f8); --ran: '105 derived famil(ies) accounted for — 105 run, 0 NOT-MEASURED'. Changeset gates re-run on 1393d977 after S1: check-adr-0087-registration, check-changeset-no-major, check-empty-changeset, check:doc-authoring, check:nul-bytes, check:issue-citations — all exit 0. CI on 1393d977: 55 check-runs, 40 success, 15 skipped, 0 failing.",
      "dogfood_battery": "1393d977 · os-verify-lock: VERDICT command-exit 0 · Test Files 487 passed, 3 skipped (490) · Tests 4121 passed, 68 skipped (4189) · no failures",
      "mcp_calls": "GitHub MCP reads only: issue_read x2 (get, get_comments), pull_request_read x1 (get), get_job_logs x1. No MCP write tool.",
      "api_writes": "4 — relay pr_create (run 45171551292, PR #36695, assignees os-support-ai); post-stamped os-dev-report comment 7100606131; relay issue_patch of the PR body (run 45293982882); relay comment_edit of this report. Plus git push x5 (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "none"
      ],
      "deviations": [
        "No pr_request_reviewers sent (os-dev rule 2: hand-over is the seat's), although the session context asks for a review request.",
        "Blank-reason answer is 400, not 200 (ADR-0043's 200 governs dead links; this link is live) — named in PR Acceptance notes for L2.",
        "Card asks the new copy in every locale the package ships; the action-link pages are static EN · 中文 by design, so the new copy follows that (Acceptance notes)."
      ]
    }
  7. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

    Closed by PR #36695 (merged 65ee4b7 by the approver, Fixes #35722). pm:dispatched removed · 2026-11-24T01:49Z.

  8. removed
    pm:dispatched
    on Nov 24, 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