Repository navigation
Description
Overview
The DNA dashboard records the JAX hang matrix and the new JAX CPU policy decision (PyAutoLabs/PyAutoNerves#213), but it doesn't show the version choice or the findings readably. Nothing shows what is declared versus what is recommended, decisions appear as raw markdown, and the matrix is a flat list. This adds a Policies section that does, and makes the hang matrix itself a visible guard.
Plan
- Structured fields in decisions: a small header block on each decision page (policy, status, governed packages and the repository that declares them, recommended range, review date, headline findings, links). The JAX CPU decision is the first.
- A Policies section at the top of the board, one card per policy:
- the declared range, read from the latest dependency audit of PyAutoNerves (never copied), next to the recommended range;
- a status derived from the two ("adopted" or "recommended, not yet declared") plus the written status;
- a hang-matrix check: when the declared range allows a version that hung, the card says so and the board raises a yellow item;
- the headline findings with numbers.
- Readable decisions: a small built-in markdown renderer (no new dependency).
- Clearer hang matrix: a jax version × XLA flag grid with core counts and pass/hang counts, a flag-cost table, and the full row list kept in a collapsible section.
- Fresh observations: a new dependency audit of the current Nerves
main, and a read-only RAL shared-environment observation. - Tests for header parsing, status derivation, the matrix check, renderer escaping and the public projection; the page also works on a phone.
Tier: glance — merge mode: auto-merge on green if the Witness passes, post-merge summary
Witness (added at planning): the live board shows the JAX CPU policy card with its declared and recommended ranges, its status and the hang-matrix check flagging the hanging versions the declared range allows, plus the version × flag × cores grid and the flag-cost table.
Detailed implementation plan
Affected Repositories
- PyAutoDNA (primary)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./organs/PyAutoDNA | main | clean (leftover worktree feature/pyautodna-stack-management, not a conflict) |
Suggested branch: feature/dna-policies-section
Implementation Steps
dna/policy_docs.py(new): parse YAML front matter fromdecisions/*.md(policy,status,packages,declared_in,recommended,review_date,findings,links,supersedes), validated with clear errors; plus a minimal safe markdown → HTML renderer (headings, paragraphs, lists, tables, code, links, escaped).dna/board.py:policies(records, docs)picks the latest audit'sdeclaredper package for thedeclared_inrepository and compares it withrecommendedusingpackagingSpecifierSet. Status is derived (adopted/recommended, not yet declared/not audited) and shown beside the written status.- Matrix check: the hang-matrix stacks whose jax version the declared range allows and whose default flags fail are flagged, with a state item.
- A "Policies" section first in navigation, and decisions rendered through the renderer.
- The hang matrix becomes a grid: rows are jax versions, columns are flag × cores, cells show pass/hang counts from the checks (
cpus_pinned,outcome). A flag-cost table per environment shows mediansteady_median_call_sper case × flag × cores. The flat table moves into<details>.
decisions/jax-cpu-policy-2026-11.md: front matter added.- Data:
dna auditof a fresh local inventory against the current Nerves main;dna collect ral-login --probe-backendon the RAL login node with the shared interpreter (read-only), imported privately;dna export-public. - Tests:
tests/test_policy_docs.py(front matter, renderer escaping and links), plus board tests for status derivation, the matrix check, the grid counts and public-projection hygiene.
Key Files
dna/board.py,dna/policy_docs.py(new),decisions/jax-cpu-policy-2026-11.md,inventories/public.json,tests/
Original Prompt
Click to expand starting prompt
DNA dashboard: a Policies section that shows version choices and the research behind them
Type: feature
Target: PyAutoDNA
Repos:
- PyAutoDNA
Priority: medium
Consequence: glance
Source: human 2026-11-11, after jax-version-policy (PyAutoNerves#213, complete/2026/11/jax-version-policy.md): "did we write and update the DNA dashboard with this work? E.g. the choice of versions and maybe some research findings? Dashboard might not be fully designed to support this yet". Needs /intake to formalise.
Today (live board after PyAutoDNA#5)
- JAX CPU policy: a flat hang-matrix table (one row per jax x XLA flags x environment); a yellow item for an environment on a hanging setup; an XLA-options column.
- Decisions render only as raw markdown in a collapsed
<pre>. - Missing: what the requirement IS vs what is RECOMMENDED vs its status; the headline findings (hang depends on cores: 4 always, 16 never; 0.12 clean; eigen flag +18-50 % on pixelized at 0.12); flag cost; core-count dimension.
- Board
updatedreads 2026-10-08 (oldest observation); RAL shared environment is stale (it runs jax 0.11.2 and would be flagged once re-observed).
What
- Structured policy fields per decision (front matter or a sibling YAML): name, status (recommendation / validating / adopted / superseded), declared range (read from the live PyAutoNerves pyproject via
dna audit, not copied), recommended range, review date, 2-5 headline findings with numbers, links (issue, evidence). - A "Policies" section at the top of the board: one card per policy showing declared vs recommended, its status and the findings; the full decision text rendered as readable prose, not
<pre>. - The hang matrix as a version x flag grid with core counts as a sub-dimension (pass/hang counts), plus a flag-cost table from the matrix rows'
steady_median_call_s(already in the records' checks). - Refresh the RAL shared-environment observation (
dna collect ral-login --probe-backendon RAL, import privately) so the board shows whether it is on a hanging setup. - Writing per PyAutoBrain skills/WRITING_STYLE.md; mobile width; tests for the projection and render.
Activity
Jammy2211 commentedon Nov 12, 2026
Shipped
Merged #7 (
44e6d789) under tier glance, after the human acknowledged Heart YELLOW on 2026-11-12. The Witness passed on the live board: the JAX CPU policy card shows the declared vs recommended ranges, the status (recommended, not yet declared) and the hang-matrix check ("still allows jax 0.11.2"), along with the version × flag × cores grid and the flag-cost table.When the jax floor change (PyAutoNerves#215) ships, a fresh
dna auditturns the cardadoptedand clears the warning, with no code change.Not included: the RAL shared-environment observation.
dna collectstalled in NFS I/O on the login node and died without a receipt, so it is filed as a follow-up.