Repository navigation
chore: bring the repository to core's baseline (ADR-0071) - #49
Merged
Merged
Conversation
Add the files of core's repository baseline (frostyard/core ADR-0071, docs/specs/repository-baseline.md) that lodge lacked: the .cursorrules alias, the risk-path list and its caller (ADR-0068), the PR template, Dependabot, SECURITY.md, and a README in the service kind of core's README spec (ADR-0072). internal/workflowcheck now checks the files of rows B1, B2, B6 and B13. No product code changes.
…emaining auth, credential and migration files A required path that is missing still matched a wide glob such as .github/workflows/**, so the guard passed without the caller. The list now also covers lodge's daemon wiring, lodgectl's provider login, the kit's private JSON-RPC socket and socket-rule checks, and the store's migration runner.
bketelsen
approved these changes
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 lodge to core's repository baseline (frostyard/core ADR-0071,
docs/specs/repository-baseline.md, rows B1 to B17), as bketelsen/truenas-mcp#52, frostyard/frostmail#170 and frostyard/frostnotes#131 do for theirs. lodge already had most of it:AGENTS.mdwith 3 of its 4 links, the docs shape, the gate triad, pinned actions,.svu.yml, MIT and the corrections inbox. This PR adds what was missing, guards it with Go tests ininternal/workflowcheck(whichmake verifyruns), and rewrites the README to core's README standard (ADR-0072, row B17). The test file is frostnotes#131's, with lodge's governed paths.This PR changes no product code and no behaviour:
git diff origin/main --stat -- '*.go' go.mod go.sum kit cmd client ui shell packaging dev Makefile mise.toml mise.locklists onlyinternal/workflowcheck/(1 new_test.gofile and itsdoc.gocomment). The kit, the client and the UI package are unchanged, so the apps that pin them (frostnotes, frostmail, frostread, Porter) are not touched..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..github/risk-paths.json(27 entries) and the caller.github/workflows/risk-paths.yml, byte-identical to the template's (core's reusable workflow at1b02a12, the latest commit of that workflow;permissions: {}). The labelrisk:highnow exists in this repository..github/pull_request_template.md: frostnotes' version, with lodge's gates in Verification (make check, the nsl frontend checks,make race/cross,make deb,make vulncheck, and the apps that pin the libraries)..github/dependabot.yml:github-actions,gomod(/,/kit) andnpm(/client,/ui,/shell), weekly and grouped, withci:/build:prefixes so that svu reads them as patches.SECURITY.md: private vulnerability reporting at https://github.com/frostyard/lodge/security; only the latest release of each series (vX.Y.Z,kit/,client/,ui/) gets fixes. Private vulnerability reporting is on (gh api repos/frostyard/lodge/private-vulnerability-reportinggivesenabled: true).README.mdin theservicekind (below).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, credential, auth, socket-admission and migration paths exist and are listed, and no glob is stale) and B13 (eachgo.mod,package.json,Cargo.tomlorDockerfilehas its Dependabot entry).AGENTS.mdgets a "Repository baseline" section, the new link, and 2 corrections: Dependabot now exists, andmake cirunsui-checktoo.docs/org-adrs.mdlists the core ADRs that bind the repository now (0011, 0012, 0018, 0019, 0053, 0058, 0068, 0070, 0071, 0072, 0073 added).Not copied: the template's Node gate
As in frostmail#170 and frostnotes#131,
scripts/check-template.mjsis not copied: lodge runs no Node on the host (AGENTS.md, Gates), andmake verifyis a host gate thatmake bumpalso runs.internal/repocheckalready checks the docs' links and index in Go. The baseline rows do not ask for it. I ran core's own scripts atorigin/mainon the new files, in an nsl machine:node scripts/check-risk-paths.mjs --root <worktree> --caller .github/workflows/risk-paths.ymlgivesok risk_paths: 27 entries, andnode scripts/check-corrections.mjs --root <worktree>givesok corrections: 3 lines.README (B17)
Kind:
service(core's README spec lists lodge under it). Checker, from core atorigin/main(node .agents/skills/frostyard-readme/scripts/check-readme.mjs), in an nsl machine:Before (
--ref origin/main):After:
ok README.md (service, 503 words).What it does, each with a link to its spec or designWhat it does(the libraries) andInterfaceAGENTS.md(Status, Releases and dependencies) and the roadmap; the status line keeps "pre-release" and the apps that run behind itDevelop(requirements and 4 make targets)Develop:mise install,make check,make ci;make helplists the rest (vulncheck,build)LicenseWhere to go nextInterfacedocs/specs/lodge-http.md, RoutesDeploypackaging/README.md, the runbook (install, update, roll back, release)Inventory
Every file that is not product code, with its verdict.
AGENTS.md.cursorrules, the baseline in the Map line ofinternal/workflowcheck, a "Repository baseline" section, and corrects the Dependabot andmake cilinesCLAUDE.md,GEMINI.md,.github/copilot-instructions.mdAGENTS.md.cursorrules.claude/skills,.agents/skills/TEMPLATE/SKILL.md.agents/skills/new-lodge-app/internal/scaffoldcheck; itspackagingtemplates are inrisk-paths.json.memory/corrections.jsonlTestCorrectionsInboxdocs/README.md,docs/adr/(20 + template),docs/design/(1 + template),docs/specs/(6 + template),docs/plans/(1 + template)internal/repocheckchecks the links and the indexdocs/org-adrs.mdREADME.mdclient/README.md,client/CHANGELOG.md,ui/README.md,ui/CHANGELOG.md,shell/README.mdLICENSE(MIT)SECURITY.md.github/pull_request_template.md.github/dependabot.yml.github/risk-paths.json,.github/workflows/risk-paths.yml.github/workflows/{ci,release}.ymlTestWorkflowsFollowADR0021holds itMakefile,mise.toml,mise.lock,.svu.yml,.golangci.yml,.gitignoredev/(nsl/provision.sh,e2e.sh,fakeapp/)AGENTS.mdandmakeuse.provision.shruns as root: listed inrisk-paths.jsonpackaging/risk-paths.jsonCounts: 7 new files (1 of them a symlink; 1 a test file), 5 edited (
AGENTS.md,README.md,docs/org-adrs.md,internal/workflowcheck/doc.go,.memory/corrections.jsonl), 0 moved, 0 deleted. lodge 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 race cross client-check ui-check shell-check);mise.toml,mise.lockuses:is a 40-character SHA with a version comment; top-levelpermissions: {};persist-credentials: false;TestWorkflowsFollowADR0021. The new caller follows itinternal/{workflowcheck,repocheck,packagecheck}), publication (release.yml,.svu.yml, the.deb, its check andinstall.sh, the system unit, sysusers.d and tmpfiles.d entries, the app unit templates inpackaging/app-template/and the new-lodge-app skill), update verification (dev/nsl/provision.sh, root), secrets and credentials (internal/{codexauth,copilotauth}, the inference layer's provider keys and socket), auth (MCP tokens, tailnet, WhoIs, allow-lists, sessions, the gateway's route checks, headers, proxy and files, the agent and control sockets, the app socket uid check, the daemon's wiring incmd/lodge/main.go, the development build's fixed identity and its release guard, the kit's socket peer check, private JSON-RPC socket, socket-rule checks, MCP session binding, manifest andnetguard), secrets and credentials alsocmd/lodgectl/login.go, destructive operations (internal/store/store.go,internal/store/migrations/**);TestRiskPaths,TestMissingPaths,TestWhyCategory,TestValidGlob,TestMatchGlob## Risk tier.svu.yml, no.svu.yaml;make bumptagssvu nextfrostyard-docs-siteskill)gh api … .license.spdx_id=MIT)go 1.27.1(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 onpull_requesteach prerequisite ofci:asmake verify,make race,make cross,make client-check,make ui-checkandmake shell-check(the frontends withIN_NSL='sh -c'); thecirecipe has no commandsTestDependabotCoversManifestsSECURITY.mdlinks/security; private vulnerability reporting is on.claude/holds onlyskillsok README.md (service, 503 words)Follow-ups: B9 (docs site), in a separate PR. No B11 bump is due.
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..memory/corrections.jsonlis not on the list; it gets 2 appended lines.No other workflow, the Makefile, the mise pins, or any packaging, credential, auth or kit file changes.
Docs housekeeping
docs/;docs/org-adrs.mdstays indexedAGENTS.mdis edited insteadVerification
make check: exit 0 (tidy, vet with and withoute2e, gofmt, golangci-lint 2.15.00 issues.in both modules, all tests)go test -count=1 -v -run 'TestInstructionAliases|TestCorrection|TestRiskPaths|TestMatchGlob|TestValidGlob|TestWhyCategory|TestDependabot' ./internal/workflowcheck/: pass; the tests log3 corrections lines,27 globs; 68 required paths listed; 316 files searched,5 manifests, 6 Dependabot entries93a6ccc, restored after each case and removed withgit worktree remove;go test -count=1 -run <test> ./internal/workflowcheck/):internal/tokens/**removed:internal/tokens/tokens.go is a release, secrets, auth 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"./kitgomod entry removed:kit/go.mod has no Dependabot entry (package-ecosystem gomod, directory /kit)..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.headersdropped from the gateway glob:internal/gateway/headers.go is a release, secrets, auth or governance path; ….security::it must start with 1 of the categories … and a colon..github/workflows/risk-paths.ymldeleted:.github/workflows/risk-paths.yml is missing; the repository must have it, and .github/risk-paths.json must list it.fd04642, restored and removed withgit worktree removeafter): with.github/risk-paths.jsonof93a6cccand the new tests kept,TestRiskPathsfails on the 7 newly required paths (cmd/lodge/main.go,cmd/lodgectl/login.go,kit/jsonrpc/listen_linux.go,kit/jsonrpc/listen_other.go,kit/kittest/kittest.go,kit/kittest/rules.go,internal/store/store.go); with the caller deleted, it fails with… is missing; with the test file of93a6cccand the caller deleted, it passed (the gap the fix closes).check-risk-paths.mjs,check-corrections.mjsandcheck-readme.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. Base0e9057f.93a6ccc(all 11 files, 1 batch): Not ready, 2 blocking points. Fixed infd04642, each with its guard and 1 line in.memory/corrections.jsonl:cmd/lodge/main.go,cmd/lodgectl/login.go,kit/jsonrpc/listen_linux.go,internal/store/store.go): listed, withlisten_other.goandkit/kittest/{kittest,rules}.go, which a grep for peer checks, file modes, credentials and migrations also found;governedPathsrequires all 7..github/workflows/**matched a deleted caller):missingPathsandTestMissingPathsnow require each path to exist.fd04642: Ready, Blocking: none.