Repository navigation
fix(lint): say when an unconditional out-edge beside guarded ones runs - #39020
Conversation
The flow-decision-unconditional-branch message, its docblock and the automation skill said the unconditional sibling runs in parallel with the guarded branch. traverseNext awaits the conditioned out-edges in declaration order, then an isDefault one when none held, and only then takes the unconditional out-edges together; a guarded branch that parks the run leaves them untaken. Words only: the rule's verdict, id and trigger are unchanged. Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check2 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 4 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 740f3a8413842d2a359f90a70ce9a9c05e7a81f5 && git checkout 740f3a8413842d2a359f90a70ce9a9c05e7a81f5
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 2f9a68cfa184eaa7e77616df03654233ddd9f9f9 ba1ad6ce0bbcd6d59dba3bd732d790ea8af5828d && git checkout -B drift-repro 2f9a68cfa184eaa7e77616df03654233ddd9f9f9 && git merge --no-ff ba1ad6ce0bbcd6d59dba3bd732d790ea8af5828d
node scripts/docs-audit/affected-docs.mjs --json 2f9a68cfa184eaa7e77616df03654233ddd9f9f9 |
The plain-language text of flow-decision-unconditional-branch in its eleven locales, the flow-multiple-default-edges message and docblock, and the automation skill's onboarding-wizard eval answer: an unconditional out-edge runs after the guarded branch, and default edges are taken one after another. Words only. Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract-review-claim: session_01QSeKYnrQ7UMtHofKQVjcH2 · head ba1ad6c · 2026-12-02T03:08Z |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Contract reviewServed-tier: PR #39020 (card #38992), draft, author account objectstack-fleet[bot], base main at 2f9a68c (the merge base), six files, +58 −26. Read-only review: the diff, the card and its thread (claim 7332395998, dev reports 7332979532 and 7333553130), the engine and the spec at current main (363c967), and the head's check-runs. Nothing was built, run or re-run locally. Result: no must-fix, no should-fix, five nits. ① Derived judgments
Commands, all read-only, with exits:
② Semver level
③ Boundary flags
④ Design judgmentThe engine at main 363c967, as read:
No locale drops or adds a clause, none still says "together with" or "at the same time as", and the rest of each sentence (names, the fix) is untouched.
Findings. Must-fix: none. Should-fix: none. Nits (no effect on correctness or the contract; all five are accepted deviations or optional follow-ups):
The pre-existing "EVERY pass" inexactness for a decision that mixes Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 L1 ACCEPT · PR #39020 (#38992) · head 席位核对 · ACCEPTACCEPT · repo:objectstack@os-justin · head
|
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 维护者速读
Head-sha: |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Queue kick, recorded · 2026-12-02T03:38Z · PR #39020 dequeued ( Signature: |
|
repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2 Ready to re-enqueue · 2026-12-02T04:45Z · the cause of the dequeue (7334095534), the repo-wide ENOBUFS in |
Fixes #38992
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Words only. The rules
flow-decision-unconditional-branchandflow-multiple-default-edgeskeep their ids, their severity (advisory), their trigger conditions and their hints; no test assertion changed. Patch round 1 folded the rest of the family into this PR: the plain-language text in every locale, theflow-multiple-default-edgeswording and the skill's eval answer.Checked against
traverseNextinpackages/services/service-automation/src/dag-traversal.tsatorigin/main2f9a68c:decisionwithoutmode: 'inclusive'only the first whose condition holds is taken;isDefaultedges are taken next, only when no condition held, each awaited before the next;Promise.all);run-resume.ts), not from this node.So an unconditional sibling runs after the guarded branch, concurrently only with other unconditional siblings, and never once a guarded branch parks the run, the shape the flow schema refuses since PR #38970.
skills/objectstack-automation/references/state-machines-and-approvals.md, the bullet above the approvals exampleconditionand follows every match — and an out-edge with NO condition ALWAYS runs (all such edges execute in PARALLEL)"decisiontakes the FIRST out-edge whoseconditionholds. One with none runs AFTER it, every pass, or never if that branch parks the run (refused at save)"packages/lint/src/lint-flow-patterns.ts, the message for a decision with guarded and unconditional out-edgespackages/lint/src/lint-flow-patterns.test.ts, the comment above the firstflow-decision-unconditional-branchtestscreenthe run parks and the edge is never taken; the rule reads edges only and reports either waypackages/lint/src/lint-flow-patterns.user-text.ts, the plain-language text offlow-decision-unconditional-branchfor the same shape, all eleven locales the file carries: en, zh-Hans, zh-Hant, es, ar, fr, pt-BR, ru, de, ja, kopackages/lint/src/lint-flow-patterns.ts,flow-multiple-default-edges, message and docblock item (4)skills/objectstack-automation/evals/flows-triggers-approvals.json, the expected answer of the onboarding-wizard casescreen, a shape the flow schema refuses"The skill's example is consistent with the new sentence:
e4ande5both carry a condition,needs_directoris adecisionwith nomode, ande4reaches anapproval.Skill size readings (lines are the measure; bytes and tokens beside them):
SKILL.mdfiles, before and after: 2143 lines, 121249 bytes. NoSKILL.mdis touched.Changeset:
@objectstack/lintpatch (the message text is inpackages/lint/dist, four bundles) and@objectstack/skillspatch (the package that publishesskills/**).Tests
At head ba1ad6c:
pnpm --filter '@objectstack/lint...' build: exit 0.pnpm --filter @objectstack/lint test: exit 0,Test Files 259 passed (259),Tests 10287 passed (10287).pnpm --filter @objectstack/lint typecheck: exit 0.toContain('EVERY pass'), still holds on the new text.Acceptance notes
skills/**is a governed surface shipped to third parties, so this PR needs a contract-tier review of record on its head before it lands. Nobody is requested by this PR.decisionthat is wrong since decisions became exclusive by default, and it sits in the same sentence, so it is corrected with it.packages/services/service-automation/src/builtin/decision-branch-routing.test.tsline 329, a test comment describing past behaviour: left as is by the dispatch order.packages/spec/src/automation/flow.zod.tsnear line 1036, theisDefaultdocblock: "ran on every pass, alongside whichever branch actually matched", also describing past behaviour.lint-flow-patterns.ts(the fault-handler rule, and the message for a decision that gates no out-edge) andcontent/docs/automation/flows.mdxspeak of unconditional out-edges among themselves, which do run together.dispatch-gates --commandsderives for this diff; 78 exit 0, among themcheck-skills-token-ratchet,check:skill-links,check:skill-frame-sync,check:skill-identifier-liveness,check:skill-compatibility,check:skill-refs,check:skill-served-sections,check:doc-authoring,check:nul-bytesandcheck-empty-changeset. NOT MEASURED locally, left to CI:check:dual-build-cjs-loadsandcheck:lean-entry-closure(exit 3, prerequisite builds of packages this diff does not touch), andcheck-comment-mask-corpus,check:query-options-erasureandcheck:type-check-debt(stopped at the per-command cap (150 s, then 180 s) of the local loop on a shared box).dispatch-gates --ran: 83 derived, 78 run, 5 NOT-MEASURED, 0 unrun.Verification
Read first, by risk:
skills/objectstack-automation/references/state-machines-and-approvals.md, the one changed bullet: every clause againsttraverseNext.packages/lint/src/lint-flow-patterns.ts, the message hunk near line 1520: the parenthesised sentence on the branch that parks the run.packages/lint/src/lint-flow-patterns.user-text.ts: the ten non-English sentences.Two-minute check:
pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/lint-flow-patterns.test.tspasses, andgit diff origin/main...HEAD --statlists six files with no change outside comments, message strings, one skill bullet, one eval answer and the changeset.Generated by Claude Code