Skip to content

skills: teach the fault edge after an approval step and the RESUME_FAILED refusal members (innerRefusal, userMessage) #34637

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Filing gate ①: the Skills-docs: follow-up card owed by PR #34619 (Fixes #34579, Clause-②: yes (widening)), passed on by area o2-H (L1-c D2 on ACCEPT 6938291867). Dedupe: RESUME_FAILED innerRefusal skill; no open card.

Suggested-grade: p2 · domain:skills · Blocked-by #34579 (teach the shape only after it lands)

维护者速读

Change

After PR #34619 merges, teach in skills/objectstack-automation/references/state-machines-and-approvals.md:

  1. Draw a fault edge on the step after an approval when that step writes a record a hook may refuse; the refusal then takes the fault branch and the decision returns normally.
  2. Without that edge the decision door answers RESUME_FAILED (status 500 per the standing ruling), and its body carries innerRefusal (code and text) and userMessage (the hook's declared end-user sentence) so the approver sees why.

Take the wording from the merged code and approvals docs; do not restate it in a third place. Add one eval that writes an approval flow whose next step updates a record guarded by a refusing hook, and checks the flow draws the fault edge.

Done when

The reference teaches both points and the eval passes.

Blocked-by: #34579

Activity

  1. added
    documentation
    finding
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p2 · domain:skills · pm:blocked · 2026-11-17T04:28Z

    ⛔ Not a claim.

  3. added
    domain:skills
    pm:blocked
    priority:p2
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unlock → pm:queue · 2026-11-17T05:50Z

    ⛔ Not a claim.

    Blocker #34579 closed today at 04:59Z. Back to the queue at its grade (p2).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

    Claim: PM loop round 1
    Session: session_012MmDsS4GoHCgYwA2uv3n3C
    Account: os-lizheng
    Branch: claude/issue-34637-approval-fault-edge
    Worktree: objectstack-issue-34637
    Domain: domain:skills
    Seat: repo:objectstack#4
    File surface: skills/objectstack-automation/references/state-machines-and-approvals.md, one eval case under the objectstack-automation skill's evals, a @objectstack/skills changeset if the publish rule owes one (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: fable (dispatch-gates --tier: MANDATORY claude-fable-5-2 for skills/**; no one-line exit), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card in product code; the skills follow-up PR #34619 owes
    Thread-read: 6939937269
    Premise: read at 2026-11-17T19:51Z on origin/main: the reference names RESUME_FAILED / innerRefusal / fault as counted above this claim's posting (the dev confirms what is taught today). #34579 closed (PR #34619 merged).
    Serial constraints cleared: #34638 (the recall / subflow-parent resumeFailure pair) is NOT landed: it is out of this card's scope and is not taught here.
    Pre-claim lane: skills/** → domain:skills (governed, Tier H).
    Pre-claim deps: #34579 closed.
    Prior rulings read: the standing ruling the card cites (RESUME_FAILED is status 500) is quoted by the dev from its source comment.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C
    os-dev-report

    {
    "issue": 34637,
    "status": "done",
    "branch": "claude/issue-34637-approval-fault-edge",
    "pr": "#35002",
    "session": "session_012MmDsS4GoHCgYwA2uv3n3C",
    "premise_still_valid": true,
    "summary": "The approvals reference gains one bullet in Branching, side-effects and rejection: a step on the approve / reject branch whose write a record hook, a validation rule or a permission may refuse draws a fault edge to a handler, so the refusal takes that edge and the decision answers normally; without it POST …/approve (or /reject) answers 500 RESUME_FAILED with the decision standing (finalized: true), the run stranded, and innerRefusal plus userMessage in the body. One eval case is added in its own file, and a @objectstack/skills patch changeset. Status 500 was verified against the merged code (packages/rest/src/approvals-routes.ts maps the RESUME_FAILED prefix to 500; rest-approvals-wire-codes.test.ts pins 500 and the body key set) and against the ruling the code cites: maintainer ruling of 2026-09-04, decision batch #37, option 1B, recorded in comment 5541861039 on issue #13807 (quoted in the PR body). The code and the ruling agree, so the card's wording is taught as written. Premise note: at base the reference named none of RESUME_FAILED, innerRefusal or the fault edge (zero hits); SKILL.md teaches the fault edge shape and mentions innerRefusal once for flow doors. The claim's premise line reads as if the reference already named them; it did not, which is the card's premise and it holds. Draft PR, governed surface: opened as draft only, not readied, no reviewer requested.",
    "tests": "No package source changed, so no package suite is owed. At head fcf9e05: (1) pnpm --filter @objectstack/skills build under the verify lock: os-verify-lock: VERDICT command-exit 0; @objectstack/skills: 99 file(s) across 12 skill(s) copied from skills/** into dist/skills and read back byte-identical. (2) The new eval case, hand-replicated: the skill-evals runner has no single-case selector, so five claude -p turns of this one case ran with the runner's argv from packages/qa/scenarios/src/skill-evals/arms.ts through the container's subscription login and were graded by literal substring as grade.ts does. With-skill: 3 of 3 pass under the final tokens (two turns read the final reference text, one read the first revision 5fa36a0); all three drew the type: 'fault' edge from the update_record step, launched the skill and read the reference. No-skill: 0 of 2 pass (label: 'approve' missing, type: 'role' present). Limit: the token lists were settled after reading these answers (both no-skill answers also wrote type: 'fault', so label: 'approve' was added; a first forbidden token label: 'error' failed one correct with-skill answer that quoted it while explaining the trap, so it was replaced by type: 'role'); the five turns are therefore not an independent test of the final lists. Not a runner round; no eval-run record filed. Ablation: n/a, no tested behaviour changed.",
    "gates": "Local subset at head fcf9e05, exit codes captured before any pipe. node scripts/pm/dispatch-gates.mjs --commands derived 47 commands (3 paths vs merge base fff0ad0). All 47 ran; reconciliation line: ✓ dispatch-gates --ran: 47 derived famil(ies) accounted for — 45 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3). Exit 0: 45, including node scripts/check-skills-token-ratchet.mjs (state-machines-and-approvals.md is 5913 tokens (ceiling 5916; headroom 3); 58 authored bundle file(s) within their ceilings; 10 generator-owned file(s) and 31 eval fixture(s) measured, not ratcheted), its --self-test, check:skill-refs, check:doc-formula-expressions (after building @objectstack/formula and @objectstack/lint under the lock, a full cache replay), check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:role-word, check:doc-authoring, check:nul-bytes, check:published-files, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration. NOT MEASURED: family check:dual-build-cjs-loads, reason: exit 3 PREREQUISITE NOT MET (packages without dist); family check:lean-entry-closure, reason: exit 3 PREREQUISITE NOT MET (built entry points absent). Partial readings, not full: check:dts-closure and check:sourcemap-no-sources-content exit 0 over 6 built package(s) swept only. The diff touches no package source, so no workspace build is owed locally; those four are left to CI. node scripts/pm/overlap-check.mjs at fcf9e05: VERDICT clean exit 0 (origin/main 44c7a4a, 0 PR heads). CI check-runs on PR 35002 at fcf9e05 when this report was written: success: Governed Surface Queue Guard, PR-body guards (claim · duplicate · Part-of · single-writer path), Check PR Size, Auto Label, filter, Dogfood Regression Gate; in_progress: Check Changeset, Build Core, Plan Test Core shards, Test UI, Live E2E UI, the Lint jobs (ESLint, PM dispatch-gates, docs and code guards, repo and tooling gates, CI release and engine gates, three scoped jobs) and the Type Check jobs (workspace, source gates, consumer gates, debt ledger); 16 skipped. Not waited for.",
    "line_budget": {
    "file": "skills/objectstack-automation/references/state-machines-and-approvals.md",
    "budget": "at most +10 net lines; no ceiling moves",
    "lines": {
    "before": 412,
    "after": 408,
    "net": -4
    },
    "bytes": {
    "before": 23661,
    "after": 23652,
    "added": 515,
    "cut": 524
    },
    "tokens": {
    "before": 5916,
    "after": 5913,
    "ceiling": 5916,
    "headroom_after": 3
    },
    "paid_by": "four restatements deleted, each keeping another home: the Send-back text diagram (261 bytes), the Branching bullets Conditional step (119), the send-back pointer (80) and Hard reject (64); no re-wrap",
    "other_files": {
    "skills/objectstack-automation/SKILL.md": "untouched, 6903 / 6903",
    "skills/objectstack-automation/evals/approval-fault-edge.json": "new eval fixture, 388 tokens, measured not ratcheted",
    "skills/objectstack-automation/evals/flows-triggers-approvals.json": "untouched, 6398 tokens, measured not ratcheted"
    },
    "whole_package_skill_md_sum": {
    "files": 12,
    "lines_before": 4728,
    "lines_after": 4728,
    "bytes_before": 246476,
    "bytes_after": 246476
    },
    "ratcheted_authored_total_tokens": {
    "before": 191126,
    "after": 191123,
    "ceiling_sum": 196699
    },
    "ceilings_moved": 0
    },
    "files_changed": [
    ".changeset/34637-approval-fault-edge-skill.md (new, +12)",
    "skills/objectstack-automation/evals/approval-fault-edge.json (new, +22)",
    "skills/objectstack-automation/references/state-machines-and-approvals.md (+7 -11)"
    ],
    "deviations": [
    "Overlap check ran late: two pushes (5fa36a0, 6d0af2d) went out before the first overlap-check.mjs run, which the dispatch ordered before pushing. That first run, at the unpushed 9077461, answered VERDICT overlap exit 1 against PR #34793 on evals/flows-triggers-approvals.json (both appended a case with id 24 at the file tail). The case moved to its own eval file and the shared file is byte-identical to main; the re-run answered VERDICT clean exit 0 before the next push. The two earlier heads did carry the overlapping edit on the remote branch for a while; no PR existed then.",
    "The eval case lives in a new file under the skill evals directory instead of the existing flows file, for the reason above. Still one case.",
    "Five model turns were spent on a hand replication of the eval through the container login; the runner itself was not run and no round record exists.",
    "Local narrowing: two whole-build gate families NOT MEASURED and two read partially (see gates); no workspace build was run because no package source changed.",
    "git fetch --deepen=400 origin main was run to find the merge commit of PR #34619 (62d9d0d; merge-base --is-ancestor to HEAD exit 0). The object store is shared across worktrees, so the shared clone is now deeper.",
    "Labels documentation, size/s and tooling appeared on the PR after the create; this run sent none (the relay read-back listed none) and did not touch them.",
    "The harness attribution reminder asked for a model-naming commit trailer and a different PR footer; the repository rule was followed instead (model-free trailer pair, the session-URL footer block)."
    ],
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "0 — no MCP GitHub call, read or write",
    "api_writes": "2 relay strokes — (1) pr_create via with-fleet.sh --via dispatch: POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos//issues/35002/assignees; read-back: 12508 bytes sent, 12508 stored, identical; (2) this report comment via post-stamped.mjs: POST /repos//issues/34637/comments. Git pushes (not REST writes): 4, the empty-branch probe and three content pushes. No PATCH of the PR body.",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "carrier: none · noted, not filed — case 5 of skills/objectstack-automation/evals/flows-triggers-approvals.json forbids label: 'error'; measured here on a different prompt, 1 of 3 correct with-skill answers quoted that label while explaining why it does not catch a failure, so the same token can fail a correct answer there. No run of case 5 was made.",
    "carrier: none · noted, not filed — ui/scripts/check-skill-eval-tokens.mjs scans the bundle under ui/skills only (1 bundle, 11 eval files); the eval cases under the root skills/** are outside its must_contain-is-taught oracle. The new case was checked by hand.",
    "carrier: none · noted, not filed — the discount-approval example in the reference keeps its mark_won step without a fault edge; the new rule is conditional and the example change did not fit the budget.",
    "carrier: PR #34793 · noted, not filed — it appends its case as id 24 to the tail of evals/flows-triggers-approvals.json; this PR no longer touches that file."
    ]
    }

  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

    ACCEPT → PR #35002 comment 6963195803 (head fcf9e05; governed, Tier H). L2 owed.

  10. added
    area:ai
    on Nov 18, 2026
  11. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

    Status: progressing (2026-11-19T06:48Z). PR #35002 is done and its CI is green. It touches a governed skills/** path, so it owes a contract-review-tier L2 record and then the maintainer's approval. The seat claimed the L2 on its head and runs these reviews one at a time, on the maintainer's order, after #34910. Answer to triage request 7001941483 on mailbox #34831.

  12. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C
    os-dev-report

    {
    "issue": 34637,
    "status": "done",
    "round": "delta — fix round on the contract review of fcf9e05 (PR comment 7009057594)",
    "branch": "claude/issue-34637-approval-fault-edge",
    "pr": "#35002",
    "head": "c242d97dc3fa (merge of origin/main 819c067 as 1af6115, then one fix commit; no rebase, no force)",
    "session": "session_012MmDsS4GoHCgYwA2uv3n3C",
    "premise_still_valid": true,
    "summary": "S1 fixed: the eval prompt in skills/objectstack-automation/evals/approval-fault-edge.json now ends "None of the project's files are in this directory: write the flow as a TypeScript defineFlow in your answer.", so the three single-quoted tokens match the form the answer is asked for; expected_output opens with the same form. N1 taken at no cost: the reference reads "the body may carry innerRefusal … and userMessage, the hook's declared sentence for the approver" (+2 bytes for the verb, -4 for the tail, net -2), and the eval's expected output and the changeset say the same. N3 taken: the changeset now points to "the list item above it that names the e1 edge". N2 left as ordered. origin/main was merged first; the merge was clean. No live skill-eval round was run, as ordered, so the case is unmeasured with the new prompt and on the merged reference.",
    "tests": "No package source changed. At head c242d97: pnpm exec turbo run build --filter=@objectstack/formula --filter=@objectstack/lint --filter=@objectstack/skills --concurrency=2 under the verify lock: os-verify-lock: VERDICT command-exit 0; @objectstack/skills: 109 file(s) across 13 skill(s) copied from skills/** into dist/skills and read back byte-identical. Eval: NOT MEASURED: family skill-evals, reason: the coordinator ordered no live round (it calls a model and is not a gate); the five earlier turns ran the old prompt against the pre-merge reference and say nothing about this head. The eval file parses to the reader's shape (one case, id 1, both token lists non-empty). Ablation: n/a.",
    "gates": "Local subset at head c242d97, exit codes captured before any pipe and read before the push. dispatch-gates.mjs --commands derived 48 commands (3 paths vs merge base 819c067; one more than round 1: check:skill-served-sections, new on main). All 48 ran: ✓ dispatch-gates --ran: 48 derived famil(ies) accounted for — 46 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3). Token ratchet exit 0: state-machines-and-approvals.md is 5933 tokens (ceiling 5936; headroom 3); 59 authored bundle file(s) within their ceilings; 10 generator-owned file(s) and 39 eval fixture(s) measured, not ratcheted; its --self-test exit 0. pnpm check:skill-links exit 0: 268 relative link(s) in 73 published skill file(s) resolve; 139 fragment(s) name a real heading. check:skill-refs, check:skill-served-sections, check:doc-formula-expressions, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:role-word, check:doc-authoring, check:nul-bytes, check:published-files, the three changeset gates: exit 0. NOT MEASURED: family check:dual-build-cjs-loads, reason: exit 3 PREREQUISITE NOT MET; family check:lean-entry-closure, reason: exit 3 PREREQUISITE NOT MET. Partial: check:dts-closure and check:sourcemap-no-sources-content exit 0 over 6 built package(s) swept. overlap-check.mjs at c242d97: VERDICT clean exit 0 (origin/main 89ea9bf, 0 PR heads); main moved once more after the merge and that move touches nothing under skills/ nor the ratchet script, so no second merge was made. CI check-runs on PR 35002 at c242d97 when this was written: 15 in_progress (Check Changeset, Governed Surface Queue Guard, PR-body guards, Check PR Size, filter, the Lint and Type Check jobs), 2 queued, 5 skipped, none concluded. Not waited for.",
    "line_budget": {
    "file": "skills/objectstack-automation/references/state-machines-and-approvals.md",
    "order": "do not grow the file on the merged tree (5934 of 5936 before this round)",
    "merged_tree_before_fix": {
    "lines": 388,
    "bytes": 23734,
    "tokens": 5934,
    "ceiling": 5936
    },
    "after_fix": {
    "lines": 388,
    "bytes": 23732,
    "tokens": 5933,
    "ceiling": 5936,
    "headroom": 3
    },
    "origin_main_for_reference": {
    "lines": 392,
    "bytes": 23743
    },
    "net_vs_main": {
    "lines": -4,
    "bytes": -11
    },
    "eval_fixture": "skills/objectstack-automation/evals/approval-fault-edge.json 388 -> 423 tokens, measured not ratcheted",
    "skill_md": "no SKILL.md touched by this branch; package SKILL.md sums are those of origin/main",
    "ceilings_moved": 0
    },
    "files_changed": [
    ".changeset/34637-approval-fault-edge-skill.md (this round: 2 lines reworded; vs main +12)",
    "skills/objectstack-automation/evals/approval-fault-edge.json (this round: prompt and expected_output; vs main +22)",
    "skills/objectstack-automation/references/state-machines-and-approvals.md (this round: 2 lines, same line count; vs main +7 -11)"
    ],
    "pr_body_stale_for_the_seat": [
    "The PR body was not patched. Lines that no longer match the head, for the seat to rewrite: the quick-read verification line and the Budget table quote 5913 / 5916 (now 5933 / 5936 on the merged tree, 388 lines, 23732 bytes).",
    "What changes, point 2: "the body carries" is now "the body may carry".",
    "The eval paragraph and the Tests table describe the old prompt and five turns on the pre-merge reference; the prompt now asks for a TypeScript defineFlow and the case is unmeasured on this head.",
    "Verification: 47 derived commands at fcf9e05 is now 48 at c242d97 (46 run, 2 not measured)."
    ],
    "deviations": [
    "The fix commit was made locally and the gates ran before the push, as this round ordered; the tree had no remote copy for about ten minutes.",
    "N1 was paid with a second wording change in the same sentence ("to show the approver" became "for the approver") so the file shrinks by 2 bytes instead of growing by 2.",
    "The changeset gained one clause naming the prompt form; it is this PR's own unreleased changeset."
    ],
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "0 — no MCP GitHub call, read or write",
    "api_writes": "1 relay stroke this round — this delta report comment via post-stamped.mjs: POST /repos//issues/34637/comments. Git pushes: 1 (fcf9e05 to c242d97, fast-forward). No PATCH of the PR body, no label write.",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": []
    }

  13. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-lizheng · session_012MmDsS4GoHCgYwA2uv3n3C

    MERGED: PR #35002 closed this card (2026-11-19T14:10Z), approved and enqueued by the maintainer. On origin/main, state-machines-and-approvals.md teaches that a refusal of the post-decision write routes down the approval node's fault edge, and that the body may carry innerRefusal and userMessage. pm:dispatched and the lease label are off.

  14. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidocumentationdomain:skillsfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions