Repository navigation
chore: bring the repository to core's baseline (ADR-0071) - #28
Merged
Merged
Conversation
Add the files of frostyard/core's repository baseline (ADR-0071, rows B1 to B17) that porter lacked: the .cursorrules link, the corrections inbox, the risk-path list and its caller, the PR template, Dependabot and SECURITY.md. internal/workflowcheck now tests rows B1, B2, B6 and B13. The root README follows core's README standard (ADR-0072) for the kind service. Its runbook moves unchanged to packaging/README.md, and its limits to the design overview. No product code changes.
…k paths, and keep ADR-0004's 2 modes apart in the README api/rpc.go, api/thread.go and api/activity.go admit callers to each method, and internal/agent/own.go holds the remember tool and the check that a card can be confirmed: they join .github/risk-paths.json, and TestRiskMarkers now fails on any Go file with an admission, unattended tool, file-mode, socket or schema marker that no glob lists. The README said any other change becomes an approval card; only a routine does that (ADR-0004). AGENTS.md now says how to state it.
10 tasks done
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 Porter to core's repository baseline (frostyard/core ADR-0071,
docs/specs/repository-baseline.md, rows B1 to B17), as frostyard/lodge#49 and frostyard/frostnotes#131 do for theirs. Porter already had most of it:AGENTS.mdwith 3 of its 4 links, the docs shape, the gate triad, pinned actions,.svu.ymland MIT. 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 lodge#49's, with Porter's governed paths.This PR changes no product code and no behaviour:
git diff origin/main --stat -- '*.go' go.mod go.sum cmd api internal web packaging/lodge packaging/nfpm.yaml packaging/deb-check.py Makefile mise.toml mise.lock .github/workflows/ci.yml .github/workflows/release.ymllists onlyinternal/workflowcheck/(1 new_test.gofile and itsdoc.gocomment). Porter stays a lodge app; the kit, client and UI pins are unchanged, so lodge's checks are not touched..cursorrulesis a new relative symlink toAGENTS.md, besideCLAUDE.md,GEMINI.mdand.github/copilot-instructions.md..memory/corrections.jsonl, with the 2 lines of this PR's review fixes. Core'scheck-corrections.mjsalso accepts an empty file, and so does the guard..github/risk-paths.json(17 entries) and the caller.github/workflows/risk-paths.yml, byte-identical to lodge's (core's reusable workflow at1b02a12;permissions: {}). The labelrisk:highnow exists in this repository..github/pull_request_template.md: lodge's, with Porter's gates in Verification (make check,make web-check(nsl),make race,make deb,make vulncheck,make lodge-package)..github/dependabot.yml:github-actions,gomod(/) andnpm(/web), weekly and grouped, withci:/build:prefixes so that svu reads them as patches.SECURITY.md: private vulnerability reporting at https://github.com/frostyard/porter/security; only the latestvX.Y.Zrelease and its.debget fixes. Private vulnerability reporting is on (gh api repos/frostyard/porter/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; an empty file is valid), B6 (strict parse, core's glob validator and matcher, eachwhynames a category of core's risk-paths spec, every workflow and each release, credential, auth and migration path exists and is listed, no glob is stale, andTestRiskMarkers: every Go file with a method's callers, the unattended tool set, a file mode, the private socket or the schema matches a glob) and B13 (eachgo.mod,package.json,Cargo.tomlorDockerfilehas its Dependabot entry).AGENTS.mdgets a "Repository baseline" section (with the marker guard and a rule that keeps ADR-0004's 2 modes apart in prose), the new link, the caller in the Map, andpackaging/README.mdas the runbook.docs/org-adrs.mdlists the core ADRs that bind the repository now (0011, 0012, 0018, 0019, 0053, 0058, 0068, 0070, 0071, 0072, 0073 added), and drops a stale paragraph that said CI,mise.tomland the gates did not exist yet.Not copied: the template's Node gate
As in lodge#49 and frostnotes#131,
scripts/check-template.mjsis not copied: Porter runs no Node on the host (AGENTS.md, Gates), andmake verifyis a host gate thatmake bumpalso runs. 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: 17 entries, andnode scripts/check-corrections.mjs --root <worktree>givesok corrections: 2 lines.README (B17)
Kind:
service(core's README spec lists Porter under it). Checker, from core atorigin/main(node .agents/skills/frostyard-readme/scripts/check-readme.mjs), in an nsl machine:Before (
--ref ef2e374,origin/main):After:
ok README.md (service, 608 words).What it does, 6 bullets, each with its ADR, spec or design link/app/porter/, the app contract, kit and client)InterfaceandDeployAGENTS.md's Map holds the same paths in more detailDevelopUpdate,Roll back,After the sysexts,Release(the runbook)packaging/README.md, after a new table of what each packaging file installs as; only the relative links change (docs/…→../docs/…,.github/…→../.github/…).diffof the sections shows no other change.Deploylinks each partLimitsdocs/design/overview.md#limits(links rebased); the README keeps 6 short bullets and links itInterfaceschema/rpcWhere to go nextAGENTS.md,docs/README.md,SECURITY.md,LICENSEThe links to the moved parts are updated:
docs/design/overview.md(Operational notes) anddocs/plans/0001-roadmap.md(the host's update). The roadmap's Deployments table rows are records and keep their text.Inventory
Every file that is not product code, with its verdict.
AGENTS.md.cursorrules, the caller and the runbook in the Map, and a "Repository baseline" sectionCLAUDE.md,GEMINI.md,.github/copilot-instructions.mdAGENTS.md.cursorrules.claude/skills,.agents/skills/TEMPLATE/SKILL.md.memory/corrections.jsonldocs/README.md,docs/adr/(7 + template),docs/design/(1 + template),docs/specs/(1 + template),docs/plans/(1 + template)docs/design/overview.mdpackaging/README.mddocs/plans/0001-roadmap.mddocs/org-adrs.mdREADME.mdpackaging/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,.gitignoreschema/rpc/AGENTS.md: API changes start there)packaging/(lodge/,nfpm.yaml,deb-check.py)risk-paths.jsonweb/config (package.json,pnpm-lock.yaml,pnpm-workspace.yaml,tsconfig.json,vite.config.ts,vitest.config.ts,index.html,public/icon.svg)package.jsonhas its Dependabot entryCounts: 9 new files (1 of them a symlink; 1 a test file), 6 edited (
AGENTS.md,README.md,docs/design/overview.md,docs/org-adrs.md,docs/plans/0001-roadmap.md,internal/workflowcheck/doc.go), 0 deleted. Porter has none of the framework trees that B16 names (docs/superpowers/,.planning/,.cursor/,.gaai/,yeti/,cairn/,docs/agents/).Baseline rows
AGENTS.md;TestInstructionAliasesTestCorrectionsInbox,TestCorrectionsLines,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 web-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,packagecheck}), publication (release.yml,.svu.yml,nfpm.yaml,deb-check.py,packaging/lodge/**: manifest, units, system user,stage.sh), secrets and credentials (internal/config/config.go: the app tokens, their check and 0600 mode;cmd/porterd/main.go:porterd token set, the state directory's mode, the sockets' wiring), auth (cmd/porterd/main_test.go, the kittest socket rules;api/{api,rpc,thread,activity}.goandinternal/rpcserver/server.go, the caller kinds and the callers each method admits;internal/tools/{classify,registry,tools}.go, what each tool may do and the unattended set;internal/agent/{agent,run,own}.go, approval cards, the unattended run, theremembertool and the card confirmation check;internal/routine/parse.go, thePorter/Routines/check), destructive operations (internal/thread/store.go: schema, its column migration and recovery);TestRiskPaths,TestRiskMarkers,TestRiskMarker,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.0(toolchaingo1.27.3),golangci-lint = "2.15.0", as thefrostyard-go-reposkill's Fleet toolchain names; no other pin. A patch bump of thegoline, if wanted, is a separate PR: it can change behaviourci.ymlruns onpull_requesteach prerequisite ofci:asmake verify,make raceandmake web-check(withIN_NSL='sh -c'); thecirecipe has no commandsTestDependabotCoversManifestsSECURITY.mdlinks/security; private vulnerability reporting is on.claude/holds onlyskillsok README.md (service, 608 words)Follow-ups: B9 (docs site) and any B11 toolchain bump, each in a separate PR.
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 lodge's 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 lines.No other workflow, the Makefile, the mise pins, or any packaging, credential, auth or store file changes.
Docs housekeeping
docs/;docs/org-adrs.mdstays indexed.packaging/README.mdis outsidedocs/, as lodge's isAGENTS.mdis edited insteadVerification
make check: exit 0 (tidy, vet, gofmt, golangci-lint 2.15.00 issues., all tests)go test -count=1 -v -run 'TestInstructionAliases|TestCorrection|TestRiskPaths|TestMissingPaths|TestMatchGlob|TestValidGlob|TestWhyCategory|TestDependabot' ./internal/workflowcheck/: pass; the tests log2 corrections lines,17 globs; 38 required paths listed; 124 files searched,17 globs; 10 Go files with a marker,2 manifests, 3 Dependabot entriesgo testrun, file restored):packaging/lodge/**removed:packaging/lodge/app.json is a release, secrets, auth or governance path; .github/risk-paths.json must list it(and 4 more such lines).nothing/here/**added:glob "nothing/here/**" matches no file in the repository./webentry removed:web/package.json has no Dependabot entry (package-ecosystem npm, directory /web)..cursorrulesas a copy:.cursorrules is not a symlink.line 1: unknown key(s): extra.governedPathswithout the 4 new files:TestRiskMarkersfails withapi/thread.go has []CallerKind{ (an auth, credential or schema check); .github/risk-paths.json must list it(andapi/activity.go,api/rpc.go).97ccb85,.github/risk-paths.jsonof7374d10,go test -count=1 -run 'TestRiskPaths|TestRiskMarkers' ./internal/workflowcheck/, worktree removed withgit worktree remove):TestRiskPathsfails onapi/rpc.go,api/thread.go,api/activity.go,internal/agent/own.go;TestRiskMarkersfails onapi/activity.go,api/rpc.go,api/thread.go.check-risk-paths.mjs,check-corrections.mjsandcheck-readme.mjsatorigin/mainpass (nsl)diffof the old README sections against the new places shows only the rebased linksgit diff origin/main -- '*.go' go.mod go.sumshows onlyinternal/workflowcheck/Cross-review
deepseek/deepseek-flashand Claude Opus (github-copilot/claude-opus-5.5). Reviewer:openai/gpt-6.1-sol. Baseef2e374.7374d10(15 files, 2 batches): Not ready, 2 blocking points. Fixed in97ccb85, each with its guard and 1 line in.memory/corrections.jsonl:api/thread.go,api/activity.go,internal/agent/own.go): listed, withapi/rpc.go;governedPathsrequires them, and the newTestRiskMarkerscatches the next such file by its markers.AGENTS.mdrule guards it (no test can check prose).97ccb85: Ready, Blocking: none.