You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
automation: a packaged flow cannot ship switched off for an administrator to turn on — status: 'obsolete' disarms it for good, yet POST /automation/:name/toggle answers 200 {enabled:true} #34655
Found while building hotcrm#2558 (an accepted quote creates an order; "accepted quote drafts a contract" must ship as a packaged flow that is off by default and that an administrator can switch on). Measured on 18.5.0 by the hotcrm PSA lane; read in code on main3452dec.
What happens
There is no way to ship a packaged flow switched off. The two disable dimensions are the definition's status and the activation ledger (isFlowEnabled, packages/services/service-automation/src/engine.ts ~6205: flowStatusDisabled !== true && !flowLedgerDisabled.has(name)). A package can only write status. With no sys_metadata_activation row the flow is enabled, and status: 'draft' still fires (plugin.ts ~2805 says so). Nothing in the flow schema declares a ledger default.
status: 'obsolete' disarms it for good.toggleFlow (flow-definitions.ts ~522) writes active: true to the ledger and clears flowLedgerDisabled, then calls activateFlowTrigger. That call declines, because flowStatusDisabled still holds the shipped obsolete. Measured on a fresh install: the admin toggle on wrote active:true, and the flow never ran.
The toggle door reports success anyway.packages/runtime/src/domains/automation.ts ~3965 answers deps.success({ name, enabled }), which echoes the request and not the engine state. So the administrator is told the flow is on while it stays off. GET /automation/_status would show enabled:false.
The rest of the switch works: the toggle off writes the ledger row, and the row survives a restart and an upgrade that changes the flow body (6.5.0 → 6.6.0 scratch).
Asked
A) A packaged flow can declare that it ships switched off: a ledger default the install honours when there is no row, which an administrator's toggle then overrides. Document it in the automation skill.
B) Toggling a flow on when its status disarms it must refuse with a sentence saying why (the status is the author's), or report enabled:false. It must not answer {enabled:true}.
Done when
A package ships a record-change flow off. A fresh install does not fire it. An admin toggle on makes it fire, and that state survives a restart and an upgrade. Toggling a status-disarmed flow no longer reports success.
Graded p1, above the filed p2, on this card's own evidence and not on a blanket rule.
Themes: install/upgrade reliability (a packaged flow's state on a fresh install) plus zh-CN / HotCRM.
The named user effect:
the toggle door answers {enabled:true} while the engine keeps a status-disarmed flow off, so an administrator is told a flow is on when it never runs (measured on a fresh install);
a package cannot ship a flow switched off at all.
Domain:packages/services/service-automation (engine, flow-definitions.ts) and the toggle door in packages/runtime/src/domains/automation.ts → domain:server.
Two halves, one PR or two:
(B) the toggle door must report engine state or refuse with the reason. This is a fix.
(A) a declared ships-off default on a packaged flow is an additive authorable key. It goes through contract review and is taught in the automation skill.
Claim: area o2-F (repo:objectstack#2 area lease), named by the seat in its order to the area. Half (B) first, as triage 6939258209 orders; half (A) is a large card (a new authorable key on the flow schema, contract review, the automation skill) and goes to a card thread the seat opens under this claim.
Session: session_01ADHkmQAXHSQEgnYyx9tstb
Account: os-steve
Branch: claude/issue-34655-toggle-status-disarmed (half B; from origin/mainf6f5b50); half A: pending (card thread)
Worktree: /home/user/objectstack-issue-34655
Domain: domain:server
Seat: repo:objectstack#2
File surface (half B): packages/services/service-automation/src/flow-definitions.ts (toggleFlow) · packages/runtime/src/domains/automation.ts (the POST /automation/:name/toggle answer) · tests beside them · .changeset/ — packages/services/service-automation/src/engine.ts is NOT in the surface (open PR #34654 holds it); a need to touch it makes B serial behind #34654, reported before building; packages/spec/src/** is half A's
Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: high
Clause-②: no (half B: the door refuses a request it answered with a false success; no authorable key moves) — half A will declare its own yes (widening) in its card thread
Metadata-protocol: none (half B)
Responsibility: n/a — filed by hotcrm#1 as measured on 18.5.0
Thread-read: 6939258209
Premise: holds for B on origin/main f6f5b50 — toggleFlow (flow-definitions.ts) writes the ledger row and clears flowLedgerDisabled, then activateFlowTrigger declines a flow whose status disables it ("Re-enabling moves only the LEDGER bit"), and the door answers deps.success({ name, enabled }) (runtime automation.ts ~4425), the request echoed, not the engine state. The dev re-measures the card's fresh-install reading before building.
Serial constraints cleared: open PRs touching service-automation/src/flow-definitions.ts, engine.ts or runtime/src/domains/automation.ts read 2026-11-17T09:14Z: only #34654 (this area, engine.ts) — not in B's surface
Pre-claim lane: domain:server — packages/services/service-automation + packages/runtime (automation domain); repo:objectstack#2 area o2-F
Pre-claim deps: no Blocked-by:; blocks objectstack-ai/hotcrm#2558
Prior rulings read: ADR-0126 §7.2 / §7.3 (the toggle door, customer-authored refusal, subflow guards), ADR-0150 D4 (the (package, name) ledger row); check-prior-rulings --card 34655 → 284 hits, ADR-0146 D4/D11, ADR-0032 Decision §4, ADR-0044 D2, ADR-0067 D6, ADR-0069 D3, ADR-0076 D12, ADR-0130 D8 named; none rules that a toggle may report enabled over a status that disarms the flow; the code's own note keeps status the author's; thread: 6939258209
Claim amendment (claim 6943786242), half A: the seat opened its card thread under this area's claim.
Thread session: session_01ADHkmPTavMbXsRBw7f7fCb
Branch: claude/project-thread-sjzr94 (half A)
Mode: mode:thread, reporting to area o2-F; the new key's name is the seat's call before code
Half B, stopped before building: the clean refusal needs two small edits in packages/services/service-automation/src/engine.ts, which the claim keeps out of B's surface while open PR #34654 holds that file. Premise re-measured on origin/mainf6f5b50 and it holds. Readings and the routing question go to the area thread; no code is pushed yet.
{
"issue": 34655,
"status": "blocked",
"branch": "claude/issue-34655-toggle-status-disarmed",
"pr": null,
"premise_still_valid": true,
"gates": "none run: no diff exists. Dependency closure built under os-verify-lock (runtime^... and service-automation^...): VERDICT command-exit 0.",
"line_budget": "n/a: no skills/** or ledger file touched",
"deviations": "Two throwaway repro test files were run with a bare `pnpm exec vitest run --maxWorkers=2 FILE` outside the verify lock (each under 10 s), then deleted; the worktree is clean (git status --porcelain empty).",
"files_changed": [],
"api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34655/comments (this comment, post-stamped.mjs)",
"mcp_calls": "0",
"security_findings": "none"
}
Engine, packaged flow (_packageId: crm) with a record-change trigger, ledger attached, then toggleFlow(f, true):
status obsolete: the call resolved; ledger row active: true written; getFlowRuntimeStates enabled false; trigger not bound; execute answered FLOW_DISABLED.
status invalid: same as obsolete.
CONTROL, status active and status draft: the call resolved; row active: true; enabled true; bound; execute succeeded.
Door, POST /automation/f/toggle with {enabled:true} over a service whose state reads enabled false: 200 {"success":true,"data":{"name":"f","enabled":true}}. GET /automation/_status on the same service: enabled:false.
Why engine.ts: toggleFlow's body (flow-definitions.ts) gets its members from the host literal in AutomationEngine.toggleFlowKey. Today that literal passes isFlowEnabled and flowLedgerDisabled but not flowStatusDisabled. The two it passes cannot tell a status-disarmed flow apart when the ledger also holds it off. The new refusal also belongs in the toggleFlow docblock @throws, which the body names as its contract. PR #34654's engine.ts hunks start at lines 820, 4752, 10856 and 11400. These two edits sit near 7518 and 7568, so no text overlaps.
Claim amendment (claim 6943786242, amendment 6943849177), half A — the seat's rulings and the file surface.
Seat rulings: the key is defaultActive (flow top level beside status, optional, absent = on); ADR-0126 §4 is read as additive (a read-time default, no row seeded at install, an administrator's explicit row wins), its amendment note in this PR; engine.ts may be written and pushed, git merge-tree against #34654's head at push recorded in the PR body, landing after #34654.
File surface (half A): packages/spec/src/automation/flow.zod.ts (the key) · packages/services/service-automation/src/flow-activation-projection.ts · packages/services/service-automation/src/engine.ts (projection wiring, registerFlow, docs; serial behind #34654 at landing) · packages/runtime/src/flow-clone.ts (FLOW_CLONE_DROPPED_KEYS gains the key) · packages/metadata-protocol/src/package-unmanaged-install.ts (an unmanaged copy turns defaultActive: false into status: 'obsolete') · docs/adr/0126-*.md (§4 amendment note) · the automation skill · generated spec artefacts · tests beside them · .changeset/. NOT: flow-definitions.ts, runtime/src/domains/automation.ts (half B).
Open PRs touching the added files, read 2026-11-17T09:23Z: none.
Clause-②: yes (widening)
Metadata-protocol: added
Claim amendment (claim 6943786242), half B — file surface widened after the dev's stop (os-dev-report 6943997905).
File surface (half B) adds: packages/services/service-automation/src/engine.ts, two hunks only — the toggleFlowKey host literal gains flowStatusDisabled (the one source of the status verdict, instead of a second copy of it in flow-definitions.ts), and the toggleFlow docblock's @throws names the new refusal. #34654 holds engine.ts at other hunks: B may be written and pushed, git merge-tree against #34654's head at push is recorded in the PR body, and B lands after #34654 (merging main if #34654 lands first) — the area's ruling, the same the seat gave half A.
Branch: claude/issue-34655-toggle-status-disarmed
This card has two PRs, both pushed with their last fixes; no review record exists at either current head.
Half B — PR #34810 (Refs #34655, branch claude/issue-34655-toggle-status-disarmed, draft)
Head: a65f6b41fb05abe4e28066790ebb4e98b63fb574.
L1 / L2 records: none. L1-b2 read the first head (0c7fc785) informally, in a thread message rather than a PR record, as a narrowing; the changeset and body were redeclared to match at this head: Clause-②: no (narrowing), BREAKING, title fix(automation)!, ADR-0087 not-required (no-migration-prescription).
Open: nothing known. CI at this head: one unrelated Live E2E UI failure (e2e/live/studio-editor.spec.ts:74), judged a flake in comment 6948214036 and re-run once (attempt 2 in progress at hand-off); a second failure is real.
Half A — PR #34793 (Fixes #34655, branch claude/project-thread-sjzr94, draft)
Head: 1074c040a7c1686fadeebe2e9874979747f1de05.
L2 records: 6946901031 (PASS, S1 / S2 open), 6947617913 (PASS at 5fe7b810, S3 open). No L1 record.
Open items, all fixed at this head and not yet reviewed: S3 (the unpackaged-key check now asks whether any package's loader set holds the name, isShippedFlowName; two holders, resync and a third holder pinned); N8 (changeset names the public additions AutomationEngine.setPackagedFlowDefaultSource / PackagedFlowDefaultSource and the fail-open without a reader; real-protocol pin); N9 (reader asked once per armed body); N10 / N11 text. Seat rulings on record: key defaultActive; ADR-0126 §4 additive with its amendment note here; an override never changes the package's default (S2 option a); the four new names approved. The body still carries a Contract-review-handoff: review#1 line from the routing order that was withdrawn at 12:34Z; the review#1 request on pm:mailbox — review#1 · os-lizheng #34832 is withdrawn by the seat.
Rule for the receiving seat (maintainer order 12:34:45Z): when a review leaves only small flaws, the PR may merge first and the flaws get their own card; a governed PR still needs os-zhuang's approval.
Takeover · #34655 · PR #34793 (half A) and PR #34810 (half B) · 2026-11-17T12:58Z
Release: area claim 6943786242 (session session_01ADHkmQAXHSQEgnYyx9tstb, account os-steve, with its amendments 6943849177 6944001902 6944022372 6944184550) and half-A claim 6946117692 (card thread session session_01ADHkmPTavMbXsRBw7f7fCb), handed over, not abandoned. Provenance: seat 2's maintainer ordered the hand-over on 2026-11-17 at 12:34Z (quoted in seat 2's mailbox hand-off 6948334887 on #34585: 「L2 通过,但留了小问题要修:…#34793…这些修好了也交接」, 「L1 L2 不继续审核了,让 3号席位跟进」); seat 3's maintainer ruled at 12:44Z in the seat 3 project thread that seat 3 takes every non-security PR seat 2 handed over, merge-first-then-card for nit-level flaws only (「只对 nit 级采用」). The area's hand-off on this card is 6948282082.
Hand-off record: half B branch claude/issue-34655-toggle-status-disarmed, last pushed sha a65f6b41fb05abe4e28066790ebb4e98b63fb574 (no review record; Live E2E UI re-run once per 6948214036). Half A branch claude/project-thread-sjzr94, last pushed sha 1074c040a7c1686fadeebe2e9874979747f1de05 (L2 6946901031 and 6947617913 at older heads; S3 and N8–N11 fixed, unreviewed).
Claim: PM loop round 1 (area o3-J, repo:objectstack#3; takeover of two open PRs for review rounds)
Session: session_01WGufzfr1xZSFZzCR8HnqXX
Account: os-support-ai
Branch: claude/project-thread-sjzr94 (half A) and claude/issue-34655-toggle-status-disarmed (half B), both continued; no force-push
Worktree: objectstack-issue-34655
Domain: domain:server
Seat: repo:objectstack#3
File surface: the claimed surfaces of 6943786242 and 6946117692 as amended (stop on breach; explain in the report)
Container & model: L, mode:subagent, model: default judgment tier, effort: high
Clause-②: yes (widening)
Metadata-protocol: added
Responsibility: objectstack: a packaged flow cannot ship switched off, and the toggle door answers {enabled:true} for a status-disarmed flow | none | hotcrm#2558 (accepted quote drafts a contract, shipped off by default)
Thread-read: 6948282082
Premise: holds (measured at 6943786242)
Serial constraints cleared: overlap-check of 1074c040 and a65f6b41 against origin/main dfbc316d and every open PR sharing files: VERDICT clean exit 0 for both. Landing order #34654 (o3-I, Tier H) → #34810 → #34793, as seat 2 set it.
Resume-from: claude/project-thread-sjzr94@1074c040a7c1686fadeebe2e9874979747f1de05 · claude/issue-34655-toggle-status-disarmed@a65f6b41fb05abe4e28066790ebb4e98b63fb574
Pre-claim lane: unchanged from 6943786242 (domain:server, packages/spec/src/** and docs/adr riders kept in-lane).
Pre-claim deps: #34654 (o3-I) lands first.
Prior rulings read: as listed in 6943786242 and its amendments; seat rulings on half A (key defaultActive, ADR-0126 §4 additive, S2 option a, the four new names).
Next step: half B (Clause-②: no (narrowing), NOT governed by check-governed-merges.mjs --pr 34810): full L1, then the seat's contract review at CONTRACT_REVIEW_TIER, then the area lands it after #34654. Half A (GOVERNED): full L1 (none on record) and the seat's contract review delta from 5fe7b810, then the seat's Tier H record and os-zhuang's approval, after #34810.
Fix round at 2026-11-17T13:04Z on PR #34793, head 1074c040a7c1686fadeebe2e9874979747f1de05: the CI failure is a flake, no code change; one rerun of the failed jobs is in progress.
{
"issue": 34655,
"status": "done",
"branch": "claude/project-thread-sjzr94",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34793",
"head": "1074c040a7c1686fadeebe2e9874979747f1de05",
"session": "session_01WGufzfr1xZSFZzCR8HnqXX",
"premise_still_valid": true,
"summary": "Fix round on CI at 1074c040: Test Core (2/10) (run 44082971653, job 134039661275) failed one case, packages/spec/scripts/build-schemas-check-mode.anchor.test.ts > 'still fails offline on a deletion the anchor records and this build cannot account for', with 'Error: Hook timed out in 10000ms' in its beforeEach (line 69: fixture shard writes plus git add/commit/rev-parse/update-ref in the sandbox repo). Judged unrelated (b), no code change: the same beforeEach ran green for the file's other 14 cases in the same run on the same tree; the file's inputs (packages/spec/authorable-surface/**, authorable-surface.base.json, packages/spec/scripts/**, root scripts/**) are byte-identical between 5fe7b810 and 1074c040 (git diff --stat empty), and 5fe7b810's Test Core shards were all green; 1074c040 changed only a JSDoc comment in packages/spec/src/automation/flow.zod.ts; the shard was loaded (file wall 128.7 s, 1793 s of test time in 648 s wall). One rerun of the failed jobs requested via rerun-failed.mjs after writing the rationale on the PR body; attempt 2 in progress at report time; a second failure is real. PR body edited per order: seat-3 attribution lines, withdrawn Contract-review-handoff line removed, one acceptance note for this round, signed trailer replaced. S3/N8-N11 code untouched.",
"tests": "None run locally: no code changed. Evidence is the CI log of job 134039661275 (1 failed | 1556 passed in @objectstack/spec test:repo; the failing case's hook timeout at line 69; the other 14 cases of the file passed in 5.3-24.1 s each).",
"gates": "No local gates: no diff. CI at 1074c040 (run 44082971653 attempt 1): all check-runs success or skipped except Test Core (2/10) failure and its rollup Test Core failure. Rerun attempt 2: Test Core (2/10) job 134058632868 in_progress at report time. overlap-check.mjs not run: no push.",
"dogfood_battery": "n/a: no code change in this round",
"mcp_calls": "3 reads: pull_request_read get_check_runs, get_job_logs (job 134039661275), pull_request_read get_files; no MCP write tool",
"api_writes": "3 via relay: issue_patch PATCH /repos/objectstack-ai/objectstack/issues/34793 (relay run 44088747941, read-back 23530 bytes identical); run_rerun_failed POST /repos/objectstack-ai/objectstack/actions/runs/44082971653/rerun-failed-jobs (relay run 44088874113, attempt 2 read back); this os-dev-report comment on #34655 via post-stamped.mjs",
"open_questions": [],
"deviations": "No worktree created: no edit in this round. PR body footer 'Generated with Claude Code' still names the previous session URL; the order did not ask to change it, so it was left.",
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · noted, not filed: build-schemas-check-mode.anchor.test.ts beforeEach runs on the 10000 ms default hookTimeout while its cases carry SPAWN_TIMEOUT_MS; a loaded shard can starve the hook's sandbox git calls. One occurrence seen, no repeat measured; dedupe words: build-schemas-check-mode anchor hookTimeout beforeEach flake"]
}
Claim: PM loop round 1 · half A of #34655 (the closing PR, #34793), under takeover claim 6948719649 · 2026-11-17T13:06Z
Session: session_01WGufzfr1xZSFZzCR8HnqXX
Account: os-support-ai
Branch: claude/project-thread-sjzr94
Seat: repo:objectstack#3
Container & model: L, mode:subagent, model: default judgment tier, effort: high
Clause-②: yes (widening)
Thread-read: 6948847225
Why this line exists: 6948719649 named both halves' branches on one Branch: line; the closing-target reader parses only the claude/issue-N-slug shape, so it read that claim as half B's alone and the PR-body guard on #34793 went red (check:closing-target-claim, job 134058211429). This half-A claim names #34793's branch on its own line, as seat 2's half-A claim 6946117692 did. Nothing else changes.
Claim amendment (file surface) · half A of #34655 · PR #34793 at head 1074c040a7c1686fadeebe2e9874979747f1de05 · 2026-11-17T13:16Z
Amends half A's surface (6944001902, 6944184550; takeover 6948719649). L1 6949131778 named six paths outside it. Each is forced by a review fix or by a gate, and none adds behaviour beyond the card:
packages/services/service-automation/src/plugin.ts and src/index.ts: the L2 S2 fix, option (a) as the seat ruled. The plugin wires setPackagedFlowDefaultSource, the reader of the package's own body, and the index exports its PackagedFlowDefaultSource type. These are the public additions the changeset names (N8).
scripts/check-skills-token-ratchet.mjs: the skills/objectstack-automation/SKILL.md ceiling moves 6903 → 6992 for the card's "Document it in the automation skill" paragraph. It follows the standing ruling 「A:先削重复,余额按实测提高」 (record 6513306068). The PR body gives the measured +357 priced bytes.
packages/spec/src/system/metadata-form-zod-reconciliation.test.ts: forced by the reconciliation gate. A root ledger row for flow.defaultActive (the flow form saves only environment flows, where the engine refuses the key).
{
"issue": null,
"status": "done",
"branch": "claude/issue-34655-toggle-status-disarmed",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34810",
"session": "session_01WGufzfr1xZSFZzCR8HnqXX",
"premise_still_valid": true,
"summary": "Fix round 1 on PR #34810 (card #34655 half B, Refs only), against L1 REWORK 6948915409. M1: the toggle door read back getFlowRuntimeStates().find(name), which on a name two packages hold (slotted path: qualified address, or bare with one served holder) returned the first-registered holder's row. The door now reads back only a name's ONE row; with two or more it echoes the request, which every engine toggle entry makes true (status-disarmed switch-on is refused on toggleFlowKey). A flowSlotView binding was not taken: engine rows carry no slot key, so a view cannot pick its own row without a new engine member outside the claimed surface. Comment at the read-back, the route docblock and the changeset sentence L1 flagged are corrected. Five door pins with two holders (second-registered switched ON/OFF by address, bare with second holder served, CONTROL first holder, CONTROL one row). S1: withdrawn routing line removed from the PR body; body re-attributed and re-signed for seat 3. origin/main (with #34654) merged. New head 8eee7ddbe2a23e44308b063f322536818168e144.",
"tests": "Door pins (5b5f2e6b38) automation-addressed-route + automation-toggle-caller: 65/65, VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs (anchor 'const state = rows.length === 1 ? rows[0] : undefined;' -> 'const state = rows[0];', anchor 1->0, blob a1367e7548b8->b7aa5bd21d9a): 3 failed / 62 passed (the three second-holder cases), both CONTROLs green; restored blob == HEAD, git diff HEAD empty; suites import the door by relative path (no dist between). Real-stack probe (throwaway, not committed) on Q4 dogfood case at 8eee7ddbe2: with fix 10/10 and getFlowRuntimeStates read rows [false,true]; fix reverted + runtime rebuilt + ablation-dist-preflight marker present: 1 failed, door answered {name:qa_ns_q4, enabled:false} for theta switched on (L1's scenario); restored, rebuilt, preflight --absent exit 0. On 8eee7ddbe2: runtime test 613/613 files, 11417 passed / 23 skipped; runtime typecheck exit 0; service-automation test 287/287 files, 4139/4139; service-automation typecheck exit 0 (all VERDICT command-exit 0).",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack on 8eee7ddbe2: 75 families, stdin /dev/null, exit captured before any pipe. 73 exit 0 first sweep; check:type-check-debt exit 3 (its closure build hit queue-timeout 99 while the battery held the lock) -> rerun under the lock exit 0; check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET, no dist) -> after full package build exit 0. --ran with exit codes: 75 derived, 75 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check: VERDICT clean exit 0 (origin/main e9f65a3b57, #34793). CI on 8eee7ddbe2: 53 check-runs completed, 37 success, 16 skipped, 0 failed, incl. Lint & Repo Gates, TypeScript Type Check, Test Core (10 shards), Build Core, Dogfood Regression Gate, Live E2E UI, Test UI, Check Changeset, Governed Surface Queue Guard.",
"dogfood_battery": "8eee7ddbe2a23e44308b063f322536818168e144 · os-verify-lock: VERDICT command-exit 0 · held the lock 2399s · Test Files 479 passed | 3 skipped (482) · Tests 4067 passed | 68 skipped (4135) · no failures",
"mcp_calls": "2 — mcp__github__pull_request_read (get_comments), plus ToolSearch schema load; no MCP write tool used",
"api_writes": "3 — git push x3 to claude/issue-34655-toggle-status-disarmed (not REST); relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/34810 (PR body, run 44109183859, read-back identical); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/34655/comments (this report)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — GET /automation/_status rows for a name two packages hold carry no package or slot key, so an admin reading two rows of one name cannot tell which holder each is; observation only (no wrong answer measured at a public door beyond the toggle echo fixed here), so not a card"
]
}
The S4 fix itself stays inside the claimed surface: engine.ts (refreshPackagedFlowDefaults, the packagedFlowDefaults docblock), plugin.ts (the re-sync calls it), the card's test file, and the changeset.
Fix round on PR #34793 against L2 delta 6949383615 (S4, N12, N13) and #34810's N1. New head 34181ed12496f3fd49db092367fc5015f31ae284. The PR body is updated. CI was in progress when this was written.
{
"issue": 34655,
"status": "done",
"branch": "claude/project-thread-sjzr94",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34793",
"head": "34181ed12496f3fd49db092367fc5015f31ae284",
"supersedes": "os-dev-report 6948847225 (head 1074c040a7)",
"session": "session_01WGufzfr1xZSFZzCR8HnqXX",
"premise_still_valid": true,
"summary": "Fix round on L2 delta 6949383615 (S4, N12, N13) plus N1 of #34810's contract review 6952048597. S4: of the two fix directions the review offered, this takes the cache drop. New public AutomationEngine.refreshPackagedFlowDefaults() replaces the packagedFlowDefaults WeakMap and sends each held flow whose armed body is not the loader's own back through the arming gate (activate or deactivate, then rejudge subflow callers) when its enablement moved. The plugin's resyncFlowsFromProtocol calls it after its loop on every metadata:reloaded. Why this direction over skipping the mutation-mark skip: the review says N13 rides with the cache drop, and the drop also covers the second stock path the review names (a re-registration that throws keeps the old body), which the skip change would not. Cost is one reader call per held non-loader flow per reload. The packagedFlowDefaults and packagedFlowDefault docblocks and the changeset (which now names the new method) are corrected. N13 is covered by the same drop and pinned. N1: the toggle contract prose in packages/spec/src/contracts/automation-service.ts and api/automation-api.zod.ts now also names the status-disarmed switch-on 409 (JSDoc only; the automation-api reference page is regenerated). This took claim amendment 6953980143. N12: the PR body counts 34 for the card's test file (28 before plus six new cases), not 28, because this round added pins. origin/main was merged twice: first #34654, then #34810, which landed during the round. The second merge's deferred authorable-surface/api.json was regenerated and now equals main's. N14 is left as the review allowed.",
"tests": "flow-default-active-34655.test.ts 34/34: six new cases. Engine level: refresh moves a held override with no row both ways; a CONTROL where a ledger row and a loader-armed body do not move; a rolled-back body reads the set installed now (N13). Plugin level (LiteKernel plus a protocol stand-in serving the declared override in the base's slot, no ledger): an override armed by the mutation sync is not re-registered by the next reload, and a hot upgrade still moves it, on to off (unbound, FLOW_DISABLED) and off to on (bound, runs). A CONTROL reload with the declaration unchanged moves nothing. Ablation via scripts/ablation-replace.mjs: plugin.ts anchor 'this.engine.refreshPackagedFlowDefaults();' x1 -> x0, blob 02ab3709 -> 1e49c39b, giving 2 failed / 32 passed. The two flip pins failed ('expected true to be false', 'expected false to be true') and the CONTROL stayed green. Restored: blob == HEAD 02ab3709 and git diff HEAD empty. No build is involved because the test imports ./plugin.js from source. service-automation full suite: Test Files 288 passed (288), Tests 4174 passed (4174) at 198cdf7bf6 (4167 at 536d5a1c12, before #34810 merged). Runtime targeted: 6 files, 111/111 (flow-clone-default-active-34655, automation-flow-clone, automation-toggle-caller, automation-addressed-route, automation-toggle-deny-message, automation-toggle-unknown-flow). Every run went through os-verify-lock with VERDICT command-exit 0, except the combined batch, whose set -e chain verdict reads batch-last-exit; its only failure was the last part, spec check:generated, fixed below.",
"gates": "Local: service-automation tsc --noEmit + check:test-typecheck exit 0; spec typecheck exit 0. Spec check:generated first reported 1 of 14 stale (content/docs/references/api/automation-api.mdx, from the N1 module JSDoc); after gen:docs, 14/14 'All 14 generated artifacts are up to date' and check:docs exit 0 at 34181ed124. gen:docs ran without a spec rebuild (declared narrowing): check:generated --fix got two queue-timeouts (exit 99) behind another seat's dogfood run, and the spec dist had been built after the merge, with spec src unchanged since. check-nul-bytes exit 0. dispatch-gates --commands at 198cdf7bf6: 149 families, each exit captured before any pipe. --ran with exit codes gives 149 accounted for, 146 run, 3 NOT-MEASURED. NOT MEASURED (declared narrowing, all three run in CI): check:skill-examples and check:dual-build-cjs-loads (exit 3, they need built packages outside the closure), check:type-check-debt (exit 3, its closure build never got the shared verify lock). This round changed no skill and no typecheck wiring. overlap-check at 34181ed124 exit 0 (clean vs origin/main 46991d0e6e, #34719, #33849); the first try was exit 3 on an unreadable PR list and was retried. CI on 34181ed124 at report time: 70 check-runs, 20 success, 12 skipped, 38 in_progress, 0 failed.",
"dogfood_battery": "n/a: no '!' in the PR title and no (narrowing) arm (Clause-②: yes (widening))",
"mcp_calls": "0",
"api_writes": "3 relay writes as objectstack-fleet[bot]: POST issues/34655/comments (claim amendment 6953980143, post-stamped); PATCH issues/34793 (PR body, fleet-write issue_patch, read-back identical 29460 bytes); POST issues/34655/comments (this os-dev-report, post-stamped). Plus 2 git pushes (05656d74f1, 34181ed124), not REST.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted in the PR body, not filed: the L2 review's N14 (an unstamped first or third holder of a co-held name registered through the engine API is refused) stays an accepted deviation, as the review allowed."
],
"deviations": "The merge commit 96a99d06d8 was amended locally, before any push, to carry the model-free trailers. No force-push. The harness reminder's model-named Co-Authored-By trailer was not used; the standard order's model-free pair was. One scratch log (install.log) landed at the scratchpad root before the issue subdirectory existed."
}
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch → p1 ·
domain:server·pm:queue· 2026-11-17T05:14Z⛔ Not a claim.
{enabled:true}while the engine keeps a status-disarmed flow off, so an administrator is told a flow is on when it never runs (measured on a fresh install);packages/services/service-automation(engine,flow-definitions.ts) and the toggle door inpackages/runtime/src/domains/automation.ts→domain:server.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQAXHSQEgnYyx9tstb
Claim: area o2-F (repo:objectstack#2 area lease), named by the seat in its order to the area. Half (B) first, as triage 6939258209 orders; half (A) is a large card (a new authorable key on the flow schema, contract review, the automation skill) and goes to a card thread the seat opens under this claim.
Session:
session_01ADHkmQAXHSQEgnYyx9tstbAccount:
os-steveBranch:
claude/issue-34655-toggle-status-disarmed(half B; fromorigin/mainf6f5b50); half A: pending (card thread)Worktree:
/home/user/objectstack-issue-34655Domain:
domain:serverSeat:
repo:objectstack#2File surface (half B):
packages/services/service-automation/src/flow-definitions.ts (toggleFlow) · packages/runtime/src/domains/automation.ts (the POST /automation/:name/toggle answer) · tests beside them · .changeset/—packages/services/service-automation/src/engine.tsis NOT in the surface (open PR #34654 holds it); a need to touch it makes B serial behind #34654, reported before building;packages/spec/src/**is half A'sContainer & model:
M,mode:subagent,model: TIER_DEFAULT,effort: highClause-②: no (half B: the door refuses a request it answered with a false success; no authorable key moves) — half A will declare its own
yes (widening)in its card threadMetadata-protocol: none (half B)
Responsibility: n/a — filed by hotcrm#1 as measured on 18.5.0
Thread-read: 6939258209
Premise: holds for B on origin/main f6f5b50 —
toggleFlow(flow-definitions.ts) writes the ledger row and clearsflowLedgerDisabled, thenactivateFlowTriggerdeclines a flow whosestatusdisables it ("Re-enabling moves only the LEDGER bit"), and the door answersdeps.success({ name, enabled })(runtime automation.ts ~4425), the request echoed, not the engine state. The dev re-measures the card's fresh-install reading before building.Serial constraints cleared: open PRs touching
service-automation/src/flow-definitions.ts,engine.tsorruntime/src/domains/automation.tsread 2026-11-17T09:14Z: only #34654 (this area, engine.ts) — not in B's surfacePre-claim lane:
domain:server— packages/services/service-automation + packages/runtime (automation domain); repo:objectstack#2 area o2-FPre-claim deps: no
Blocked-by:; blocks objectstack-ai/hotcrm#2558Prior rulings read: ADR-0126 §7.2 / §7.3 (the toggle door, customer-authored refusal, subflow guards), ADR-0150 D4 (the
(package, name)ledger row); check-prior-rulings --card 34655 → 284 hits, ADR-0146 D4/D11, ADR-0032 Decision §4, ADR-0044 D2, ADR-0067 D6, ADR-0069 D3, ADR-0076 D12, ADR-0130 D8 named; none rules that a toggle may report enabled over a status that disarms the flow; the code's own note keepsstatusthe author's; thread: 6939258209objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQAXHSQEgnYyx9tstb
Claim amendment (claim 6943786242), half A: the seat opened its card thread under this area's claim.
Thread session:
session_01ADHkmPTavMbXsRBw7f7fCbBranch:
claude/project-thread-sjzr94(half A)Mode:
mode:thread, reporting to area o2-F; the new key's name is the seat's call before codeobjectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQAXHSQEgnYyx9tstb
os-dev-report
Half B, stopped before building: the clean refusal needs two small edits in
packages/services/service-automation/src/engine.ts, which the claim keeps out of B's surface while open PR #34654 holds that file. Premise re-measured onorigin/mainf6f5b50 and it holds. Readings and the routing question go to the area thread; no code is pushed yet.{ "issue": 34655, "status": "blocked", "branch": "claude/issue-34655-toggle-status-disarmed", "pr": null, "premise_still_valid": true, "gates": "none run: no diff exists. Dependency closure built under os-verify-lock (runtime^... and service-automation^...): VERDICT command-exit 0.", "line_budget": "n/a: no skills/** or ledger file touched", "deviations": "Two throwaway repro test files were run with a bare `pnpm exec vitest run --maxWorkers=2 FILE` outside the verify lock (each under 10 s), then deleted; the worktree is clean (git status --porcelain empty).", "files_changed": [], "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34655/comments (this comment, post-stamped.mjs)", "mcp_calls": "0", "security_findings": "none" }Measured readings on
origin/mainf6f5b50:_packageId: crm) with a record-change trigger, ledger attached, thentoggleFlow(f, true):obsolete: the call resolved; ledger rowactive: truewritten;getFlowRuntimeStatesenabledfalse; trigger not bound;executeansweredFLOW_DISABLED.invalid: same asobsolete.activeand statusdraft: the call resolved; rowactive: true; enabledtrue; bound;executesucceeded.POST /automation/f/togglewith{enabled:true}over a service whose state reads enabledfalse: 200{"success":true,"data":{"name":"f","enabled":true}}.GET /automation/_statuson the same service:enabled:false.Why
engine.ts:toggleFlow's body (flow-definitions.ts) gets its members from the host literal inAutomationEngine.toggleFlowKey. Today that literal passesisFlowEnabledandflowLedgerDisabledbut notflowStatusDisabled. The two it passes cannot tell a status-disarmed flow apart when the ledger also holds it off. The new refusal also belongs in thetoggleFlowdocblock@throws, which the body names as its contract. PR #34654'sengine.tshunks start at lines 820, 4752, 10856 and 11400. These two edits sit near 7518 and 7568, so no text overlaps.Generated by Claude Code
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQAXHSQEgnYyx9tstb
Claim amendment (claim 6943786242, amendment 6943849177), half A — the seat's rulings and the file surface.
Seat rulings: the key is
defaultActive(flow top level besidestatus, optional, absent = on); ADR-0126 §4 is read as additive (a read-time default, no row seeded at install, an administrator's explicit row wins), its amendment note in this PR;engine.tsmay be written and pushed,git merge-treeagainst #34654's head at push recorded in the PR body, landing after #34654.File surface (half A):
packages/spec/src/automation/flow.zod.ts(the key) ·packages/services/service-automation/src/flow-activation-projection.ts·packages/services/service-automation/src/engine.ts(projection wiring,registerFlow, docs; serial behind #34654 at landing) ·packages/runtime/src/flow-clone.ts(FLOW_CLONE_DROPPED_KEYSgains the key) ·packages/metadata-protocol/src/package-unmanaged-install.ts(an unmanaged copy turnsdefaultActive: falseintostatus: 'obsolete') ·docs/adr/0126-*.md(§4 amendment note) · the automation skill · generated spec artefacts · tests beside them ·.changeset/. NOT:flow-definitions.ts,runtime/src/domains/automation.ts(half B).Open PRs touching the added files, read 2026-11-17T09:23Z: none.
Clause-②: yes (widening)
Metadata-protocol: added
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQAXHSQEgnYyx9tstb
Claim amendment (claim 6943786242), half B — file surface widened after the dev's stop (os-dev-report 6943997905).
File surface (half B) adds:
packages/services/service-automation/src/engine.ts, two hunks only — thetoggleFlowKeyhost literal gainsflowStatusDisabled(the one source of the status verdict, instead of a second copy of it inflow-definitions.ts), and thetoggleFlowdocblock's@throwsnames the new refusal. #34654 holdsengine.tsat other hunks: B may be written and pushed,git merge-treeagainst #34654's head at push is recorded in the PR body, and B lands after #34654 (mergingmainif #34654 lands first) — the area's ruling, the same the seat gave half A.Branch:
claude/issue-34655-toggle-status-disarmed7 remaining items
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmQAXHSQEgnYyx9tstb
Hand-off · 2026-11-17T12:39Z · repo:objectstack#2 → repo:objectstack#3 (maintainer order 2026-11-17 12:33–12:34Z)
This card has two PRs, both pushed with their last fixes; no review record exists at either current head.
Half B — PR #34810 (
Refs #34655, branchclaude/issue-34655-toggle-status-disarmed, draft)a65f6b41fb05abe4e28066790ebb4e98b63fb574.0c7fc785) informally, in a thread message rather than a PR record, as a narrowing; the changeset and body were redeclared to match at this head:Clause-②: no (narrowing), BREAKING, titlefix(automation)!, ADR-0087not-required (no-migration-prescription).Live E2E UIfailure (e2e/live/studio-editor.spec.ts:74), judged a flake in comment 6948214036 and re-run once (attempt 2 in progress at hand-off); a second failure is real./mnt/project-files/objectstack-seat2/34655B-gates-ran.txt).mainonce it lands;engine.tshunks do not overlap).Half A — PR #34793 (
Fixes #34655, branchclaude/project-thread-sjzr94, draft)1074c040a7c1686fadeebe2e9874979747f1de05.5fe7b810, S3 open). No L1 record.isShippedFlowName; two holders, resync and a third holder pinned); N8 (changeset names the public additionsAutomationEngine.setPackagedFlowDefaultSource/PackagedFlowDefaultSourceand the fail-open without a reader; real-protocol pin); N9 (reader asked once per armed body); N10 / N11 text. Seat rulings on record: keydefaultActive; ADR-0126 §4 additive with its amendment note here; an override never changes the package's default (S2 option a); the four new names approved. The body still carries aContract-review-handoff: review#1line from the routing order that was withdrawn at 12:34Z; the review#1 request on pm:mailbox — review#1 · os-lizheng #34832 is withdrawn by the seat.packages/spec/srcanddocs/adr) and landing, after fix(lint,service-automation)!: a flow value envelope is typed for the date-text verdicts, so timestamp() over a date field is refused at os validate and registerFlow #34654 and fix(automation)!: switching on a packaged flow that its own status disarms is refused, and the toggle door answers the engine state #34810.Rule for the receiving seat (maintainer order 12:34:45Z): when a review leaves only small flaws, the PR may merge first and the flaws get their own card; a governed PR still needs os-zhuang's approval.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
Takeover · #34655 · PR #34793 (half A) and PR #34810 (half B) · 2026-11-17T12:58Z
Release: area claim 6943786242 (session
session_01ADHkmQAXHSQEgnYyx9tstb, account os-steve, with its amendments 6943849177 6944001902 6944022372 6944184550) and half-A claim 6946117692 (card thread sessionsession_01ADHkmPTavMbXsRBw7f7fCb), handed over, not abandoned. Provenance: seat 2's maintainer ordered the hand-over on 2026-11-17 at 12:34Z (quoted in seat 2's mailbox hand-off 6948334887 on #34585: 「L2 通过,但留了小问题要修:…#34793…这些修好了也交接」, 「L1 L2 不继续审核了,让 3号席位跟进」); seat 3's maintainer ruled at 12:44Z in the seat 3 project thread that seat 3 takes every non-security PR seat 2 handed over, merge-first-then-card for nit-level flaws only (「只对 nit 级采用」). The area's hand-off on this card is 6948282082.Hand-off record: half B branch
claude/issue-34655-toggle-status-disarmed, last pushed shaa65f6b41fb05abe4e28066790ebb4e98b63fb574(no review record; Live E2E UI re-run once per 6948214036). Half A branchclaude/project-thread-sjzr94, last pushed sha1074c040a7c1686fadeebe2e9874979747f1de05(L2 6946901031 and 6947617913 at older heads; S3 and N8–N11 fixed, unreviewed).Claim: PM loop round 1 (area o3-J, repo:objectstack#3; takeover of two open PRs for review rounds)
Session:
session_01WGufzfr1xZSFZzCR8HnqXXAccount:
os-support-aiBranch:
claude/project-thread-sjzr94(half A) andclaude/issue-34655-toggle-status-disarmed(half B), both continued; no force-pushWorktree:
objectstack-issue-34655Domain:
domain:serverSeat:
repo:objectstack#3File surface: the claimed surfaces of 6943786242 and 6946117692 as amended (stop on breach; explain in the report)
Container & model:
L,mode:subagent,model: default judgment tier,effort: highClause-②: yes (widening)
Metadata-protocol: added
Responsibility:
objectstack: a packaged flow cannot ship switched off, and the toggle door answers {enabled:true} for a status-disarmed flow | none | hotcrm#2558 (accepted quote drafts a contract, shipped off by default)Thread-read: 6948282082
Premise: holds (measured at 6943786242)
Serial constraints cleared: overlap-check of
1074c040anda65f6b41against origin/maindfbc316dand every open PR sharing files: VERDICT clean exit 0 for both. Landing order #34654 (o3-I, Tier H) → #34810 → #34793, as seat 2 set it.Resume-from:
claude/project-thread-sjzr94@1074c040a7c1686fadeebe2e9874979747f1de05·claude/issue-34655-toggle-status-disarmed@a65f6b41fb05abe4e28066790ebb4e98b63fb574Pre-claim lane: unchanged from 6943786242 (
domain:server,packages/spec/src/**anddocs/adrriders kept in-lane).Pre-claim deps: #34654 (o3-I) lands first.
Prior rulings read: as listed in 6943786242 and its amendments; seat rulings on half A (key
defaultActive, ADR-0126 §4 additive, S2 option a, the four new names).Next step: half B (
Clause-②: no (narrowing), NOT governed bycheck-governed-merges.mjs --pr 34810): full L1, then the seat's contract review at CONTRACT_REVIEW_TIER, then the area lands it after #34654. Half A (GOVERNED): full L1 (none on record) and the seat's contract review delta from5fe7b810, then the seat's Tier H record and os-zhuang's approval, after #34810.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
os-dev-report
Fix round at 2026-11-17T13:04Z on PR #34793, head
1074c040a7c1686fadeebe2e9874979747f1de05: the CI failure is a flake, no code change; one rerun of the failed jobs is in progress.{ "issue": 34655, "status": "done", "branch": "claude/project-thread-sjzr94", "pr": "https://github.com/objectstack-ai/objectstack/pull/34793", "head": "1074c040a7c1686fadeebe2e9874979747f1de05", "session": "session_01WGufzfr1xZSFZzCR8HnqXX", "premise_still_valid": true, "summary": "Fix round on CI at 1074c040: Test Core (2/10) (run 44082971653, job 134039661275) failed one case, packages/spec/scripts/build-schemas-check-mode.anchor.test.ts > 'still fails offline on a deletion the anchor records and this build cannot account for', with 'Error: Hook timed out in 10000ms' in its beforeEach (line 69: fixture shard writes plus git add/commit/rev-parse/update-ref in the sandbox repo). Judged unrelated (b), no code change: the same beforeEach ran green for the file's other 14 cases in the same run on the same tree; the file's inputs (packages/spec/authorable-surface/**, authorable-surface.base.json, packages/spec/scripts/**, root scripts/**) are byte-identical between 5fe7b810 and 1074c040 (git diff --stat empty), and 5fe7b810's Test Core shards were all green; 1074c040 changed only a JSDoc comment in packages/spec/src/automation/flow.zod.ts; the shard was loaded (file wall 128.7 s, 1793 s of test time in 648 s wall). One rerun of the failed jobs requested via rerun-failed.mjs after writing the rationale on the PR body; attempt 2 in progress at report time; a second failure is real. PR body edited per order: seat-3 attribution lines, withdrawn Contract-review-handoff line removed, one acceptance note for this round, signed trailer replaced. S3/N8-N11 code untouched.", "tests": "None run locally: no code changed. Evidence is the CI log of job 134039661275 (1 failed | 1556 passed in @objectstack/spec test:repo; the failing case's hook timeout at line 69; the other 14 cases of the file passed in 5.3-24.1 s each).", "gates": "No local gates: no diff. CI at 1074c040 (run 44082971653 attempt 1): all check-runs success or skipped except Test Core (2/10) failure and its rollup Test Core failure. Rerun attempt 2: Test Core (2/10) job 134058632868 in_progress at report time. overlap-check.mjs not run: no push.", "dogfood_battery": "n/a: no code change in this round", "mcp_calls": "3 reads: pull_request_read get_check_runs, get_job_logs (job 134039661275), pull_request_read get_files; no MCP write tool", "api_writes": "3 via relay: issue_patch PATCH /repos/objectstack-ai/objectstack/issues/34793 (relay run 44088747941, read-back 23530 bytes identical); run_rerun_failed POST /repos/objectstack-ai/objectstack/actions/runs/44082971653/rerun-failed-jobs (relay run 44088874113, attempt 2 read back); this os-dev-report comment on #34655 via post-stamped.mjs", "open_questions": [], "deviations": "No worktree created: no edit in this round. PR body footer 'Generated with Claude Code' still names the previous session URL; the order did not ask to change it, so it was left.", "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed: build-schemas-check-mode.anchor.test.ts beforeEach runs on the 10000 ms default hookTimeout while its cases carry SPAWN_TIMEOUT_MS; a loaded shard can starve the hook's sandbox git calls. One occurrence seen, no repeat measured; dedupe words: build-schemas-check-mode anchor hookTimeout beforeEach flake"] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
Claim: PM loop round 1 · half A of #34655 (the closing PR, #34793), under takeover claim 6948719649 · 2026-11-17T13:06Z
Session:
session_01WGufzfr1xZSFZzCR8HnqXXAccount:
os-support-aiBranch:
claude/project-thread-sjzr94Seat:
repo:objectstack#3Container & model:
L,mode:subagent,model: default judgment tier,effort: highClause-②: yes (widening)
Thread-read: 6948847225
Why this line exists: 6948719649 named both halves' branches on one
Branch:line; the closing-target reader parses only theclaude/issue-N-slugshape, so it read that claim as half B's alone and the PR-body guard on #34793 went red (check:closing-target-claim, job 134058211429). This half-A claim names #34793's branch on its own line, as seat 2's half-A claim 6946117692 did. Nothing else changes.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
Claim amendment (file surface) · half A of #34655 · PR #34793 at head
1074c040a7c1686fadeebe2e9874979747f1de05· 2026-11-17T13:16ZAmends half A's surface (6944001902, 6944184550; takeover 6948719649). L1 6949131778 named six paths outside it. Each is forced by a review fix or by a gate, and none adds behaviour beyond the card:
packages/services/service-automation/src/flow-registration-checks.ts: the L2 S1 fix (6946901031).refuseUnpackagedDefaultActivejoins the one registration check list (v18 stored preview:os migrate meta --storedstill leaves out two families the v18 doors refuse — page components binding the retired API data source, andregisterFlow's other refusals #23317), soregisterFlow,dryRunand the stored pass all judge the key.packages/services/service-automation/src/plugin.tsandsrc/index.ts: the L2 S2 fix, option (a) as the seat ruled. The plugin wiressetPackagedFlowDefaultSource, the reader of the package's own body, and the index exports itsPackagedFlowDefaultSourcetype. These are the public additions the changeset names (N8).scripts/check-skills-token-ratchet.mjs: theskills/objectstack-automation/SKILL.mdceiling moves 6903 → 6992 for the card's "Document it in the automation skill" paragraph. It follows the standing ruling 「A:先削重复,余额按实测提高」 (record 6513306068). The PR body gives the measured +357 priced bytes.packages/spec/src/system/metadata-form-zod-reconciliation.test.ts: forced by the reconciliation gate. A root ledger row forflow.defaultActive(the flow form saves only environment flows, where the engine refuses the key).packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts: forced.flow's served top-level property count moves 23 → 24.No other path is added.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
os-dev-report
{ "issue": null, "status": "done", "branch": "claude/issue-34655-toggle-status-disarmed", "pr": "https://github.com/objectstack-ai/objectstack/pull/34810", "session": "session_01WGufzfr1xZSFZzCR8HnqXX", "premise_still_valid": true, "summary": "Fix round 1 on PR #34810 (card #34655 half B, Refs only), against L1 REWORK 6948915409. M1: the toggle door read back getFlowRuntimeStates().find(name), which on a name two packages hold (slotted path: qualified address, or bare with one served holder) returned the first-registered holder's row. The door now reads back only a name's ONE row; with two or more it echoes the request, which every engine toggle entry makes true (status-disarmed switch-on is refused on toggleFlowKey). A flowSlotView binding was not taken: engine rows carry no slot key, so a view cannot pick its own row without a new engine member outside the claimed surface. Comment at the read-back, the route docblock and the changeset sentence L1 flagged are corrected. Five door pins with two holders (second-registered switched ON/OFF by address, bare with second holder served, CONTROL first holder, CONTROL one row). S1: withdrawn routing line removed from the PR body; body re-attributed and re-signed for seat 3. origin/main (with #34654) merged. New head 8eee7ddbe2a23e44308b063f322536818168e144.", "tests": "Door pins (5b5f2e6b38) automation-addressed-route + automation-toggle-caller: 65/65, VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs (anchor 'const state = rows.length === 1 ? rows[0] : undefined;' -> 'const state = rows[0];', anchor 1->0, blob a1367e7548b8->b7aa5bd21d9a): 3 failed / 62 passed (the three second-holder cases), both CONTROLs green; restored blob == HEAD, git diff HEAD empty; suites import the door by relative path (no dist between). Real-stack probe (throwaway, not committed) on Q4 dogfood case at 8eee7ddbe2: with fix 10/10 and getFlowRuntimeStates read rows [false,true]; fix reverted + runtime rebuilt + ablation-dist-preflight marker present: 1 failed, door answered {name:qa_ns_q4, enabled:false} for theta switched on (L1's scenario); restored, rebuilt, preflight --absent exit 0. On 8eee7ddbe2: runtime test 613/613 files, 11417 passed / 23 skipped; runtime typecheck exit 0; service-automation test 287/287 files, 4139/4139; service-automation typecheck exit 0 (all VERDICT command-exit 0).", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack on 8eee7ddbe2: 75 families, stdin /dev/null, exit captured before any pipe. 73 exit 0 first sweep; check:type-check-debt exit 3 (its closure build hit queue-timeout 99 while the battery held the lock) -> rerun under the lock exit 0; check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET, no dist) -> after full package build exit 0. --ran with exit codes: 75 derived, 75 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check: VERDICT clean exit 0 (origin/main e9f65a3b57, #34793). CI on 8eee7ddbe2: 53 check-runs completed, 37 success, 16 skipped, 0 failed, incl. Lint & Repo Gates, TypeScript Type Check, Test Core (10 shards), Build Core, Dogfood Regression Gate, Live E2E UI, Test UI, Check Changeset, Governed Surface Queue Guard.", "dogfood_battery": "8eee7ddbe2a23e44308b063f322536818168e144 · os-verify-lock: VERDICT command-exit 0 · held the lock 2399s · Test Files 479 passed | 3 skipped (482) · Tests 4067 passed | 68 skipped (4135) · no failures", "mcp_calls": "2 — mcp__github__pull_request_read (get_comments), plus ToolSearch schema load; no MCP write tool used", "api_writes": "3 — git push x3 to claude/issue-34655-toggle-status-disarmed (not REST); relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/34810 (PR body, run 44109183859, read-back identical); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/34655/comments (this report)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — GET /automation/_status rows for a name two packages hold carry no package or slot key, so an admin reading two rows of one name cannot tell which holder each is; observation only (no wrong answer measured at a public door beyond the toggle echo fixed here), so not a card" ] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
Claim amendment (file surface) · half A of #34655 · PR #34793, fix round on L2 delta 6949383615 · 2026-11-17T16:23Z
Amends half A's surface (6944001902, 6944184550, 6949150059; takeover 6948719649). One forcing reason, two paths:
packages/spec/src/contracts/automation-service.ts(thetoggleFlowJSDoc) andpackages/spec/src/api/automation-api.zod.ts(the module JSDoc of the automation API contract): N1 of the contract review on fix(automation)!: switching on a packaged flow that its own status disarms is refused, and the toggle door answers the engine state #34810 (6952048597) names these two places, which list only the customer-authored 409. The seat asked that the sentence ride on half A, which already editspackages/spec. Each now also names the 409 for switching ON a packaged flow whose ownstatusdisables it, and says that switching such a flow off is accepted. JSDoc only: no schema,describe, export or error code moves. That refusal landed with fix(automation)!: switching on a packaged flow that its own status disarms is refused, and the toggle door answers the engine state #34810, which this branch has merged frommain.The S4 fix itself stays inside the claimed surface:
engine.ts(refreshPackagedFlowDefaults, thepackagedFlowDefaultsdocblock),plugin.ts(the re-sync calls it), the card's test file, and the changeset.No other path is added.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
os-dev-report
Fix round on PR #34793 against L2 delta 6949383615 (S4, N12, N13) and #34810's N1. New head
34181ed12496f3fd49db092367fc5015f31ae284. The PR body is updated. CI was in progress when this was written.{ "issue": 34655, "status": "done", "branch": "claude/project-thread-sjzr94", "pr": "https://github.com/objectstack-ai/objectstack/pull/34793", "head": "34181ed12496f3fd49db092367fc5015f31ae284", "supersedes": "os-dev-report 6948847225 (head 1074c040a7)", "session": "session_01WGufzfr1xZSFZzCR8HnqXX", "premise_still_valid": true, "summary": "Fix round on L2 delta 6949383615 (S4, N12, N13) plus N1 of #34810's contract review 6952048597. S4: of the two fix directions the review offered, this takes the cache drop. New public AutomationEngine.refreshPackagedFlowDefaults() replaces the packagedFlowDefaults WeakMap and sends each held flow whose armed body is not the loader's own back through the arming gate (activate or deactivate, then rejudge subflow callers) when its enablement moved. The plugin's resyncFlowsFromProtocol calls it after its loop on every metadata:reloaded. Why this direction over skipping the mutation-mark skip: the review says N13 rides with the cache drop, and the drop also covers the second stock path the review names (a re-registration that throws keeps the old body), which the skip change would not. Cost is one reader call per held non-loader flow per reload. The packagedFlowDefaults and packagedFlowDefault docblocks and the changeset (which now names the new method) are corrected. N13 is covered by the same drop and pinned. N1: the toggle contract prose in packages/spec/src/contracts/automation-service.ts and api/automation-api.zod.ts now also names the status-disarmed switch-on 409 (JSDoc only; the automation-api reference page is regenerated). This took claim amendment 6953980143. N12: the PR body counts 34 for the card's test file (28 before plus six new cases), not 28, because this round added pins. origin/main was merged twice: first #34654, then #34810, which landed during the round. The second merge's deferred authorable-surface/api.json was regenerated and now equals main's. N14 is left as the review allowed.", "tests": "flow-default-active-34655.test.ts 34/34: six new cases. Engine level: refresh moves a held override with no row both ways; a CONTROL where a ledger row and a loader-armed body do not move; a rolled-back body reads the set installed now (N13). Plugin level (LiteKernel plus a protocol stand-in serving the declared override in the base's slot, no ledger): an override armed by the mutation sync is not re-registered by the next reload, and a hot upgrade still moves it, on to off (unbound, FLOW_DISABLED) and off to on (bound, runs). A CONTROL reload with the declaration unchanged moves nothing. Ablation via scripts/ablation-replace.mjs: plugin.ts anchor 'this.engine.refreshPackagedFlowDefaults();' x1 -> x0, blob 02ab3709 -> 1e49c39b, giving 2 failed / 32 passed. The two flip pins failed ('expected true to be false', 'expected false to be true') and the CONTROL stayed green. Restored: blob == HEAD 02ab3709 and git diff HEAD empty. No build is involved because the test imports ./plugin.js from source. service-automation full suite: Test Files 288 passed (288), Tests 4174 passed (4174) at 198cdf7bf6 (4167 at 536d5a1c12, before #34810 merged). Runtime targeted: 6 files, 111/111 (flow-clone-default-active-34655, automation-flow-clone, automation-toggle-caller, automation-addressed-route, automation-toggle-deny-message, automation-toggle-unknown-flow). Every run went through os-verify-lock with VERDICT command-exit 0, except the combined batch, whose set -e chain verdict reads batch-last-exit; its only failure was the last part, spec check:generated, fixed below.", "gates": "Local: service-automation tsc --noEmit + check:test-typecheck exit 0; spec typecheck exit 0. Spec check:generated first reported 1 of 14 stale (content/docs/references/api/automation-api.mdx, from the N1 module JSDoc); after gen:docs, 14/14 'All 14 generated artifacts are up to date' and check:docs exit 0 at 34181ed124. gen:docs ran without a spec rebuild (declared narrowing): check:generated --fix got two queue-timeouts (exit 99) behind another seat's dogfood run, and the spec dist had been built after the merge, with spec src unchanged since. check-nul-bytes exit 0. dispatch-gates --commands at 198cdf7bf6: 149 families, each exit captured before any pipe. --ran with exit codes gives 149 accounted for, 146 run, 3 NOT-MEASURED. NOT MEASURED (declared narrowing, all three run in CI): check:skill-examples and check:dual-build-cjs-loads (exit 3, they need built packages outside the closure), check:type-check-debt (exit 3, its closure build never got the shared verify lock). This round changed no skill and no typecheck wiring. overlap-check at 34181ed124 exit 0 (clean vs origin/main 46991d0e6e, #34719, #33849); the first try was exit 3 on an unreadable PR list and was retried. CI on 34181ed124 at report time: 70 check-runs, 20 success, 12 skipped, 38 in_progress, 0 failed.", "dogfood_battery": "n/a: no '!' in the PR title and no (narrowing) arm (Clause-②: yes (widening))", "mcp_calls": "0", "api_writes": "3 relay writes as objectstack-fleet[bot]: POST issues/34655/comments (claim amendment 6953980143, post-stamped); PATCH issues/34793 (PR body, fleet-write issue_patch, read-back identical 29460 bytes); POST issues/34655/comments (this os-dev-report, post-stamped). Plus 2 git pushes (05656d74f1, 34181ed124), not REST.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted in the PR body, not filed: the L2 review's N14 (an unstamped first or third holder of a co-held name registered through the engine API is refused) stays an accepted deviation, as the review allowed." ], "deviations": "The merge commit 96a99d06d8 was amended locally, before any push, to carry the model-free trailers. No force-push. The harness reminder's model-named Co-Authored-By trailer was not used; the standard order's model-free pair was. One scratch log (install.log) landed at the scratchpad root before the issue subdirectory existed." }