Skip to content

feat: show cockpit actions and honest observation freshness - #22

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/cockpit-actionable-state
Oct 1, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/cockpit-actionable-state

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

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.
  • README/AGENTS: human-first architecture and incremental structured-state contract.

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.
  • Chromium: 390px portrait, 844px landscape and 1280px desktop, light/dark; no shell overflow; keyboard clipboard, explicit decisions, Back navigation, iframe retained during polling, fetch failure and recovery; no page errors.
  • PWA: shell-v4 registration/activation, only shell URLs cached, offline reload.
  • Physical iOS/Android and installed-app launch not tested.

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).

@Jammy2211 Jammy2211 added the pending-release Awaiting coordinated PyAuto release label Oct 1, 2026
@Jammy2211
Jammy2211 merged commit e30a8c2 into main Oct 1, 2026
@Jammy2211
Jammy2211 deleted the feature/cockpit-actionable-state branch October 1, 2026 09:55
@Jammy2211 Jammy2211 removed the pending-release Awaiting coordinated PyAuto release label Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant