Repository navigation
chore: bring the repository to core's baseline (ADR-0071) - #131
Merged
Merged
Conversation
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
bketelsen
approved these changes
Nov 6, 2026
This was referenced Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdwith 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 ininternal/workflowcheck, whichmake verifyruns. 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.locklists onlyinternal/workflowcheck/(1 new_test.gofile and itsdoc.gocomment). lodge's side is unchanged: no file underpackaging/lodge/or the app changes..cursorrulesis a new relative symlink toAGENTS.md, besideCLAUDE.md,GEMINI.mdand.github/copilot-instructions.md..claude/skillsalready links to.agents/skills/, whoseTEMPLATE/SKILL.mdis byte-identical to bketelsen/agentic-template..memory/corrections.jsonlis 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..github/risk-paths.json(22 entries) and the caller.github/workflows/risk-paths.yml, byte-identical to the template's (core's reusable workflow at1b02a12,permissions: {}, with the version comment). I created the labelrisk:highin this repository..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)..github/dependabot.yml:github-actions,gomod(/),npm(/app) andcargo(/app/src-tauri), weekly and grouped, withci:/build:prefixes so that svu reads them as patches.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-reportinggivesenabled: true).internal/workflowcheck/baseline_test.gochecks B1 (the 4 links are relative and resolve toAGENTS.md;.claude/skills), B2 (each corrections line follows core'scheck-corrections.mjsrules), B6 (strict parse, core's glob validator and matcher, eachwhynames 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 (eachgo.mod,package.json,Cargo.tomlorDockerfilehas its Dependabot entry).AGENTS.mdgets a "Repository baseline" section and the new link;docs/org-adrs.mdlists 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.mjsis not copied: frostnotes runs no Node on the host (AGENTS.md, Gates), andmake verifyis a host gate thatmake bumpalso runs; its docs-index check would refuse the task-card loop's files underdocs/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 atorigin/mainon the new files in the nsl machine:node scripts/check-risk-paths.mjs --root <worktree> --caller .github/workflows/risk-paths.ymlgivesok risk_paths: 22 entries, andnode scripts/check-corrections.mjs --root <worktree>givesok corrections: 6 lines.Inventory
Every file that is not product code, with its verdict.
AGENTS.md.cursorrules, the baseline in the Map line ofinternal/workflowcheck, and a "Repository baseline" sectionCLAUDE.md,GEMINI.md,.github/copilot-instructions.mdAGENTS.md.cursorrules.claude/skills,.agents/skills/TEMPLATE/SKILL.md.memory/corrections.jsonlopencode.jsondocs/design/agent-workflow.mdand ADR-0010 name it (EXECUTOR=opencode). It is not a B16 treedocs/tasks/(EXECUTOR.md,TEMPLATE.md,doing/,done/and their_given/tests)tools/taskrun(make task). The record of that tool, not another framework's treedocs/README.md,docs/adr/,docs/design/,docs/specs/,docs/plans/(each withTEMPLATE.md),docs/images/docs/org-adrs.mdREADME.md,LICENSE(MIT)SECURITY.md.github/pull_request_template.md.github/dependabot.yml.github/risk-paths.json,.github/workflows/risk-paths.yml.github/workflows/{ci,flatpak,release}.ymlTestPinnedReferencesAreImmutableholds itMakefile,mise.toml,mise.lock,.svu.yml,.golangci.yml,.gitignoredev/nsl/provision.sh,dev/screenshots/(driver and made-up vault)AGENTS.mdandmakeuse; the vault is made up.provision.shruns as root: listed inrisk-paths.jsonpackaging/,scripts/risk-paths.jsonwhere they touch publication, privileges or dataCounts: 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
AGENTS.md;TestInstructionAliasesTestCorrectionsInbox,TestCorrectionProblemsfollow core's line rulesdocs/README.md, the 4 categories withTEMPLATE.md,docs/org-adrs.mdlinked from the index;org-adrs.mdbrought up to dateverify,check,ci(ci: verify …);mise.toml,mise.lockuses:is a 40-character SHA with a version comment; top-levelpermissions: {}(flatpak.yml:contents: read);persist-credentials: false;TestPinnedReferencesAreImmutable. The new caller follows itinternal/{workflowcheck,repocheck}), publication (releaseandflatpakworkflows,.svu.yml, the Flatpak manifest, launcher, version stamp and Background helper, the.deband 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 inapi/, 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## Risk tier.svu.yml, no.svu.yaml;make bumptagssvu nextfrostyard-docs-siteskill)gh api … .license.spdx_id=MIT)go 1.27.0(toolchaingo1.27.3),golangci-lint = "2.15.0", as thefrostyard-go-reposkill's Fleet toolchain names; no other pin. No bump PR is dueci.ymlruns each prerequisite ofci:on pull requests (make verify,make ui-check,make app-build,make app-test, withIN_NSL='sh -c') and its recipe commandgo test -race -timeout 25m ./...exactlyTestDependabotCoversManifestsSECURITY.mdlinks/security; private vulnerability reporting is on.claude/holds onlyskillsFollow-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 onpull_request_targetwithpermissions: {}at the top andcontents: read,pull-requests: writefor 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
docs/;docs/org-adrs.mdstays indexedAGENTS.mdis edited insteadVerification
make check: exit 0 (tidy, gen-check, vet, gofmt, golangci-lint 2.15.00 issues., unit tests)go test -count=1 -v -run 'TestInstructionAliases|TestCorrection|TestRiskPaths|TestMatchGlob|TestValidGlob|TestDependabot' ./internal/workflowcheck/: pass; the tests log6 corrections lines,22 globs; 41 required paths listed; 934 files searched,3 manifests, 4 Dependabot entries9bd07ac, restored after each case and removed withgit worktree remove;go test -count=1 -run <test> ./internal/workflowcheck/):internal/secrets/**removed:internal/secrets/secretservice.go is a release, secrets or governance path; .github/risk-paths.json must list it.nothing/here/**added:glob "nothing/here/**" matches no file in the repository.extraadded to the list:unknown object member name "extra".app/src-tauri/Cargo.toml has no Dependabot entry (package-ecosystem cargo, directory /app/src-tauri)..cursorrulesas a copy:.cursorrules is not a symlink; as an absolute link:links to the absolute path … it must be relative.line 1: unknown key(s): extra.internal/render/sanitize.godropped from its glob:internal/render/sanitize.go is a release, secrets or governance path; ….7c1209a, removed after): with.github/risk-paths.jsonof9bd07acand the new tests kept,TestRiskPathsfails on the 2security: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).check-risk-paths.mjsandcheck-corrections.mjsatorigin/mainpass (nsl)git diff origin/main -- '*.go' go.mod go.sumshows onlyinternal/workflowcheck/Cross-review
github-copilot/claude-opus-5.5). Reviewer:openai/gpt-6.1-sol. Base503fef3.9bd07ac(all 11 files, 1 batch): Not ready, 3 blocking points. Fixed infade716and7c1209a, each with its guard and 1 line in.memory/corrections.jsonl:open.rs): listed;governedPathsrequires them.dev/nsl/provision.sh(root, installs downloads) was missing: listed as update verification;governedPathsrequires it.security:, which core's spec does not name: nowauth:;whyCategoryandTestWhyCategoryrequire a spec category.7c1209a: Ready, Blocking: none.