Skip to content

chore: bring lab to the repository baseline (core ADR-0071, B1 to B17) - #195

Merged
bketelsen merged 2 commits into
mainfrom
murbella/baseline
Nov 6, 2026
Merged

bketelsen merged 2 commits into
mainfrom
murbella/baseline

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR brings lab to core's repository baseline: ADR-0071 and rows B1 to B17 of docs/specs/repository-baseline.md (B17 is the README standard of ADR-0072). lab had no leftover agent-framework tree; the work is the missing rows, the README, and a docs/plans/ that holds only open work. It changes no product code: no WorkflowTemplate, manifest, Argo CD Application, lane script or dashboard source.

  • Make gate (B4, B12): a root Makefile with verify, check and ci. make verify = verify-template (template gate + its Node tests), verify-python (policies/check_agent_governance.py + the pytest suite with its coverage gate) and verify-site (dashboard unit tests; it fails when site/test/*.test.mjs matches nothing, as the old CI step did). make ci adds the append-only corrections check against BASE. mise.toml and mise.lock pin Node 24.22.2 (template copy).
  • CI (B12, B5): ci.yml job Repository gate runs make ci BASE=<base sha> (Python 3.13, Node from mise, full history). Jobs Python 3.12 and Node.js 22 run make verify-python and make verify-site on the other supported runtimes, so the runtime coverage of the old matrix (3.12 and 3.13, Node 22) stays. Top-level permissions: {}, contents: read per job, merge_group added. The ruleset requires no status check, so the job rename blocks nothing.
  • Template gate: scripts/check-template.mjs, scripts/check-corrections.mjs, scripts/lib/risk-paths.mjs, test/check-template.test.mjs, .memory/README.md and .github/workflows/risk-paths.yml, byte-identical to bketelsen/agentic-template@05e8f5d.
  • B1: GEMINI.md → AGENTS.md and .claude/skills → ../.agents/skills, relative symlinks.
  • B6: .github/risk-paths.json (17 entries). It lists the reconciled state that the risk tiers call High (argo/workflow-templates/**, manifests/**, argocd/**), the workflows (Pages deploy, token permissions), the operator and dev-submit helpers that use the kubeconfig (Justfile, scripts/*-dev-submit.sh), the evidence collector (scripts/collect_runs.py), and the gates. Each why starts with a protectedBoundaries id of policies/agent-governance.json; new guard tests/test_risk_paths.py checks that and the required globs. The label risk:high now exists in the repository.
  • B7: the PR template has ## Risk tier on lab's scale (docs/risk-tiers.md: Low, Medium, High).
  • B13: .github/dependabot.yml: github-actions, npm at / (Playwright), npm at /site (dashboard), pip at / (requirements-test.txt).
  • B14: SECURITY.md: private vulnerability reporting at https://github.com/frostyard/lab/security (on: the API returns enabled: true); only main gets fixes, because Argo CD and Pages deploy from main.
  • B17: README.md rewritten to the infrastructure kind (565 words). Its detail moved first, verbatim (below).
  • Plans: docs/plans/ keeps the 4 plans with open work; 10 done run plans and their evidence are deleted (git keeps them at cc3e68a4). The 8 files that tests read move, bytes unchanged, to tests/fixtures/run-records/.

No behavior change: git diff --no-ext-diff origin/main...HEAD -- argo manifests argocd site e2e policies scripts/collect_runs.py scripts/*.sh scripts/snow-lifecycle-preflight Justfile package.json package-lock.json playwright.config.ts requirements-test.txt pytest.ini .coverage-thresholds.json is empty.

Inventory

Every file that is not product code (product: argo/, manifests/, argocd/, site/, e2e/, scripts/ lane tools, Justfile):

File or group Verdict Why
AGENTS.md keep, edit Canonical instruction file (B1); new "Gate and guards" section and docs rules (plans hold open work; README standard)
CLAUDE.md, .cursorrules, .github/copilot-instructions.md keep Relative symlinks (B1, core ADR-0029)
GEMINI.md, .claude/skills add Symlinks (B1, template gate)
.claude/settings.json, .claude/session-summary.md keep; summary edited B16 allows both; the handoff names this change and the B5 follow-up
.agents/skills/ keep, untouched Canonical skill tree; the open sync PR #192 owns it
.memory/corrections.jsonl keep, 2 lines added B2: 13 lines pass check-corrections.mjs; 2 new lines from the cross-review
.memory/README.md add Template copy
.memory/.gitkeep delete Redundant: the directory has files
.knowledge/README.md, skills/lab-operations.md keep; skill edited ACMM discovery paths (core ADR-0018); the skill now names make verify
README.md rewrite B17, kind infrastructure. Moved verbatim (849 content lines, 0 missing, checked against cc3e68a4:README.md): "What this is", "Stack", "Architecture", "Why the tests run in a container", "Image lanes", "Suites", "Repository layout", "Known gaps" → docs/design/architecture.md; "The incus VM lane" and its subsections, "Driving a guest…", "Native A/B Secure Boot…" → docs/design/vm-lanes.md; "Manual Snow bootc lifecycle" → docs/specs/bootc-lifecycle-lane.md; "Operating it" → docs/ops/operating.md; "Reporting" → docs/design/reporting.md. Dropped: nothing
docs/design/*.md, docs/specs/bootc-lifecycle-lane.md, docs/ops/operating.md add The moved text above, with a title, a rationale line and References; indexed
docs/adr/0001–0018 (15 files) keep, links repaired Only link targets into the old README anchors and into deleted plans change (permalinks at cc3e68a4); no decision text changes
docs/plans/2026-10-30-snow-sysext-probe-snosi1189.md + evidence keep Open: the control rerun after snosi#1193 republishes
docs/plans/2026-11-04-first-login-probe-runs.md + evidence keep Open: promotion to a gate after the chairlift swap
docs/plans/2026-11-05-problems-probe-runs.md + evidence keep Open: promotion after 3 problems=ok runs
docs/plans/2026-11-05-report-probe-runs.md + evidence keep, untouched Open; #193 changes it. Its 2 links to README.md#manual-snow-bootc-lifecycle now land on the README top; repointed to the spec after #193 merges
docs/plans/2026-10-26-snow-bootc-lifecycle-run.md, 2026-10-28-floe-…, 2026-10-30-sundog-…, 2026-11-03-snowfield-…, 2026-11-04-snowfield-… (lifecycle runs) delete Done: results recorded, PASS or a finding closed by snosi#1214 and the known-defect list. The open question "Spec transport after stage" moved to docs/roadmap.md Open questions 5; the qa-controlled warning (never delete it in the GHCR UI) moved to docs/ops/operating.md
2026-10-28-snow-sysext-probe-run.md, 2026-10-29-snow-sysext-probe-lab142.md delete Done: lab#142 and snosi#1189 (via #1193) closed. The 3 open product findings of the 2026-10-28 probe (maild --lodge without the lodge user, frostnotes-lodge.socket in the enable boot, start limits after a live enable) moved to frostyard/snosi#1245 and docs/roadmap.md Open question 6
2026-10-29-sundog-fresh-install-rerun.md, 2026-11-01-sundog-bootc117-lifecycle-run.md delete Done: ADR-0013 and ADR-0014 hold the fix; lab#174 and lab#177 closed
2026-11-05-lockdown-1214-lifecycle-runs.md delete Done: snosi#1214 proven; docs/quality.md keeps the result with a permalink
Their 10 evidence directories (39 files) delete, 7 moved The 7 manifest.json files and the Snowfield rerun record that tests read → tests/fixtures/run-records/ (with a README: frozen, never edit)
docs/README.md edit Index: 3 designs, 1 spec, ops/operating.md; 10 deleted plans removed
docs/org-adrs.md edit Adds core ADR-0025, 0029, 0043, 0044, 0068, 0070 (exempt), 0071, 0072, 0073
docs/quality.md, docs/roadmap.md, docs/ops/bootstrap.md, docs/review-rubric.md edit Links repaired; roadmap Open question 5; "agree with README.md" → docs/design/
docs/SECURITY-AI.md, docs/risk-tiers.md, docs/claude-code-review.md, docs/ai-fix-workflow.md, docs/metrics/ keep Indexed governance docs
CONTRIBUTING.md edit Links the architecture doc; new "The make gate" section
SECURITY.md add B14
LICENSE keep MIT (B10)
Makefile, mise.toml, mise.lock add B4
scripts/check-template.mjs, scripts/check-corrections.mjs, scripts/lib/risk-paths.mjs, test/check-template.test.mjs add Template gate copies
tests/test_risk_paths.py add Guard for the risk-path list
tests/test_make_gate.py add Guard: both Node test targets fail on an empty glob; verify runs every part, ci runs verify
tests/test_*_lifecycle.py, tests/test_snow_lifecycle_preflight.py (5 files) edit Path constants only, to the fixtures; the lane-docs test reads the spec file instead of the README section
.github/workflows/ci.yml edit B12, B5
.github/workflows/risk-paths.yml, .github/risk-paths.json add B6
.github/dependabot.yml add B13
.github/pull_request_template.md rewrite B7
.github/prompts/ (3 of 6 files) edit They named README sections that moved
.github/workflows/ (other 7), .github/ISSUE_TEMPLATE/, .github/labeler.yml, .github/auto-qa-tuning.json keep Live configuration; B5 gaps in pages.yml and labeler.yml go to #194
.editorconfig, .prettierrc, .gitignore, .coverage-thresholds.json, pytest.ini, requirements-test.txt, package.json, package-lock.json, playwright.config.ts keep Live tool configuration
policies/ keep Governance as code; unchanged

Counts: docs/plans/ goes from 74 tracked files to 25: 49 leave it (10 plans and 39 evidence files; 41 deleted, 8 moved to fixtures). 22 files added (5 docs; 17 gate, guard, fixture and config files), 1 file deleted outside docs/plans/ (.memory/.gitkeep).

Baseline rows

Row State Why
B1 Instruction surface done AGENTS.md regular file; CLAUDE.md, GEMINI.md, .cursorrules, .github/copilot-instructions.md mode 120000 to it
B2 Corrections inbox done 13 lines pass check-corrections.mjs; make ci BASE= adds the append-only check
B3 Docs shape done 4 categories with TEMPLATE.md, docs/org-adrs.md linked; the gate checks that every doc is indexed (37 docs, 46 links)
B4 Make gate and tool pins done verify, check, ci (ci runs verify); mise.toml, mise.lock
B5 Pinned, least-privilege actions partly; follow-up #194 Every uses: is a SHA with a version comment, so the row's check passes; every checkout sets persist-credentials: false; ci.yml now has permissions: {}. Not done: pages.yml and labeler.yml grant write at the top level. #194 moves them to the jobs in a separate PR, because no pull request can exercise the Pages deploy or the issue labeler
B6 Risk paths done List and caller; the deploy paths (Argo CD sources, argocd/, pages.yml) are listed; tests/test_risk_paths.py checks it
B7 PR template done ## Risk tier
B8 svu versions exempt No go.mod
B9 Tool documentation site exempt The spec exempts lab: its Astro site is a QA dashboard, not tool documentation (ADR-0070 does not bind it)
B10 License done MIT; gh api reports MIT
B11 Go toolchain exempt No go.mod
B12 CI entry done ci.yml job Repository gate runs make ci on pull_request, push to main and merge_group
B13 Dependabot done github-actions, npm /, npm /site, pip /; no other manifest
B14 Security policy done Links https://github.com/frostyard/lab/security; states supported versions; private vulnerability reporting is on
B15 No CODEOWNERS done None in the tree
B16 No leftover framework trees done None; .claude/ holds only settings.json, skills, session-summary.md
B17 README done Kind infrastructure; core's check-readme.mjs at origin/main prints ok README.md (infrastructure, 565 words)

Risk tier

  • Tier: High
  • Rationale: the PR touches risk paths of the new list (the base has no list yet, so the label workflow does not run on this PR):
    • .github/workflows/ci.yml: the jobs above; triggers keep pull_request, push to main and workflow_dispatch, add merge_group; permissions narrow to {} at the top and contents: read per job. No secrets.
    • .github/workflows/risk-paths.yml, .github/risk-paths.json: new; the caller is the template copy (pull_request_target, checks out nothing, pull-requests: write only to set the label).
    • Makefile, scripts/check-*.mjs, scripts/lib/**, mise.toml, mise.lock: the gate and its pin.
    • Not touched: argo/, manifests/, argocd/, Justfile, policies/, scripts/collect_runs.py, the dev-submit scripts, pytest.ini, .coverage-thresholds.json. Argo CD has nothing new to sync.
  • Rollback: revert the commit. Nothing reaches the cluster.

Validation

  • make ci BASE=origin/main (Node 24.22.2 from mise, Python 3.13 with requirements-test.txt), at a0e07d70: exit 0. Template gate: agent-symlinks: 5 symlinks resolve, docs-index: 37 docs indexed, 46 index links resolve, risk-paths: 17 entries, list and caller listed, corrections: 13 lines, vendored: 2 pinned core copies match; Node tests 26 pass, 0 fail (they include the gate's deliberate failing cases); Agent governance policy passed; pytest 1897 passed, coverage 87.88 % (gate 65 %); site tests 24 pass; corrections: 13 lines, append-only vs origin/main.
  • node <core origin/main>/.agents/skills/frostyard-readme/scripts/check-readme.mjs .: ok README.md (infrastructure, 565 words).
  • Link check of every relative link in docs/ and tests/fixtures/ (427 links, 44 files): no link broken by this PR; the pre-existing broken ones (template placeholders, 2 retired secure-lane files) are unchanged.
  • Verbatim check: every content line of the 5 moved README sections is in its new file.
  • The 6 template copies are byte-identical to bketelsen/agentic-template@05e8f5d.
  • Fixture moves are renames with 100 % similarity (git diff --cached -M --summary).
  • Revert test: exempt (docs, config and a copied gate; no product behavior; the gate's failing cases are in test/check-template.test.mjs).

Follow-ups

Cross-review

Reviewer openai/gpt-6.1-sol; coders deepseek/deepseek-flash (doc moves, plan deletions, test path constants) and anthropic/claude-opus-5.5 (gate, README, the rest). Base cc3e68a4.

  • Initial review at 4ad64f08 (4 batches of at most 20 files: gate and config; README and moved docs; link repairs and prompts; the 10 deleted plans at the base. Template copies checked byte-identical, mise.lock checked for versions, fixture renames checked 100 %): Not ready, 2 blockers.
    1. Makefile verify-template: node --test test/*.test.mjs passes when the glob matches nothing (ADR-0010). Fixed in a0e07d70: the recipe fails first on an empty glob, as verify-site does. Guard: tests/test_make_gate.py, 1 corrections line.
    2. The deleted 2026-10-28-snow-sysext-probe-run.md held 3 open product findings found nowhere else. Fixed in a0e07d70: sysext: maild and notesd live enable leaves frostmail and frostnotes-lodge failed until a reboot snosi#1245 and docs/roadmap.md Open question 6. Guard: AGENTS.md rule (before a plan is deleted, each open question or live finding goes to the roadmap or a tracking issue), 1 corrections line.
  • Re-review 1 at a0e07d70: Ready, Blocking: none. No new findings.

Revert test for blocker 1 (scratch worktree at a0e07d70, both glob guard lines removed from Makefile): pytest tests/test_make_gate.py → 2 failed, 3 passed (test_node_test_targets_fail_when_their_glob_matches_nothing[verify-template-…] and [verify-site-…] fail on the FAIL: no files match assertion); with the guards, 5 passed. The worktree was removed.

Hold the repository to core's repository baseline
(docs/specs/repository-baseline.md, ADR-0071) and its README standard
(ADR-0072). No product change: argo/, manifests/, argocd/, site/ and the
lane scripts are unchanged.

- Make gate (B4, B12): Makefile with verify, check and ci; mise.toml and
  mise.lock pin Node 24.22.2; ci.yml job "Repository gate" runs make ci.
- Template gate copied from bketelsen/agentic-template@05e8f5d: agent
  symlinks, docs index, risk-path list, corrections, vendored core copies.
- B1: GEMINI.md and .claude/skills symlinks. B2: .memory/README.md.
- B6: .github/risk-paths.json and its caller; each why names a protected
  boundary of policies/agent-governance.json (tests/test_risk_paths.py).
- B7: PR template risk tier section. B13: dependabot.yml. B14: SECURITY.md.
- B17: README.md rewritten to the infrastructure kind; its detail moved
  verbatim to docs/design/ (architecture, vm-lanes, reporting),
  docs/specs/bootc-lifecycle-lane.md and docs/ops/operating.md.
- docs/plans/ keeps open work only: 10 done run plans deleted (git keeps
  them); the run records that tests read move to tests/fixtures/run-records/.
…ings

- Makefile: verify-template fails when test/*.test.mjs matches no file, as
  verify-site does for site/test/ (ADR-0010). Guard: tests/test_make_gate.py.
- docs/roadmap.md Open question 6: the 3 open findings of the retired
  2026-10-28 sysext probe plan, tracked in frostyard/snosi#1245.
- AGENTS.md: before a plan is deleted, each open question or live finding
  goes to the roadmap or a tracking issue.
- .memory/corrections.jsonl: 2 lines from the cross-review.
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 6, 2026
@bketelsen
bketelsen merged commit ec9373b into main Nov 6, 2026
4 checks passed
@bketelsen
bketelsen deleted the murbella/baseline branch November 6, 2026 10:37
bketelsen pushed a commit that referenced this pull request Nov 6, 2026
…205)

The lane's field contract moved from README.md to
docs/specs/bootc-lifecycle-lane.md in #195; the README anchor
#manual-snow-bootc-lifecycle no longer exists.

Co-authored-by: frostyard-machines <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants