Repository navigation
feat: show cockpit actions and honest observation freshness - #22
Merged
Merged
Conversation
This was referenced Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A failed feed fetch could leave the cockpit showing cached green as current. Cards, header and navigation now share an observation model that separates source health, fetch outcome and last-known evidence. The UI shows generated/checked ages, marks cached results as stale, respects producer expiry deadlines and retains historical failures explicitly.
Optional v1 action metadata supplies concise reasons, labelled copy/link actions, safety labels and explicit decision questions. Legacy feeds and prompts remain supported. No remediation executes automatically, and transport failures do not generate source-status notifications.
Scripts Changed
cockpit/index.html: validated live/cached feeds, observation model, actionable rows and accessible 44px controls; polling preserves the selected board.cockpit/sw.js: shell cache v4; feeds remain uncached.tests/cockpit-state.cjs: dependency-free Node contract, freshness, rendering, cache recovery and transition tests.Upstream PR
PyAutoLabs/PyAutoBrain#435 — merge the producer/contract PR first. Consumer remains compatible with legacy feeds throughout rollout. Task: PyAutoLabs/PyAutoBrain#434.
Test Plan
node --test tests/cockpit-state.cjs: 10 passed.Heart gate
Live user authorization: “Ship cockpit #434 despite Heart RED”. This authorizes commit, push and opening the two pending-release PRs only. No merge or release authorization.
Heart RED (snapshot 2026-10-01T09:18:46.359669+00:00):
release validation FAILED (stage integrate).Other reasons:
workspace validation not passing (0 failed, 1 timeout, cloud#36404726969: autolens_test scripts/multi_dataset/rectangular.py);manifest drift: public front-door organ tables (generated) — 1 mismatch(es) vs PyAutoMind/repos.yaml.Passed branch evidence: Brain 1107 tests; cockpit 10 Node tests; all nine published feeds; Chromium mobile/landscape/desktop light/dark, keyboard clipboard, history/frame preservation, offline/recovery and shell-only PWA checks; tenant firewall and diff checks; in-session review (not independent review).