Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ duplicating it.

`cockpit/` is the organ cockpit — an installable PWA at `/cockpit/` that reads
each organ's `https://pyautolabs.github.io/<Repo>/state.json` (same origin as
the page) and renders the Heart strip plus one card per organ in canonical
the page) for shell status and notifications. PyAutoScientist owns the home
overview cards; the shell embeds that canonical page. Organ tabs retain their
order (Brain, Mind, Cortex, Broca, Memory, Eyes, Ears, Heart, Hands, Pulse, Insight, DNA, Nerves, Gut).

- **Integrated boards:** persistent icon/label navigation selects Overview or a
- **Integrated boards:** persistent icon/label navigation selects Scientist (the default PyAutoScientist home) or a
board at `/cockpit/#<organ>` (lowercase). A single titled iframe displays only
known organ paths on `https://pyautolabs.github.io`; other destinations remain
external. Use child `location.replace` when switching so shell routes own
Expand Down Expand Up @@ -139,3 +140,9 @@ Before changing a shared interface, consult the applicable
on demand, identify affected consumers, and validate their adoption. Change
generated guidance at its canonical source and regenerate.
<!-- repos_sync:standards:end -->

Scientist is separate from the monitored ORGANS list: it has no synthetic health
feed and must not aggregate itself. Empty routes and legacy `#overview` resolve
to `#scientist`. The Scientist repository owns home presentation, polling,
reporting guidance and the copyable prompt. The shell preserves its frame while
polling, and retains safe link interception and Back/Forward behavior.
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local notification when any organ's status changes. No server, no secrets: the
feeds are the truth.

Choose an organ from the icon-and-label bar to open its board inside the cockpit.
**Overview** returns to the status cards. Board selections have bookmarkable URLs
**Scientist** returns to the status cards. Board selections have bookmarkable URLs
(for example `/cockpit/#heart`), and browser Back/Forward follows those selections.
The bar scrolls horizontally on phones; landscape mode makes it more compact.
Reload refreshes the selected board, while **New tab** explicitly opens it separately.
Expand Down Expand Up @@ -61,22 +61,24 @@ be integrated with the shell; test full navigation on the shared Pages origin.
### Actionable state and freshness

The cockpit remains a human interface over the organs' shared `state.json`
feeds. Brain's optional v1 metadata adds reasons, labelled actions and explicit
human decisions. It renders old and enriched feeds together. Actions link to
evidence or copy existing commands/prompts; viewing a problem never executes
its remedy. Approval and scientific-judgement labels describe the source's
constraints, and missing safety information is unclassified.

Cards distinguish feed generation from the browser's last check. Failed fetches
show last-known results as stale, keeping previous failures visible. Invalid or
future timestamps cannot show current green. Producer-declared `valid_until`
deadlines are respected; without one the cockpit displays the age and invents
no expiry interval. Source verdicts, transport failure and freshness stay
separate. No persistent agent or new notification service is included.
feeds. Scientist selects concise summaries from old and enriched feeds; links
lead to the owning evidence and boards. The work panel copies a prompt, and
viewing a problem never executes its remedy.

Scientist cards label source timestamps and retain last-known evidence when
fetching fails. Invalid or future timestamps cannot show current green.
Producer-declared `valid_until` deadlines are respected; without one, source
age is displayed without inventing an expiry interval. Source verdicts,
transport failure and freshness stay separate.

Run the dependency-free contract/model checks with
`node --test tests/cockpit-state.cjs`. Browser checks should additionally cover
mobile/light/dark layout, clipboard, navigation and a selected board remaining
in place during polling. The runtime still needs no packages or build step.

- Insight reads the [inference campaign board](https://pyautolabs.github.io/PyAutoInsight/) organ feed; project inference feeds remain on their project dashboards.

The first cockpit tab embeds the canonical PyAutoScientist dashboard: its
banner, work prompt and compact organ disclosures. Old `#overview` links still
open this Scientist home. Ask the Scientist for a summary over the last 24 hours
or another period; historical evidence stays with the owning organs.
Loading