Repository navigation
fix(systems): a failed gate write on a held skill says the skill runs ungated - #4154
Conversation
…rough real facade methods (#4128) GET /api/systems/{name} called db.get_agent_permissions and db.get_agent_folder_config, neither of which exists on DatabaseManager, inside one try: permissions, folders AND schedules were absent for every member. The exporter's folder read had the same missing name and subscripted the pydantic row as a dict, so `folders` was never exported; its permission block probed agents[0] only, so a system whose first member had no outgoing edge exported no edges. - get_system: one try per key; edges via get_permitted_agents narrowed to the caller's accessible roster (what the direct permissions route shows); folders via get_shared_folder_config by attribute. - export_manifest: folders via get_shared_folder_config, a failed read named in `# unobserved:`; permission block computed in one pass over every member, filtered to members, full-mesh only over >= 2 keyed members (tag-only members are outside the universe). - KNOWN_FACADE_GAPS loses get_agent_folder_config and get_agent_permissions; the 2373 raising=False stub and the 1759 MagicMock stub that supplied the missing method now name the real one. Mutation: with routers/systems.py and services/system_service.py reverted to the base, 11 of 13 tests in test_4128_system_detail_export.py and test_every_db_call_resolves_on_databasemanager go red; restored byte-identical (sha256 checked). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…on export (#4128) Co-Authored-By: Claude Opus 5.5 <[email protected]>
GET /api/systems split every accessible agent's name at its last hyphen and called the left part a system: a naming: bare member was dropped, content-writer invented a `content` system, and acme-api-worker landed in `acme-api`. The list now reads the system tag deploy and apply write (one batched get_tags_for_agents read over the caller's roster), lists the roster agents that carry it, and lists a tag only with evidence it is a system: the auto-created system view for it, a system_apply audit row naming it, or a carrier named `<tag>-*`. A plain tag is not listed. Unreadable tags (or evidence) are a named 503, kept a 503 past the outer handler. created_at is filled from the roster's `created` field, so the newest-first sort works. Mutation: with list_systems reverted, tests 1-6 and 8 of test_4129_systems_list_bare.py go red (7 is a ruling pin, green on the old code); dropping `except HTTPException: raise` reds test 6; listing every tag reds test 7. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…4129) The MCP list_systems description stated the removed rule (group by the part before a hyphen); it now says the list names systems deployed or applied from a manifest, by their tag, and that a plain tag is not one. The teardown_system warning is kept and reworded to match. The flow doc's GET /api/systems line and the teardown-panel sentence follow, and name the accepted gap: a bare-named system created by POST /deploy with no system_view and never applied leaves no evidence, so it is not listed until deploy records that its tag is a system. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e allowlist entry (#4128) The GET /api/systems/{system_name} section of the system-manifest flow still named db.get_agent_permissions/get_agent_folder_config/ get_agent_schedules, none of which the handler calls; it now names get_permitted_agents (narrowed to the caller's accessible set), get_shared_folder_config, list_agent_schedules and the per-key try. get_agent_schedules has no caller left, so it leaves KNOWN_FACADE_GAPS. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The flow doc's detailed GET /api/systems section and its System Grouping section still described the old last-hyphen split; both now state the tag evidence rule (roster tag read, three evidence kinds, members from the roster, the two named 503s, created_at). The gap sentence also names audit retention pruning a bare system's only evidence. Test 9 makes the system-view read and the audit read raise and asserts the named 503. Red with the inner 503 replaced by a bare re-raise (both cases fell through to the outer 500); green with the route restored byte-identical. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The assertion message still said GET /api/systems groups by the last hyphen. Message text only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-only out of the evidence gate (#4131) Case 1: a manifest key accepts the create route's charset ([a-z0-9_.-], chained `_N` suffixes included) in both naming modes, so an exported `writer_2` / `acme-writer_2` member parses again; every other bad key keeps the named 400. The drift note recognises chained copies. Case 2: `system_membership(naming=)`. Apply passes the manifest's naming; under `bare` membership is the tag (the tag read still runs, so an outage still refuses). With no naming (restart, get, export) bare is inferred as export infers it: tags readable and every tagged member unprefixed. A prefixed system keeps the #2373 union. A declared untagged bare name is adopted whatever its shape; an undeclared untagged `<system>-x` is neither member, drift nor blocker. `deploy: false` names are excluded from the evidence gate in both modes. test_2373: the renamed-member case now carries a tagged prefixed member (the union property), and the accepted residual is pinned beside it. Mutation: with the service change reverted, 21 tests in test_4131_bare_naming_edges.py / test_2373 go red; restored, all green. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t, restart route tests, docs (#4131) Case 3: `deploy: false` governs apply only. When a declared-only name is a roster member by tag, apply adds the report `declared_only_member_tagged` naming restart and teardown and the hand untag remedy; nothing is written. The adoption warning names the explicit `?naming=bare` export when an adopted name starts with `<system>-` (a default export infers prefixed). Restart and get route tests run the real routes over the real db facade: a bare member is handled, an untagged prefix lookalike and another system's tagged member are not; a prefixed system still restarts its untagged member; the tagged declared-only member is restarted, as the report says. Docs: the requirements sentence that pinned the refusal now states the adopt rule; declared-only and the tag; flow-doc paragraphs with the one accepted residual; user doc; MCP restart/export text for the inferred-bare rule. Mutation: with this checkpoint's service change reverted, the case-3 report test and the warning test go red; restored, all green. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Engine truth for apply (CP1 of #4130): - `adopted[]` and the adoption line: a dry run (valid or invalid) shows the plan; a refused run lists nobody and drops the line; a real run lists only members whose system tag landed (per (name, tag), so a default tag that landed is not an adoption) and says it in the past tense. - `summary.<group>.write` on a real run counts only landed writes (`ApplyOutcome.landed`, `summary.build(landed=)`); a refused run counts none. `report` / `unobserved` stay plan counts. - A declared-only member is not re-read after the writes (no spurious "could not be re-read" warning) and its `applied` is None. Mutation: with the system_service/summary changes reverted, 10 tests in tests/unit/test_4130_apply_result_truth.py go red (refused/partial/default-tag /past-tense adoption, raised-writer/held-skill/refused summary, absent and live declared-only re-read, applied None). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Delivery and deploy truth (CP2 of #4130, code and tests): - Deploy of a manifest whose every member is `deploy: false` is a named 400 `nothing_to_deploy` on the dry run and the real run, raised after name resolution (validate_manifest is unchanged; apply still reports). - `SystemDeployResponse.agents_declared_only` (additive, default []) on all three return sites; the warnings line stays. The create-mode golden is regenerated once under #4130 for the new key only. - Apply's `skill_delivery` note lists every per-skill failed/conflict entry (e.g. `deploy: marker_not_written: ...`); a set whose skills were all held already records `current="unchanged"` instead of nothing. - `set_gate`'s `marker_not_written` is a `gate_marker_not_written` report on apply and a warning line on deploy; deploy also warns when a skill assignment's delivery report names a failed skill. For a member deploy creates, both deploy lines are unreachable today (members start after the skills and gates phases); they read a return value already held. Mutation: with these service changes reverted, 9 tests in tests/unit/test_4130_apply_result_truth.py go red (nothing_to_deploy x2, agents_declared_only x2, marker note, unchanged set, deploy delivery warning, gate marker on apply and deploy). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…agent test (#4131) - In a prefixed system an untagged `<system>-x` declared-only member is a member by name, so restart and teardown reach it. Apply now says so with the report `declared_only_member_prefixed` (no write). Mutation: with the new branch disabled, TestPrefixedDeclaredOnlyUntagged goes red. - The adoption warning names the other-direction residual: a bare system with a prefix-shaped tagged member is read as prefixed by restart, teardown, get and export, so an untagged lookalike is reached by name. The flow doc says the same. - Plan test 13: a tagged declared-only agent that is only shared with the caller gets no apply report, and restart still reaches it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes CP2 of #4130: the deploy_system description names `agents_declared_only[]` and the `nothing_to_deploy` 400; apply_system's says a real run's `summary.write` and `adopted[]` name only what landed (kept under the 2,048-character description cap). Flow doc, roadmap (one added line) and user doc updated to match. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…port and apply (#4132) A provider whose `seat_for` answers nothing (`no_answer`) cannot say which seat an agent holds. The export read that as "holds none" (no `seat:`, no header), and the apply snapshot read it as case `none`, so a manifest with `seat:` planned a `seat_missing` write. Both sides now read it as unobserved: the export names `seat of <name>` in the `# unobserved:` header and the dry run reports `seat_unobserved`, writing nothing. Mutation: with seats.py reverted, test_export_names_a_seat_the_provider_ did_not_answer and test_dry_run_reads_no_answer_as_unobserved_never_a_write go red. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ked on a verdict (#4132) The skills, sets, grants and gates planners ran the library, catalog or gate-validator verdict on every declared value, including one the member already holds and apply would never write. An export of a member holding a skill that has since left the library, a set gone from its catalog, a retired capability or a gate whose approver this install can no longer resolve therefore dry-ran as a blocker. A held value is now in sync; the verdict still runs on every value apply would write. A declared gate is in sync only against a stored explicit row with an equal approver and an omitted or equal deadline; a library-default row is still a write. Mutation: reverting skills.py turns the held-skill and held-set round trips red; grants.py the retired-capability round trip; gates.py both unresolvable-approver round trips. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-result-truth # Conflicts: # src/backend/services/system_service.py
…roup round trips (#4132) The exporter sorts members by name (edges and every header list follow), tags, schedules by name and resource keys, so two exports of one system are byte-identical whatever order the roster read returned. Every export now carries an `# unobserved: person seats are not exported` line naming its members: the assignment seam answers per seat and never lists them. Round-trip tests through the real exporter and the real apply route for folders, tags, resources, schedules, the full-mesh preset, explicit edges, template, naming (inferred and bare) and deploy: false. The ent#1030 naming test's member-order pin moves to name order. Mutation: with system_service.py reverted, the byte-identical and the person-seats tests go red. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… headroom (#4130) - The `failed` (500) deploy branch is now driven through the real POST /api/systems/deploy route with a declared-only member; it asserts `agents_declared_only` in the 500 body. Went red with the field removed from that branch (test_the_failed_branch_carries_the_declared_only_names). - The `nothing_to_deploy` 400 is pinned through the route on both dry and real runs, not only on the service. - apply_system MCP description trimmed from 2,043 to 1,984 characters (cap 2,048) with no fact dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…egistry (#4132) Two round trips the per-group set lacked: a member whose only exported field is its template (the label verbatim, compared against the same label, so no template_differs; an edited template is still reported), and person_seats declared in an export, which read back as seat_unobserved through the "person seats are not exported" header line. Mutation: dropping the person-seats header append in export_manifest turns the person-seats round trip red (StopIteration on the header). Docs beside #4130's lines: the roadmap "Export round-trips naming" and "Seats" bullets, the export section of the system-manifest flow, the user-doc Export bullet; and the tests/registry.json entry. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ning (abilityai/trinity-enterprise#1043) A manifest member may declare a gate on a skill it already holds. Gates are written before skills, and a new assignment whose gate did not land is held back (#4125), but a held skill has no skill op to hold: when its gate write failed after the plan validated (a service refusal, a database fault, a lost lease), the skill stayed assigned and kept running with no approval gate, or under the previous one, and the result only said "the gate failed". Report only; apply never unassigns. "Held" is decided at plan time from the snapshot's read under the lock (`ApplyMemberState.skill_names`, through the new `gates.read_held_skills`); the `gate_set` op carries `held` and the gate in force (`live`). When the write fails on a held skill the consequence is appended to the `failed[]` reason (the `<code>:` prefix stays), the member gets the report `skill_runs_ungated` (no gate in force) or `previous_gate_stands` (the stored gate still applies), and each ungated skill adds one top-level warning line after the held-back grant and seat lines. Builds on #4130's `gate_marker_not_written`; `summary` and `models.py` are untouched. Tests (CP1): one per failure path through the real apply route on the real database facade, each asserting the skill is still assigned, the admission read shows no gate, and the result says so in reason, member change, warning and summary. Mutation: with the `_held_skill_not_gated` call reverted, all three parametrized cases of `test_a_failed_gate_write_on_a_held_skill_is_named_as_ungated` go red; restored byte-identical. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…into feature/ent1043-gate-write-failure
…n tests, the docs (abilityai/trinity-enterprise#1043) The remaining tests for a gate write that fails on a skill the member already holds: a stored gate with another approver is reported as the gate still in force (`previous_gate_stands`, `current` is the stored gate, no ungated line); a skill held only through a set is reported ungated all the same; a new assignment in the same run is still held back (#4125, one assert, not a copy of those tests) while the held one is reported; a landed gate on a held skill reports nothing new; the dry run predicts no failure. Registry entry. Docs: the requirements bullet, the flow doc's gates paragraph and the user doc's `gates` row say that a gate write failing on a held skill leaves the skill assigned and running, how the result names that, and that apply never unassigns. The `apply_system` MCP description is unchanged: it sits at 1990 of its 2048-character cap, and its "additive, never revoked" clause already holds. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…r and field (#4130) `ApplyOutcome.landed` was a (member, step) set, so two writes of one kind on one member with one failure still counted 2 in `summary.<group>.write`. The executor's `attempt()` now records (member, step, key) — the skill(s), set, gate's skill, capability, seat role, edge target or tag the write wrote — and `summary.build(landed=)` counts a write change only when a write of its own key landed. Dry-run, `report` and `unobserved` counts are unchanged, and a run where everything landed still reports the plan counts. `SystemApplyFailure` gains an additive `key` (None for a member-wide write) so `failed[]` names which of two same-kind writes did not land. Regression tests (real apply route handler, real db facade): - two skill sets on one member, one held for its unwritten gate -> skills.write == 1, failed[] = (lead, skill_sets, ops-core) - two gates on one member, one set_gate raising -> gates.write == 1, failed[] = (lead, gates, deploy) Mutation: with the summary predicate reverted to per-(member, field) both tests go red (assert 2 == 1); restored byte-identical (sha256 OK). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ers (#4132) The `# unobserved: person seats are not exported` line was appended only inside the caller's seat-read gate, so a non-owner viewer's export left it out although the reason (the assignment seam never lists who fills a seat) holds for every caller. The append now sits after the gate. TestPersonSeatsHeader gains a non-owner export assertion; with the fix reverted it goes red (the line is missing for the shared viewer). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…te-write-failure Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ilityai/trinity-enterprise#1043) _held_skill_not_gated rewrites out.failed[-1] on the contract that every False exit of attempt() appended exactly one failure for this write. Assert that the row names this member, the gates step and (since #4130) this gate's skill before mutating it, and pin failed[].key == skill in the test. Mutation: dropping key=skill from the attempt() call turns 10 tests red. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trinity-ability
left a comment
There was a problem hiding this comment.
PR Validation Report
PR: #4154 - fix(systems): a failed gate write on a held skill says the skill runs ungated
Author: vybe
Branch: feature/ent1043-gate-write-failure → feature/4132-export-round-trip (stacked on #4153; validated against that base, 8b1bad57f, not dev)
Files Changed: 7 (+456/-9)
Lane: B (backend service + docs + additive tests; no lane-C path, no schema, 0 deleted test lines)
Summary
| Category | Status | Notes |
|---|---|---|
| Commit Messages | ✅ | 3 conventional fix(systems): commits + 2 base merges, each states what and why |
| Base Branch | ✅ | Stacked on #4153 by design; the stack retargets to dev in order |
| PR Size | ✅ | 7 files |
| Status Auto-Promotion | Fixes abilityai/trinity-enterprise#1043 is cross-tracker: set status-in-dev on it by hand after merge; close at release |
|
| Roadmap | ✅ | Issue #1043 is status-ready, priority-p2, type-feature, theme-security |
| Requirements | ✅ | docs/memory/requirements/roadmap.md approval-map entry extended |
| Architecture | ➖ | No endpoint, schema or component change |
| Feature Flows | ✅ | feature-flows/system-manifest.md Gates paragraph updated |
| Feature Flow Format | ➖ | Existing flow, one paragraph |
| Security Check | ✅ | §4.1–4.6 and §4.10 clean; enterprise-docs-guard pattern: no hit; no private names |
| Infrastructure | ➖ | None |
| Build Packaging | ➖ | No new top-level backend directory |
| Config Packaging | ➖ | No new env var |
| File Modes / Host Paths | ✅ | None |
| Structural Review | ✅ | /review (MERGEABLE, 0 critical) and /cso --diff (0 findings) reported in the PR body |
| Merge Gate | Checks that ran are green (schema-parity, verify-non-root, gitleaks, guards, prod-image-smoke). The Tier 1 test contexts (pytest (head, seed 12345), regression diff, Analyze) have not run, because the base is a feature branch. They must go green once the stack is retargeted to dev. dev-ci: success |
|
| Test Adequacy | ✅ | All three failure paths, the differing gate, a skill held through a set, the hold-back regression, the silent path when the gate lands, and the dry run |
| Code Quality | ✅ | Focused; reuses the existing attempt/fail recording; summary and models.py untouched |
| Requirements Trace | ✅ | Each "Done when" clause of #1043 is met (below) |
| Product Fit | ✅ | OSS core (operator's tier); the operator's ruling is report-only |
| Product Bar 7–11 | ✅ | One engine serves both doors (route and MCP); plain-words warning; user doc updated |
Security lens (first)
This is a fail-open on an authorization control: a skill that the manifest says needs approval keeps running when its new gate fails to write. After this PR the skill still fails open at admission, by the operator's ruling (report only, nothing unassigned). The difference is that it is no longer silent. The failure is now reported in four places:
- the
failed[]reason keeps its<code>:prefix and adds the consequence - the member gets a
skill_runs_ungatedorprevious_gate_standsreport - one top-level warning line per ungated skill
appliedis false
Checked directly:
- When "held" is decided. It is decided at plan time from
read_held_skills, which runs inside the locked snapshot and includes skills held through a set. A failure of that read becomes the existing config-read blocker, so it fails closed. - The guard has a test that executes it. The guard is the failure-row assert in
_held_skill_not_gated.attemptalways callsfail(...)withkey=skillon every return-False path (exception, refusal, lost lease), so the assert holds by construction. - Warning text. It carries
failure.reason, whichfailed[]already exposed. Nothing new is disclosed. - Write path. Nothing new is written; no code path unassigns or clears.
Documentation Checklist
- Commit messages are descriptive
- Roadmap updated (n/a — issue tracked)
- Requirements updated
- Architecture updated (n/a)
- Feature flow updated
- Feature flows index updated (n/a — no new flow)
Security Checklist
- No API keys or tokens
- No real email addresses
- No IP addresses
- No .env files
- No hardcoded secrets
- No credential files
- Infrastructure changes justified (none)
Execution coverage (§5.4)
| changed symbol / test file | executed by | live consumer | verdict |
|---|---|---|---|
gates.read_held_skills |
every test in test_ent1043_gate_write_failure.py (real apply route, real DB facade) |
system_service.read_apply_snapshot |
✅ |
gates.plan(..., skill_names=) → op held / live |
TestHeldSkillRunsUngated, TestPreviousGateStands, set-held test |
system_service._plan_gates |
✅ |
gates._held_skill_not_gated |
the 3 failure paths × 2 classes, the reason-append test, the set-held test | gates.run on attempt → False |
✅ |
test_ent1043_gate_write_failure.py |
— | no source-text reads (grep a: 0 hits) | ✅ |
Re-run here at e1394f338: the new file passes 11/11. The ten neighbouring apply suites (ent1030 ×8, #4130, #4132) pass 291/291.
Mutations, run from the worktree and restored afterwards:
- Delete the
heldhand-off ingates.run: 8 of 11 red (all six parametrised failure cases, plus reason-append and set-held). - Drop the
read_held_skillsread from the snapshot: 8 of 11 red.
The 3 that stay green (the hold-back regression, the landed-gate silent path and the dry run) pin behaviour that must not change, which is expected.
Product fit (Step 6.6)
| check | verdict | evidence |
|---|---|---|
| Approved (not incubating) | ✅ | #1043 is status-ready |
| Scope ↔ issue | ✅ | "Names the consequence in plain words": met (gates.py reason append + warning line). "Can tell the skill is live and ungated": met (the skill_runs_ungated report plus warning). "A test covers it": met. Unassigning was left to the rulings, and the ruling is report only |
| Open-core tier | ✅ | OSS core, per the operator |
| Doctrine | ✅ | none |
| Bar 7–11 | ✅ | — |
Issues Found
Critical (Block Merge)
- None
Warnings (Review Required)
- Merge gate. Tier 1 pytest and regression-diff have not run on this stacked base. Do not merge until they are green after the retarget to
dev. Merge the predecessors first, in the order the PR body gives. - Cross-tracker status. The issue will not auto-promote. Set
status-in-devon it by hand after merge.
Suggestions (Optional)
_held_skill_not_gateduses a bareassertas its guard. It holds today, butgates.runis called from_run_opwith no surroundingtry. If a futureattemptchange ever broke the invariant, anAssertionErrorwould escape the write loop and stop the rest of the run, which goes against the rule that each write is recorded and the run continues. Underpython -Othe assert disappears instead. An explicit check that skips the annotation (and logs) would keep the guard without either risk. This is non-blocking; it could ride on #4134's service refactor.
Recommendation
APPROVE
The fail-open is now stated rather than silent, exactly as #1043 and the operator's rulings ask. Every failure path is exercised through the real apply route. The added assertions go red when the hand-off or the snapshot read is removed. No security, packaging or doc-disclosure findings. Merge only after the predecessors land and Tier 1 is green on the retargeted PR.
…into pr-4152 # Conflicts: # src/mcp-server/src/tools/systems.ts
… into pr-4153 # Conflicts: # tests/registry.json
Fixes abilityai/trinity-enterprise#1043. When a manifest declares an approval gate on a skill the member already holds and the gate write fails, the skill kept running with no gate and the result said only that a gate write failed. The result now says exactly what state the member is in: the failure reason carries the consequence, the member gets a
skill_runs_ungatedorprevious_gate_standsreport, one warning line per ungated skill is added, and the member is notapplied. Nothing is unassigned. Stacked on #4153 — base isfeature/4132-export-round-trip; the stack merges together in order. Draft until validated.What
gates.read_held_skills: which skills a member holds (set-derived included) is read in the locked snapshot, so "held" is decided at plan time.gate_setop carriesheldand the live gate; on a failed write for a held skill,_held_skill_not_gatedappends the consequence to thefailed[]reason (after the<code>:prefix), adds the member report with the right code (whether a live gate existed), and adds the warning line after the held-back grant and seat lines. A guard pins that the failure row names this member and the gates step before it is annotated.failed[].keynames the gate's skill.gate_marker_not_written,summary.pyandmodels.pyuntouched.tests/unit/test_ent1043_gate_write_failure.py: every failure path (service refusal after validation, DB fault, lost lease) through the real apply route on the real database facade, asserting the skill stays assigned, the admission read shows no gate, and the result says so; plus differing-gate, set-held, the new-assignment hold-back regression, the landed-gate silent path and the dry run. Requirements line, flow doc paragraph and user doc line.Rulings carried (plan file)
Review + security
/review(report-only, security lens first): MERGEABLE, 0 critical. The class is a fail-open on an authorisation control; after this PR it is still fail-open at admission by ruling, but no longer silent, and the failure direction is stated. Fixed ine1394f338: the guard on the failure row./cso --diff: 0 findings. Fix mutation: 8 of 11 red with the hand-off reverted.Tests
Targeted: 261 passed on the new file and five guard suites; 140 after the merge and fix. Not run here: the full unit island (CI runs it once the stack is retargeted to
dev).Before merge
Merge #4145, #4146, #4150, #4152 and #4153 first. No migration, no image rebuild.
Handoffs
#4134 owns the service refactor.
🤖 Generated with Claude Code