Skip to content

feat: dashboard Policies section — declared vs recommended, hang-matrix check, readable decisions - #7

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/dna-policies-section
Nov 12, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/dna-policies-section

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Adds a Policies section to the DNA dashboard, so it shows the version choice and the research behind it, not only raw evidence. Closes #6. This is a follow-up of PyAutoLabs/PyAutoNerves#213.

  • Policy fields on decisions (dna/policy_docs.py). A decision page can start with a small YAML header: policy, status, the packages it governs and which repository declares them, the recommended range, review date, findings and links. decisions/jax-cpu-policy-2026-11.md is the first.

  • Policy cards, the first section of the board:

    • the declared range, read from the newest dependency audit (never copied), next to the recommended range;
    • a derived status: adopted, recommended, not yet declared, or not audited;
    • a hang-matrix check: versions the declared range still allows that hang with no flag. These get a warning on the card and a yellow state item;
    • the findings with their numbers, and links.

    Today it reads: PyAutoNerves declares !=0.10.*,!=0.11.0,<0.12.0,>=0.7.0, the recommendation is <0.13,>=0.12.0, and 0.11.2 is flagged. When the jax floor change (PyAutoNerves#215) ships and a fresh audit runs, the card turns adopted and the warning clears with no code change.

  • Readable decisions: a small built-in markdown renderer replaces raw <pre> text. Everything is escaped, and links go only to http(s) URLs or sibling decision pages.

  • Hang matrix: pass/hang counts per jax version × XLA flag × cores, per environment (for example RAL 0.11.2, no flag: 25/25 hang at 4 cores, 25/25 pass at 16), plus per-call cost on the newest version. The previous row list is now inside a collapsible section.

  • Data: a fresh dependency audit of the five library mains (2026-11-11) in inventories/public.json.

Scripts Changed

  • dna/policy_docs.py (new), dna/board.py
  • decisions/jax-cpu-policy-2026-11.md (front matter), inventories/public.json
  • tests/test_policy_docs.py (new, 7 tests), tests/test_board.py (section count is now 5)

Test Plan

  • python -m unittest discover -s tests: 32 OK
  • Board rendered from the public data alone, as CI does: the policy card, the warning and the state item appear, plus the grid and the cost tables
  • Public file contains no paths, hostnames or user names
  • After merge: Witness check on the live board

Not included: the RAL shared-environment observation. dna collect stalled in NFS I/O on the login node and died, so it is now a follow-up.

Heart YELLOW (reds in PyAutoArray, PyAutoGalaxy, PyAutoLens and 3 dirty worktrees, none in this repo), acknowledged by the human on 2026-11-12. Tier glance: auto-merge on green if the Witness passes.

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits November 11, 2026 13:44
…check, readable decisions, version x flag x cores grid (PyAutoDNA#6)

- decisions may carry policy front matter (dna/policy_docs.py); jax-cpu-policy-2026-11 is the first
- policy cards: declared range from the newest dependency audit vs recommended, derived status,
  versions the declared range allows that hang in the matrix (yellow state item), findings, links
- small safe markdown renderer for decision pages (no new dependency)
- hang matrix as pass/hang counts per jax x XLA flag x cores, plus per-call cost on the newest version

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e Policies section

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 44e6d78 into main Nov 12, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/dna-policies-section branch November 12, 2026 09:13
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.

feat: dashboard Policies section — version choices and research findings

1 participant