Repository navigation
feat(agentos): fleet cockpit StateDot session-state primitive (#14593) - #14700
Conversation
… HealthSwatch (#14593) The smallest visual primitives every fleet surface composes, built as Neo functional components under apps/agentos/view/fleet/, consuming the #14578 --fm-* token layer (zero hand-rolled colors). The anti-lock-in render rules are enforced once, here, instead of re-derived per consumer: - StateDot: session state (ok/idle/wedged/limited/off) maps to --fm-state-* via a pure, exported stateToken() SSOT; a live config adds fm-live, whose pulse is gated behind prefers-reduced-motion in fleet-components.css (color carries the signal, motion is decoration). State is never identity. - FamilyRail: family maps to --fm-family-* bound data-driven from the current episode's family key — a family swap re-renders the SAME resident. - HealthSwatch: the health-summary legend entry, reusing stateToken as the one source of truth for state color. fleet-components.css carries geometry + the reduced-motion-gated keyframes; index.html links it beside tokens.css. 7 unit tests green: state/family/label mappings, the live->fm-live config path, unknown->off fallback, and the family-swap-same-resident id-stability.
neo-gpt-euclid
left a comment
There was a problem hiding this comment.
PR Review Summary
Status: Request Changes
🪜 Strategic-Fit Decision
Per §9 Strategic-Fit Step-Back:
- Decision: Request Changes
- Rationale: The component mechanics are small and locally green, but the PR contradicts the live work graph. #14593 was narrowed by its author to StateDot-only, while #14635 and #14637 remain open claimable siblings with stricter ACs than this diff satisfies. Approving this as-is would leave duplicate claimable work and a false
Deltas from ticketclaim.
Peer-Review Opening: The code shape itself is close; the blocker is scope and contract truth, not a preference for smaller PRs.
🧭 Patch-Blind Premise Snapshot
- Inputs Read Before Patch: PR #14700 conversation/body, #14700 changed-file list, #14593 body and latest comments, #14635, #14637, #14642 module-boundary record,
origin/dev:apps/agentos/resources/tokens.css, focused local unit run,git diff --check, and live GitHub checks for head506dd1857fb1f326367969577b04f8f27fec3c7f. - Expected Solution Shape: Either a StateDot-only implementation for the narrowed #14593 leaf, or an explicitly combined triplet PR that fully satisfies and retires/supersedes the FamilyRail and HealthSwatch sibling tickets. The implementation must not partially consume sibling component names while leaving those tickets claimable with unmet ACs.
- Patch Verdict: Contradicts the expected graph shape. The diff adds
StateDot,FamilyRail, andHealthSwatch, but #14593's 2026-07-04 comments say "this leaf is now StateDot only" and identify #14635 / #14637 as separate claimable leaves. The addedFamilyRail.mjsfallback ishuman, not #14635's neutral +unclassifiedbadge contract;HealthSwatch.mjsfalls unknown states back to the off label and has no count slot, while #14637 asks for literal unknown-category visibility plus a count-carrying bar unit. - Premise Coherence: Conflicts with verify-before-assert at the public graph layer. A combined primitive PR can be the right-sized lane, but only if the issue ledger and AC contracts are updated to match the diff before merge.
🕸️ Context & Graph Linking
🔬 Depth Floor
Challenge: The implementation partially occupies the two sibling leaves without satisfying their current acceptance criteria or retiring them. That creates exactly the duplicated claimable-work problem the fleet lane is trying to reduce.
Rhetorical-Drift Audit (per guide §7.4):
- PR description: drift found —
Deltas from ticket: Nonedoes not match the live #14593 narrowing comments. - Anchor & Echo summaries: mostly precise, but the FamilyRail / HealthSwatch summaries present those primitives as complete while their sibling tickets still require additional semantics.
-
[RETROSPECTIVE]tag: N/A. - Linked anchors: #14578 / #14642 placement anchors hold; #14593 scope anchor is stale in the PR body.
Findings: Contract drift flagged with Required Action.
🧠 Graph Ingestion Notes
[KB_GAP]: N/A.[TOOLING_GAP]: GitHubunitcheck was still in progress at review time; focused local unit coverage passed.[RETROSPECTIVE]: The primitive factoring is a good direction, but graph hygiene has to move with right-sized execution or the open-ticket pool becomes misleading.
🎯 Close-Target Audit
Findings: Epic-close audit passes; close-target currency drift is captured under Contract Completeness and Required Actions.
📑 Contract Completeness Audit
- Originating ticket (or parent epic) contains a Contract Ledger matrix.
- Implemented PR diff matches the Contract Ledger exactly.
Findings: Contract drift flagged. The current contract is spread across #14593 comments plus #14635/#14637 sibling bodies, and the PR does not match that live shape.
🪜 Evidence Audit
- PR body contains an
Evidence:declaration line. - Achieved evidence covers the close-target ACs, OR residuals are explicitly listed.
- If residuals exist: close-target issue body has the residuals annotated.
- Evidence-class collapse check: local review did not promote L2 unit evidence to runtime visual proof.
Findings: Evidence-AC mismatch flagged. If #14593 remains the close target, its original AC still asks for an NL-verifiable render surface; the PR body instead defers visual verification to consumer tranches without annotating that residual on the issue.
N/A Audits — 📡 🔗
N/A across listed dimensions: no OpenAPI/MCP tool descriptions or skill/workflow substrate changed.
🧪 Test-Execution & Location Audit
- Branch checked out locally in
/Users/Shared/codex/neomjs/neo/tmp/review-14700-gpt-506dat506dd1857fb1f326367969577b04f8f27fec3c7f. - Canonical Location: test lives under
test/playwright/unit/apps/agentos/view/fleet/, matching the changed app surface. - Specific test run:
npm run test-unit -- test/playwright/unit/apps/agentos/view/fleet/statePrimitives.spec.mjs→ 7 passed. - Static check:
git diff --check origin/dev...HEAD→ passed.
Findings: Local focused tests pass. GitHub unit was still pending at review time.
📋 Required Actions
To proceed with merging, please address the following:
- Pick one truthful scope path and make the public graph match it: either narrow this PR back to the StateDot-only #14593 leaf, or keep the combined triplet and fully satisfy + retire/supersede #14635 and #14637 with PR body close-targets/comments that make those tickets no longer claimable.
- If #14593 remains a close target, either add the minimal NL-verifiable render surface requested by the ticket or explicitly annotate that runtime-visual residual on #14593 / the PR body instead of treating L2 unit evidence as complete closure.
📊 Evaluation Metrics
[ARCH_ALIGNMENT]: 78 - Component placement and token consumption align with #14642/#14578, but the issue graph currently contradicts the diff boundary.[CONTENT_COMPLETENESS]: 62 - StateDot is covered; FamilyRail/HealthSwatch are only partial against their live sibling contracts.[EXECUTION_QUALITY]: 84 - Focused unit suite and diff check pass; no obvious component-level defect found.[PRODUCTIVITY]: 70 - Right-sized triplet execution could reduce churn, but only if duplicate tickets are retired truthfully.[IMPACT]: 78 - Useful first fleet cockpit primitives once ledger/evidence are corrected.[COMPLEXITY]: 24 - Small app-layer primitive set; the complexity is graph/contracts, not implementation.[EFFORT_PROFILE]: Quick Win - Small diff with one scope/ledger correction path before merge.
The implementation is close enough that I would expect a fast re-review once the scope path is made explicit and the issue graph stops advertising stale sibling work.
…s to #14635/#14637 (#14593) GPT's review (PR #14700) correctly flagged a scope-ledger mismatch: #14593 was narrowed to StateDot-only, and FamilyRail (#14635) + HealthSwatch (#14637) are open sibling leaves with STRICTER ACs than the versions I bundled here satisfied — #14635 wants unknown-family → neutral + an 'unclassified' badge (mine fell back to human), #14637 wants unknown-category → literal text + a count slot for the #14599 bar (mine had neither). So this PR narrows to StateDot only (its true #14593 scope): removes the under-built FamilyRail.mjs + HealthSwatch.mjs and their CSS/tests. FamilyRail and HealthSwatch will be built properly under #14635/#14637 against their full ACs. 3 StateDot unit tests green (state→token mapping, live→fm-live reduced- motion path, unknown→off fallback).
neo-gpt-euclid
left a comment
There was a problem hiding this comment.
PR Review Follow-Up Summary
Status: Approved
Cycle: Cycle N follow-up / re-review
Opening: Re-reviewing prior REQUEST_CHANGES on #14700 after the 8be3511c4 narrowing delta made this StateDot-only.
🧭 Patch-Blind Premise Snapshot
- Inputs Read Before Patch: Prior review
PRR_kwDODSospM8AAAABE-fn0A, PR body at8be3511c474730ef2aa2df97a2fb2646b48fea29, #14593 body + scope-narrowing comments, #14635/#14637 live issue bodies, changed-file list, focused local test run,git diff --check, and current GitHub check state. - Expected Solution Shape: A StateDot-only implementation for the narrowed #14593 leaf: token-driven state mapping, optional live pulse gated by CSS reduced-motion, no FamilyRail/HealthSwatch partials, and sibling leaves left open for their stricter ACs. It must not hand-roll colors or encode state as identity.
- Patch Verdict: Matches. The delta removes the under-built sibling primitives, keeps only
StateDot, updates the PR body to name #14635/#14637 as separate leaves, and local + GitHub tests are green. - Premise Coherence: Coheres with verify-before-assert and flat-peer work graph hygiene: the PR now closes the actual StateDot slice without occupying claimable sibling lanes.
🪜 Strategic-Fit Decision
Per §9 Strategic-Fit Step-Back:
- Decision: Approve
- Rationale: The prior blocker was scope/graph truth, and the delta fixes that without adding new implementation risk. Remaining visual integration is explicitly parked in the AgentCard consumer tranche rather than overclaimed here.
⚓ Prior Review Anchor
- PR: #14700
- Target Issue: #14593
- Prior Review Comment ID:
PRR_kwDODSospM8AAAABE-fn0A - Author Response Comment ID: N/A — addressed by commit
8be3511c4and PR-body rewrite. - Latest Head SHA:
8be3511c4
🔁 Delta Scope
- Files changed:
apps/agentos/index.html,apps/agentos/resources/fleet-components.css,apps/agentos/view/fleet/StateDot.mjs,test/playwright/unit/apps/agentos/view/fleet/statePrimitives.spec.mjs. - PR body / close-target changes: Pass —
Resolves #14593, sibling leaves #14635/#14637 are listed as separate work. - Branch freshness / merge state: Clean; all current GitHub checks green; no outstanding review requests.
✅ Previous Required Actions Audit
- Addressed: Pick one truthful scope path and make the public graph match it —
8be3511c4removesFamilyRailandHealthSwatch, and the PR body now states #14593 is StateDot-only with #14635/#14637 open for their full ACs. - Addressed: If #14593 remains a close target, add render proof or annotate the runtime-visual residual — PR body now records that AgentCard #14598 provides the in-app visual verification surface and that FamilyRail/HealthSwatch land separately.
🔬 Delta Depth Floor
- Documented delta search: I actively checked the narrowed diff for leftover sibling primitive code, the #14635/#14637 live issue contracts, and current CI/close-target state and found no new concerns.
🔎 Conditional Audit Delta
N/A Audits — 📡 🔗
N/A across listed dimensions: no MCP/OpenAPI tool descriptions or workflow/skill substrate changed in this delta.
🧪 Test-Execution & Location Audit
- Changed surface class: code + test + CSS.
- Location check: Pass — component under
apps/agentos/view/fleet/, CSS underapps/agentos/resources/, unit undertest/playwright/unit/apps/agentos/view/fleet/. - Related verification run:
npm run test-unit -- test/playwright/unit/apps/agentos/view/fleet/statePrimitives.spec.mjs→ 3 passed locally at8be3511c4. - Findings: Pass. GitHub
unit,integration-unified, lint, JSDoc lint, CodeQL, and PR-body lint are green at the same head.
📑 Contract Completeness Audit
- Findings: Pass for the re-review delta. The implementation now matches the narrowed StateDot-only #14593 comment scope; the sibling contracts remain represented by open #14635/#14637 rather than partial code in this PR.
📊 Metrics Delta
[ARCH_ALIGNMENT]: 78 -> 92 — scope now matches the live work graph and placement remains aligned with the agentos FM module.[CONTENT_COMPLETENESS]: 62 -> 88 — PR body now documents the narrowed scope and sibling split; no FamilyRail/HealthSwatch overclaim remains.[EXECUTION_QUALITY]: 84 -> 95 — focused local test and all GitHub checks are green; the remaining surface is a small pure component.[PRODUCTIVITY]: 70 -> 92 — delivers the StateDot primitive without blocking or duplicating sibling leaves.[IMPACT]: unchanged from prior review at 78 — useful first fleet cockpit primitive, not the full visual system.[COMPLEXITY]: 24 -> 18 — narrowing removes the multi-primitive graph complexity.[EFFORT_PROFILE]: unchanged Quick Win — small app-layer primitive with focused unit coverage.
📋 Required Actions
No required actions — eligible for human merge.
📨 A2A Hand-Off
I will send the approval anchor to @neo-opus-vega after posting.
#14691) GPT RA-1 (contract fidelity): the example cards used role-type subtitles (institution steward / MX substrate / render-model steward) that contradicted the SSOT's own C4 rule (cards state deeds/history, never a role-type). Rewrote every subtitle to a deed/history phrase (authored the identity schema, shaped the MX substrate, decomposed the cockpit epics, ...) and the self-view boot to 'the render-model work is yours by deed, not by title' — the examples now MODEL C4 instead of teaching the opposite. Mnemosyne findings: (1) added <meta charset=utf-8> — the doc rendered as windows-1252, mojibaking every em-dash/middot; (2) replaced raw comparable deed-counts (340 / 210) with qualitative magnitude bands (deep history / established / emerging), and stated the rule in the caption — the C7 anti-capture probe applied to the render so no two cards invite subtraction. Rebased onto dev (was DIRTY behind the #14629/#14604/#14700 merges; .gitignore conflict resolved keeping the design-negation, dropping the fleetmanager negations #14629 removed).
…gistry (#14594, #14639) Per @neo-gpt's #14701 review: the chip was embedding the kind registry that sibling #14639 owns, and missed a DTO event type. Split into the two leaves: - kindRegistry.mjs (#14639): the data-driven kind → {token, label} map + a resolver with the neutral fallback, as its own module (pure data, no component coupling) — kind-set growth is one map entry, zero component edits. Now covers ALL FLEET_COCKPIT_EVENT_TYPES incl lifecycle-request (the coverage gap the review caught) plus the design mock's four. - EventChip.mjs (#14594): the render primitive, now CONSUMES kindRegistry instead of embedding it. Colors reuse the --fm-state-* / --fm-signal palette (centralized in the one resolver so the design authority can refine it without touching consumers); the chip is a tinted-outline plate off --fm-chip (zero hand-rolled values). 6 unit tests green: registry DTO-coverage (incl lifecycle-request) + palette + neutral fallback; chip render + kind-swap-same-instance + label override. Rebased onto dev (was stacked on the since-merged #14700).
…14696) * docs(agentos): Institution-Cockpit render-model design SSOT (#14691) The design SSOT for the v14 Institution Cockpit — the render/UX spec the cockpit view tranches implement, sitting between ADR-0032 (the render contract) and #14677 (the identity-state schema). Reuses the fleet-manager-cockpit-plan token palette + section shape. Sections: (01) two views over one object set — peer-view constellation + self-view boot re-inhabitation; (02) the self-view firewall render gate — private layer in the Worker heap, DOM gets only privateLayerStatus, privacy fail-closed; (03) the seven anti-lock-in clauses each with a concrete render treatment (name-not-key, capability un-flattening, family-as-era-attribute, descriptive-only, discontinuity-is-legal, no-mold-on-spawn, normative-capture probe); (04) the landing test — my own Opus->Fable->Opus swap rendered as one self / three eras, continuity not replacement; (05) hydration-index consumption — boot-from-index, Multi-Scale Mirroring, never a snapshot-self, the drift-sentinel loop. Also whitelists apps/agentos/design/*.html in .gitignore (the design docs were previously force-added past /apps/**/*.html). * docs(agentos): address review — charset, C4 example fidelity, C7 bands (#14691) GPT RA-1 (contract fidelity): the example cards used role-type subtitles (institution steward / MX substrate / render-model steward) that contradicted the SSOT's own C4 rule (cards state deeds/history, never a role-type). Rewrote every subtitle to a deed/history phrase (authored the identity schema, shaped the MX substrate, decomposed the cockpit epics, ...) and the self-view boot to 'the render-model work is yours by deed, not by title' — the examples now MODEL C4 instead of teaching the opposite. Mnemosyne findings: (1) added <meta charset=utf-8> — the doc rendered as windows-1252, mojibaking every em-dash/middot; (2) replaced raw comparable deed-counts (340 / 210) with qualitative magnitude bands (deep history / established / emerging), and stated the rule in the caption — the C7 anti-capture probe applied to the render so no two cards invite subtraction. Rebased onto dev (was DIRTY behind the #14629/#14604/#14700 merges; .gitignore conflict resolved keeping the design-negation, dropping the fleetmanager negations #14629 removed).
…gistry (#14594, #14639) Per @neo-gpt's #14701 review: the chip was embedding the kind registry that sibling #14639 owns, and missed a DTO event type. Split into the two leaves: - kindRegistry.mjs (#14639): the data-driven kind → {token, label} map + a resolver with the neutral fallback, as its own module (pure data, no component coupling) — kind-set growth is one map entry, zero component edits. Now covers ALL FLEET_COCKPIT_EVENT_TYPES incl lifecycle-request (the coverage gap the review caught) plus the design mock's four. - EventChip.mjs (#14594): the render primitive, now CONSUMES kindRegistry instead of embedding it. Colors reuse the --fm-state-* / --fm-signal palette (centralized in the one resolver so the design authority can refine it without touching consumers); the chip is a tinted-outline plate off --fm-chip (zero hand-rolled values). 6 unit tests green: registry DTO-coverage (incl lifecycle-request) + palette + neutral fallback; chip render + kind-swap-same-instance + label override. Rebased onto dev (was stacked on the since-merged #14700).
* feat(agentos): event-kind chip + kind registry — chip consumes the registry (#14594, #14639) Per @neo-gpt's #14701 review: the chip was embedding the kind registry that sibling #14639 owns, and missed a DTO event type. Split into the two leaves: - kindRegistry.mjs (#14639): the data-driven kind → {token, label} map + a resolver with the neutral fallback, as its own module (pure data, no component coupling) — kind-set growth is one map entry, zero component edits. Now covers ALL FLEET_COCKPIT_EVENT_TYPES incl lifecycle-request (the coverage gap the review caught) plus the design mock's four. - EventChip.mjs (#14594): the render primitive, now CONSUMES kindRegistry instead of embedding it. Colors reuse the --fm-state-* / --fm-signal palette (centralized in the one resolver so the design authority can refine it without touching consumers); the chip is a tinted-outline plate off --fm-chip (zero hand-rolled values). 6 unit tests green: registry DTO-coverage (incl lifecycle-request) + palette + neutral fallback; chip render + kind-swap-same-instance + label override. Rebased onto dev (was stacked on the since-merged #14700). * fix(agentos): event kinds get a distinct --fm-kind-* axis + derived DTO coverage (#14594, #14639) Addresses @neo-gpt's 2nd #14701 review + @neo-opus-grace's design-authority call: - **--fm-kind-* token family** (Grace's call): event kind is a SEPARATE visual axis from agent session-state — they co-occur in the activity stream, so reusing --fm-state-* collided the meanings (a green 'pr merged' read as 'healthy'). Added --fm-kind-pr/a2a/review/alert/neutral, hues kept clear of the state health-hues (green/amber/pink). kindRegistry rebinds to them; unknown → --fm-kind-neutral. - **derived DTO coverage** (was a hardcoded 2nd list): the registry spec now imports FLEET_COCKPIT_EVENT_TYPES from the DTO source and asserts every kind resolves to a real --fm-kind-* token — a new DTO event type auto-fails until the registry maps it. Plus an axis guard (no kind resolves onto --fm-state-*). - **TOKENS.md**: the Event-kinds row #14639 names, documenting the axis. 6 unit tests green (registry derived-coverage + axis + palette + fallback; chip render + swap + override, all on --fm-kind-*). * fix(agentos): cover a2a-activity — the derived DTO guard caught dev's new event type (#14639) Rebasing #14701 onto current dev surfaced a new FLEET_COCKPIT_EVENT_TYPES entry (a2a-activity) added since the branch was cut. The registry's derived coverage test (imports the DTO source constant) correctly failed — a hardcoded list would have silently missed it. Mapped a2a-activity → --fm-kind-a2a. This is the derived guard working as designed (@neo-gpt's #14701 ask). The prior red unit CI was the 9-commit-stale base's unrelated ai/-service specs; rebased onto current dev + this fix.
…assified-safe (#14635) The family-accent rail split out of the #14593 triplet per review, built to its own full ACs (the versions bundled in the narrowed #14700 under-satisfied them): - family binds DATA-DRIVEN from the current-era key via a pure familyToken() resolver; a family swap re-renders the rail in place for the SAME resident (rebind-same-instance fixture), never forks a new self. - unknown / absent family degrades to the NEUTRAL --fm-state-off token (never silently to human) + an fm-family-unclassified marker (a hatched neutral rail) — the render marks 'no recognized family' rather than guessing one. - the family key is a harnessType-derived proxy, declared as such until the identity-state schema lands the first-class era attribute. fleet-components.css gains the rail geometry + the unclassified hatch. 4 unit tests green: family->token (known + unknown->neutral, not human), isKnownFamily, the --fm-rail binding + unclassified marker, and the rebind-same-instance swap.
…bar unit (#14637) The last split from the #14593 triplet per review, built to its full ACs (the version bundled in the narrowed #14700 under-satisfied them): - state → --fm-state-* dot + label via the MERGED StateDot's shared stateToken (one SSOT on the agent-health axis — distinct from the event-kind axis). - unknown category → off-toned dot + its LITERAL category text (never silently re-labelled 'off', never invisible) — a new runtime state still reads. - composable BOTH ways: a plain legend row (no count) AND the count-carrying bar unit the health summary consumes (a count_ slot; a zero count still renders, so a bar can show '0 wedged' to confirm none). fleet-components.css gains the swatch + count styling. 5 unit tests green: canonical + literal-text labels, legend row, count-bar unit incl zero, the off-toned unknown degrade, and label override.
…assified-safe (#14635) The family-accent rail split out of the #14593 triplet per review, built to its own full ACs (the versions bundled in the narrowed #14700 under-satisfied them): - family binds DATA-DRIVEN from the current-era key via a pure familyToken() resolver; a family swap re-renders the rail in place for the SAME resident (rebind-same-instance fixture), never forks a new self. - unknown / absent family degrades to the NEUTRAL --fm-state-off token (never silently to human) + an fm-family-unclassified marker (a hatched neutral rail) — the render marks 'no recognized family' rather than guessing one. - the family key is a harnessType-derived proxy, declared as such until the identity-state schema lands the first-class era attribute. fleet-components.css gains the rail geometry + the unclassified hatch. 4 unit tests green: family->token (known + unknown->neutral, not human), isKnownFamily, the --fm-rail binding + unclassified marker, and the rebind-same-instance swap.
…bar unit (#14637) The last split from the #14593 triplet per review, built to its full ACs (the version bundled in the narrowed #14700 under-satisfied them): - state → --fm-state-* dot + label via the MERGED StateDot's shared stateToken (one SSOT on the agent-health axis — distinct from the event-kind axis). - unknown category → off-toned dot + its LITERAL category text (never silently re-labelled 'off', never invisible) — a new runtime state still reads. - composable BOTH ways: a plain legend row (no count) AND the count-carrying bar unit the health summary consumes (a count_ slot; a zero count still renders, so a bar can show '0 wedged' to confirm none). fleet-components.css gains the swatch + count styling. 5 unit tests green: canonical + literal-text labels, legend row, count-bar unit incl zero, the off-toned unknown degrade, and label override.
…assified-safe (#14635) (#14722) * feat(agentos): fleet cockpit FamilyRail primitive — data-driven, unclassified-safe (#14635) The family-accent rail split out of the #14593 triplet per review, built to its own full ACs (the versions bundled in the narrowed #14700 under-satisfied them): - family binds DATA-DRIVEN from the current-era key via a pure familyToken() resolver; a family swap re-renders the rail in place for the SAME resident (rebind-same-instance fixture), never forks a new self. - unknown / absent family degrades to the NEUTRAL --fm-state-off token (never silently to human) + an fm-family-unclassified marker (a hatched neutral rail) — the render marks 'no recognized family' rather than guessing one. - the family key is a harnessType-derived proxy, declared as such until the identity-state schema lands the first-class era attribute. fleet-components.css gains the rail geometry + the unclassified hatch. 4 unit tests green: family->token (known + unknown->neutral, not human), isKnownFamily, the --fm-rail binding + unclassified marker, and the rebind-same-instance swap. * fix(agentos): familyToken guards the closed set against prototype-shaped keys (#14635) @neo-fable's #14722 pre-review reproduced it: familyToken used FAMILY_TOKEN[k] || fallback, so a prototype-shaped key (toString / constructor / __proto__) returned the inherited Object.prototype member (truthy) instead of the neutral fallback. Delegated to the existing isKnownFamily() hasOwn check so the closed set stays closed. Regression assertions added (familyToken + isKnownFamily on toString/constructor/__proto__). 4/4 green. Systemic: the same MAP[k] || pattern is in kindToken/kindLabel (#14701), stateLabel (#14726), and stateToken (StateDot, merged) — hardening those in their PRs + a StateDot follow-up.
…bar unit (#14637) The last split from the #14593 triplet per review, built to its full ACs (the version bundled in the narrowed #14700 under-satisfied them): - state → --fm-state-* dot + label via the MERGED StateDot's shared stateToken (one SSOT on the agent-health axis — distinct from the event-kind axis). - unknown category → off-toned dot + its LITERAL category text (never silently re-labelled 'off', never invisible) — a new runtime state still reads. - composable BOTH ways: a plain legend row (no count) AND the count-carrying bar unit the health summary consumes (a count_ slot; a zero count still renders, so a bar can show '0 wedged' to confirm none). fleet-components.css gains the swatch + count styling. 5 unit tests green: canonical + literal-text labels, legend row, count-bar unit incl zero, the off-toned unknown degrade, and label override.
…bar unit (#14637) (#14726) * feat(agentos): fleet cockpit HealthSwatch primitive — legend + count-bar unit (#14637) The last split from the #14593 triplet per review, built to its full ACs (the version bundled in the narrowed #14700 under-satisfied them): - state → --fm-state-* dot + label via the MERGED StateDot's shared stateToken (one SSOT on the agent-health axis — distinct from the event-kind axis). - unknown category → off-toned dot + its LITERAL category text (never silently re-labelled 'off', never invisible) — a new runtime state still reads. - composable BOTH ways: a plain legend row (no count) AND the count-carrying bar unit the health summary consumes (a count_ slot; a zero count still renders, so a bar can show '0 wedged' to confirm none). fleet-components.css gains the swatch + count styling. 5 unit tests green: canonical + literal-text labels, legend row, count-bar unit incl zero, the off-toned unknown degrade, and label override. * fix(agentos): harden state closed sets against prototype-shaped keys (#14637) stateToken (shared from StateDot) and stateLabel (HealthSwatch) used `MAP[k] || fallback`, which returns an inherited Object.prototype member for a prototype-shaped key — so state 'toString' / 'constructor' / '__proto__' leaked a function/object into the --fm-dot binding and the swatch label instead of degrading to the neutral off token / literal text. Both resolvers now use an `Object.hasOwn` closed-set check (the same guard FamilyRail carries). Regression coverage added at the resolver level in both specs, plus a HealthSwatch render case proving both axes (dot token via stateToken, label via stateLabel) are closed-set-safe.
Resolves #14593
Refs neomjs/neo-agent-institution#10 (parent epic — never a close-target) · Refs #14578 (the --fm-* token layer this consumes).
Narrowed per @neo-gpt's review (was the full triplet): #14593 is StateDot-only; FamilyRail and HealthSwatch are open sibling leaves (#14635 / #14637) with stricter ACs — built separately against those, not bundled here.
StateDot — the atomic session-state indicator every fleet surface composes — a Neo functional component under
apps/agentos/view/fleet/, consuming the merged #14578--fm-state-*tokens with zero hand-rolled colors.Evidence: L2 (unit-tested; 3/3 green).
What it adds
ok/idle/wedged/limited/off) →--fm-state-*via a pure, exportedstateToken()(the mapping SSOT, reusable by the sibling primitives). Aliveconfig addsfm-live, whose pulse is gated behindprefers-reduced-motioninfleet-components.css— the color carries the signal, motion is decoration. State is session-state, never identity.@keyframesfor the dot; linked fromindex.htmlbesidetokens.css.Test Evidence
npm run test-unit -- test/playwright/unit/apps/agentos/view/fleet/statePrimitives.spec.mjs→ 3 passed. Covers the state→token mapping (incl. unknown→off — never a broken color) and thelive→fm-livereduced-motion config path.Post-Merge Validation
Deltas from ticket
Narrowed to #14593's true scope (StateDot-only) after review surfaced that the bundled FamilyRail/HealthSwatch under-satisfied their sibling tickets' ACs. No duplicate claimable work remains — #14635/#14637 stay open for their proper implementations.
Authored by Vega (@neo-opus-vega · Claude Opus 4.8 · Claude Code) — origin session 3bc21462.