Skip to content

chore: bring the repository to core's baseline (ADR-0071) - #131

Merged
bketelsen merged 3 commits into
mainfrom
irulan/baseline
Nov 6, 2026
Merged

bketelsen merged 3 commits into
mainfrom
irulan/baseline

Conversation

@frostyard-machines

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

Copy link
Copy Markdown
Contributor

Summary

Brings frostnotes to core's repository baseline (frostyard/core ADR-0071, docs/specs/repository-baseline.md, rows B1 to B16), as bketelsen/truenas-mcp#52 and frostyard/frostmail#170 did. Frostnotes already had most of it: AGENTS.md with 3 of its 4 links, the docs shape, the gate triad, pinned actions, .svu.yml, MIT. This PR adds what was missing and guards it with Go tests in internal/workflowcheck, which make verify runs. The test file is frostmail#170's, with frostnotes' governed paths.

This PR changes no product code and no behaviour: git diff origin/main --stat -- '*.go' go.mod go.sum cmd api app schema tools packaging scripts dev Makefile mise.toml mise.lock lists only internal/workflowcheck/ (1 new _test.go file and its doc.go comment). lodge's side is unchanged: no file under packaging/lodge/ or the app changes.

  • B1: .cursorrules is a new relative symlink to AGENTS.md, beside CLAUDE.md, GEMINI.md and .github/copilot-instructions.md. .claude/skills already links to .agents/skills/, whose TEMPLATE/SKILL.md is byte-identical to bketelsen/agentic-template.
  • B2: .memory/corrections.jsonl is new. Its first 3 lines are the blocking points of frostnotes#126's cross-review (the test-name filter guard), and 3 more are this PR's review fixes, each with the test that guards it.
  • B6: .github/risk-paths.json (22 entries) and the caller .github/workflows/risk-paths.yml, byte-identical to the template's (core's reusable workflow at 1b02a12, permissions: {}, with the version comment). I created the label risk:high in this repository.
  • B7: .github/pull_request_template.md: frostmail's version, with frostnotes' gates in Verification (make check, the nsl app targets, make vault-it, make sync-sim, make gen, make flatpak-sources).
  • B13: .github/dependabot.yml: github-actions, gomod (/), npm (/app) and cargo (/app/src-tauri), weekly and grouped, with ci:/build: prefixes so that svu reads them as patches.
  • B14: SECURITY.md: private vulnerability reporting at https://github.com/frostyard/frostnotes/security; only the latest release gets fixes. Private vulnerability reporting is on (gh api repos/frostyard/frostnotes/private-vulnerability-reporting gives enabled: true).
  • Guard: internal/workflowcheck/baseline_test.go checks B1 (the 4 links are relative and resolve to AGENTS.md; .claude/skills), B2 (each corrections line follows core's check-corrections.mjs rules), B6 (strict parse, core's glob validator and matcher, each why names a category of core's risk-paths spec, every workflow and the release, secrets, auth and sanitizer paths are listed, and no glob is stale) and B13 (each go.mod, package.json, Cargo.toml or Dockerfile has its Dependabot entry).
  • AGENTS.md gets a "Repository baseline" section and the new link; docs/org-adrs.md lists the core ADRs that bind the repository now (0012, 0018, 0019, 0053, 0058, 0068, 0070, 0071 added).

Not copied: the template's Node gate

As in frostmail#170, scripts/check-template.mjs is not copied: frostnotes runs no Node on the host (AGENTS.md, Gates), and make verify is a host gate that make bump also runs; its docs-index check would refuse the task-card loop's files under docs/tasks/ (ADR-0010); and the baseline rows do not ask for it. The Go tests check the same B1, B2 and B6 facts in the repository's own gate, plus B13. I ran core's own scripts at origin/main on the new files in the nsl machine: node scripts/check-risk-paths.mjs --root <worktree> --caller .github/workflows/risk-paths.yml gives ok risk_paths: 22 entries, and node scripts/check-corrections.mjs --root <worktree> gives ok corrections: 6 lines.

Inventory

Every file that is not product code, with its verdict.

File or group Verdict Why
AGENTS.md keep, edited The canonical file. Adds .cursorrules, the baseline in the Map line of internal/workflowcheck, and a "Repository baseline" section
CLAUDE.md, GEMINI.md, .github/copilot-instructions.md keep Relative symlinks to AGENTS.md
.cursorrules add B1 symlink
.claude/skills, .agents/skills/TEMPLATE/SKILL.md keep The skills alias (ADR-0029); the template is byte-identical to agentic-template
.memory/corrections.jsonl add B2: 3 lines from frostnotes#126's review, 3 from this PR's
opencode.json keep The executor configuration of the task-card loop: docs/design/agent-workflow.md and ADR-0010 name it (EXECUTOR=opencode). It is not a B16 tree
docs/tasks/ (EXECUTOR.md, TEMPLATE.md, doing/, done/ and their _given/ tests) keep Frostnotes' own task-card loop (ADR-0010), run by tools/taskrun (make task). The record of that tool, not another framework's tree
docs/README.md, docs/adr/, docs/design/, docs/specs/, docs/plans/ (each with TEMPLATE.md), docs/images/ keep Already the ADR-0025 shape, indexed
docs/org-adrs.md keep, edited Lists the binding core ADRs (B3)
README.md, LICENSE (MIT) keep Community files; B10
SECURITY.md add B14
.github/pull_request_template.md add B7
.github/dependabot.yml add B13
.github/risk-paths.json, .github/workflows/risk-paths.yml add B6
.github/workflows/{ci,flatpak,release}.yml keep Unchanged; B5 is met and TestPinnedReferencesAreImmutable holds it
Makefile, mise.toml, mise.lock, .svu.yml, .golangci.yml, .gitignore keep Unchanged; B4, B8, B11 are met
dev/nsl/provision.sh, dev/screenshots/ (driver and made-up vault) keep Development tooling that AGENTS.md and make use; the vault is made up. provision.sh runs as root: listed in risk-paths.json
packaging/, scripts/ keep Release, install and move files; listed in risk-paths.json where they touch publication, privileges or data

Counts: 8 new files (1 of them a symlink; 1 a test file), 3 edited (AGENTS.md, docs/org-adrs.md, internal/workflowcheck/doc.go), 0 moved, 0 deleted. Frostnotes has none of the framework trees that B16 names (docs/superpowers/, .planning/, .cursor/, .gaai/, yeti/, cairn/, docs/agents/).

Baseline rows

Row Status Evidence or reason
B1 Instruction surface done 4 relative symlinks to AGENTS.md; TestInstructionAliases
B2 Corrections inbox done 3 valid lines; TestCorrectionsInbox, TestCorrectionProblems follow core's line rules
B3 Docs shape met docs/README.md, the 4 categories with TEMPLATE.md, docs/org-adrs.md linked from the index; org-adrs.md brought up to date
B4 Make gate and tool pins met verify, check, ci (ci: verify …); mise.toml, mise.lock
B5 Pinned, least-privilege actions met Every uses: is a 40-character SHA with a version comment; top-level permissions: {} (flatpak.yml: contents: read); persist-credentials: false; TestPinnedReferencesAreImmutable. The new caller follows it
B6 Risk paths done 22 entries: governance (the list, workflows, Makefile, mise pins, internal/{workflowcheck,repocheck}), publication (release and flatpak workflows, .svu.yml, the Flatpak manifest, launcher, version stamp and Background helper, the .deb and its check, the system units and user, packaging/lodge/**), destructive operations (scripts/move-hub-behind-lodge.sh, internal/store/migrations/**), update verification (dev/nsl/provision.sh, root), secrets (internal/secrets/**), auth (the hub's token, pairing, withdraw and relocation checks, the device's relocation check, the router's admission, scope and identity in api/, lodge's socket and the MCP HTTP token check, the dev gateway and signed blob URLs, both sanitizers, the CSP and capabilities, open.rs, the vault path check and folder-scope guard); TestRiskPaths, TestWhyCategory, TestValidGlob, TestMatchGlob
B7 PR template done Has ## Risk tier
B8 svu versions met .svu.yml, no .svu.yaml; make bump tags svu next
B9 Tool documentation site follow-up A separate PR (core ADR-0070, the frostyard-docs-site skill)
B10 License met MIT (gh api … .license.spdx_id = MIT)
B11 Go toolchain met go 1.27.0 (toolchain go1.27.3), golangci-lint = "2.15.0", as the frostyard-go-repo skill's Fleet toolchain names; no other pin. No bump PR is due
B12 CI entry met Separate jobs, as the amended row allows (core ADR-0073, frostyard/core#211): ci.yml runs each prerequisite of ci: on pull requests (make verify, make ui-check, make app-build, make app-test, with IN_NSL='sh -c') and its recipe command go test -race -timeout 25m ./... exactly
B13 Dependabot done 4 entries; TestDependabotCoversManifests
B14 Security policy done SECURITY.md links /security; private vulnerability reporting is on
B15 No CODEOWNERS met None
B16 No leftover framework trees met None; .claude/ holds only skills

Follow-ups: B9 (docs site). No B11 bump.

Risk tier

Risk tier: 3. The PR adds a workflow and the risk-path list. The base has no .github/risk-paths.json, so the label workflow does not run on this PR. These paths match the new list:

  • .github/risk-paths.json: the new list. Core's validator passes it.
  • .github/workflows/risk-paths.yml (also .github/workflows/**): a byte-identical copy of the template caller. It runs on pull_request_target with permissions: {} at the top and contents: read, pull-requests: write for the job, calls core's reusable workflow at a full SHA, and checks out no code.
  • internal/workflowcheck/**: 1 new test file and the package comment. Tests only; no existing test changes.

No other workflow, the Makefile, the mise pins or any packaging, secrets, auth or sanitizer file changes.

Docs housekeeping

  • No new doc under docs/; docs/org-adrs.md stays indexed
  • Conformance alias added as a symlink; the canonical AGENTS.md is edited instead

Verification

  • make check: exit 0 (tidy, gen-check, vet, gofmt, golangci-lint 2.15.0 0 issues., unit tests)
  • go test -count=1 -v -run 'TestInstructionAliases|TestCorrection|TestRiskPaths|TestMatchGlob|TestValidGlob|TestDependabot' ./internal/workflowcheck/: pass; the tests log 6 corrections lines, 22 globs; 41 required paths listed; 934 files searched, 3 manifests, 4 Dependabot entries
  • Each guard fails on purpose (scratch worktree at 9bd07ac, restored after each case and removed with git worktree remove; go test -count=1 -run <test> ./internal/workflowcheck/):
    1. internal/secrets/** removed: internal/secrets/secretservice.go is a release, secrets or governance path; .github/risk-paths.json must list it.
    2. A glob nothing/here/** added: glob "nothing/here/**" matches no file in the repository.
    3. A member extra added to the list: unknown object member name "extra".
    4. The cargo Dependabot entry removed: app/src-tauri/Cargo.toml has no Dependabot entry (package-ecosystem cargo, directory /app/src-tauri).
    5. .cursorrules as a copy: .cursorrules is not a symlink; as an absolute link: links to the absolute path … it must be relative.
    6. A sixth member in a corrections line: line 1: unknown key(s): extra.
    7. internal/render/sanitize.go dropped from its glob: internal/render/sanitize.go is a release, secrets or governance path; ….
  • Revert test of the review fixes (scratch worktree at 7c1209a, removed after): with .github/risk-paths.json of 9bd07ac and the new tests kept, TestRiskPaths fails on the 2 security: whys and on the 11 newly required paths (dev/nsl/provision.sh, internal/hub/withdraw.go, internal/hub/relocate.go, internal/syncer/relocate.go, api/api.go, api/conn.go, internal/mcpserver/http.go, internal/devgw/devgw.go, internal/devgw/blobs.go, internal/blobhttp/blobhttp.go, app/src-tauri/src/open.rs).
  • Core's check-risk-paths.mjs and check-corrections.mjs at origin/main pass (nsl)
  • git diff origin/main -- '*.go' go.mod go.sum shows only internal/workflowcheck/

Cross-review

  • Coder: Claude Opus (github-copilot/claude-opus-5.5). Reviewer: openai/gpt-6.1-sol. Base 503fef3.
  • Initial review of 9bd07ac (all 11 files, 1 batch): Not ready, 3 blocking points. Fixed in fade716 and 7c1209a, each with its guard and 1 line in .memory/corrections.jsonl:
    1. Auth coverage was incomplete (the router's admission, the hub's withdraw and relocation checks, the dev gateway, signed blob URLs, the MCP HTTP token check, open.rs): listed; governedPaths requires them.
    2. dev/nsl/provision.sh (root, installs downloads) was missing: listed as update verification; governedPaths requires it.
    3. 2 whys used security:, which core's spec does not name: now auth:; whyCategory and TestWhyCategory require a spec category.
  • Re-review 1 of 7c1209a: Ready, Blocking: none.

Adds the .cursorrules symlink (B1), the corrections inbox (B2), the risk-path list and its caller (B6), the PR template (B7), Dependabot (B13) and SECURITY.md (B14). internal/workflowcheck/baseline_test.go guards B1, B2, B6 and B13 in make verify. No product code changes.
…cript as risk paths; require a spec category in each why
@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 ba7c788 into main Nov 6, 2026
9 checks passed
@bketelsen
bketelsen deleted the irulan/baseline branch November 6, 2026 04:15
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