This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Repository navigation
chore: bring the repository to core's baseline (ADR-0071) - #55
Merged
Merged
Conversation
Add the files of core's repository baseline (rows B1 to B17) that were missing: the .cursorrules link, the skills template that .claude/skills points at, docs/org-adrs.md, the risk-path list and its caller, the PR template, Dependabot and SECURITY.md. internal/workflowcheck now checks rows B1, B2, B6 and B13. The README follows core's README spec for the kind service (ADR-0072). Its runbook (install, update, roll back, after the sysexts, release) moves unchanged to packaging/README.md. No product code changes.
…es, the sanitizer's callers and the offline sources as risk paths The risk list named the scope type, the sweep and the sanitizer policy, but not the files that enforce the write scope (internal/engine/engine.go), decide what the store deletes (blobrefs.go, sources.go), call the sanitizer on untrusted HTML (poll.go, extract.go), frame the article in lodge (Reader.tsx), or give the Flatpak build its trusted sources (the 3 offline sources files). governedPaths requires them, and TestRiskMarkers now finds sc.Write, sanitize.HTML( and DELETE FROM. The test's tables become functions, so the package keeps no mutable state.
12 tasks done
bketelsen
approved these changes
Nov 6, 2026
6 tasks done
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 frostread to core's repository baseline (frostyard/core ADR-0071,
docs/specs/repository-baseline.md, rows B1 to B17), as frostyard/lodge#49 and frostyard/porter#28 do for theirs. frostread already had most of it:AGENTS.mdwith 3 of its 4 links, the docs categories, 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 porter#28's, with frostread's governed paths and markers.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/flatpak packaging/nfpm.yaml packaging/deb-check.py Makefile mise.toml mise.lock .github/workflows/ci.yml .github/workflows/release.yml .github/workflows/flatpak.ymllists onlyinternal/workflowcheck/(1 new_test.gofile and itsdoc.gocomment). Nothing that lodge serves, the.debor the Flatpak carries changes..cursorrulesis a new relative symlink toAGENTS.md, besideCLAUDE.md,GEMINI.mdand.github/copilot-instructions.md..claude/skillslinked to../.agents/skills, which did not exist:.agents/skills/TEMPLATE/SKILL.mdis now there, byte-identical to lodge's and Porter's.docs/org-adrs.mdwas missing. It lists the core ADRs that bind frostread, anddocs/README.mdlinks it..github/risk-paths.json(29 entries) and the caller.github/workflows/risk-paths.yml, byte-identical to lodge's and Porter's (core's reusable workflow at1b02a12;permissions: {}). The labelrisk:highnow exists in this repository..github/pull_request_template.md: frostnotes' version, with frostread's gates in Verification (make check,race,cross, the nsl web and app targets,make app-e2e,make contract-update,make flatpak-sources,make screenshots,make deb,make vulncheck)..github/dependabot.yml:github-actions,gomod(/),npm(/web) andcargo(/web/src-tauri), weekly and grouped, withci:/build:prefixes so that svu reads them as patches. Its header says that a gomod, npm or cargo update needsmake flatpak-sourceson its branch.SECURITY.md: private vulnerability reporting at https://github.com/frostyard/frostread/security; only the latestvX.Y.Zrelease and its.debget fixes; the Flatpak is not published yet. Private vulnerability reporting is on (gh api repos/frostyard/frostread/private-vulnerability-reportinggivesenabled: true).README.mdin theservicekind (below).internal/workflowcheck/baseline_test.gochecks B1 (the 4 links are relative and resolve toAGENTS.md;.claude/skillsresolves), 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 each governed path exists and is listed, no glob is stale, andTestRiskMarkers: every Go file with a method's callers, a file mode, a socket listener, the fetcher's guard, a content MAC, the sanitizer policy, an MCP session, the agent token's scope, a write method's scope check, a sanitizer call on untrusted HTML or a delete in the store matches a glob) and B13 (eachgo.mod,package.json,Cargo.tomlorDockerfilehas its Dependabot entry).AGENTS.mdgets a "Repository baseline" section, the new link, the runbook and the risk list in the Map; its Status points at the runbook's new place, and the bump rule no longer names the README (the README holds no versions now).Not copied: the template's Node gate
As in lodge#49 and porter#28,
scripts/check-template.mjsis not copied: frostread 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: 29 entries, andnode scripts/check-corrections.mjs --root <worktree>givesok corrections: 14 lines.README (B17)
Kind:
service(core's README spec lists frostread under it). Checker, from core atorigin/main(node .agents/skills/frostyard-readme/scripts/check-readme.mjs), in an nsl machine:Before (
69cded2,origin/main):After:
ok README.md (service, 672 words).What it does, each with a link to its ADR or spec section; 1 added for the blob sweep (ADR-0007)AGENTS.md(Status, Releases and dependencies) and the roadmap; the status line keeps "pre-release"BuildDevelop:mise install,make check,make ci,make dev-lodge,make web-buildHow it runs behind lodgeInterface: the sockets and routes (2 rows added:/app/read/and/mcp/read), the user, the state and the configurationInstall on lodge's host,Update,Roll back,After the sysexts,Release(the runbook)packaging/README.md, after a new table of what each packaging file installs as or does.diffof the old sections against the new place shows 1 changed line: the link torelease.ymlgets../.Deploylinks each partProblem recordsProblem records, unchangedDocsWhere to go next, withSECURITY.mdandLICENSEaddedThe links to the moved runbook are updated:
docs/specs/api.md(Installation on lodge's host),AGENTS.md(Status) anddocs/plans/0001-roadmap.md(Phase 6's deployment record keeps its text and names the new place).Inventory
Every file that is not product code, with its verdict.
AGENTS.md.cursorrules, the runbook and the risk list in the Map, and a "Repository baseline" sectionCLAUDE.md,GEMINI.md,.github/copilot-instructions.mdAGENTS.md.cursorrules.claude/skills.agents/skills/TEMPLATE/SKILL.md.claude/skills; the template skill, byte-identical to lodge's and Porter's.memory/corrections.jsonlTestCorrectionsInboxdocs/README.mdorg-adrs.mddocs/adr/(8 + template),docs/design/(1 + template),docs/specs/(2 + template),docs/plans/(2 + template),docs/images/(the metainfo's screenshots)docs/org-adrs.mddocs/specs/api.md,docs/plans/0001-roadmap.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,flatpak,release}.ymlTestWorkflowsFollowADR0021holds itMakefile,mise.toml,mise.lock,.svu.yml,.golangci.yml,.gitignoreschema/rpc/AGENTS.md: API changes start there)testdata/scripts/(dev-lodge.sh,flatpak-sources.sh,release-version.sh),tools/flatpakgo/makeuses; the sources generators and the stamp are inrisk-paths.jsondev/screenshots/make screenshots' driver, on made-up feedspackaging/lodge/,packaging/flatpak/,nfpm.yaml,deb-check.pyrisk-paths.json, except the desktop file, the metainfo and the smoke testweb/config (package.json,pnpm-lock.yaml,pnpm-workspace.yaml,biome.json,tsconfig.json, the Vite and Vitest configs,index.html,desktop.html,public/icon.svg) andweb/src-tauri/config (Cargo.toml,Cargo.lock,build.rs,tauri.conf.json,capabilities/,icons/)risk-paths.jsonweb/e2e/(harness, suites, hostile corpus)make app-e2e's testsCounts: 10 new files (1 of them a symlink; 1 a test file), 7 edited (
.memory/corrections.jsonl,AGENTS.md,README.md,docs/README.md,docs/specs/api.md,docs/plans/0001-roadmap.md,internal/workflowcheck/doc.go), 0 deleted; 5 README sections moved topackaging/README.md. frostread has none of the framework trees that B16 names (docs/superpowers/,.planning/,.cursor/,.gaai/,yeti/,cairn/,docs/agents/).Baseline rows
AGENTS.md;.claude/skillsresolves;TestInstructionAliasesTestCorrectionsInbox,TestCorrectionProblemsfollow core's line rulesdocs/README.md, the 4 categories withTEMPLATE.md;docs/org-adrs.mdadded and linked from the indexverify,check,ci(ci: verify race cross web-check app-check app-build);mise.toml,mise.lockuses:is a 40-character SHA with a version comment; least-privilege permissions;persist-credentials: false;TestWorkflowsFollowADR0021. The new caller follows itinternal/{workflowcheck,packagecheck}), publication (release.yml,flatpak.yml,.svu.yml,nfpm.yaml,deb-check.py,packaging/lodge/**, the Flatpak's manifest, launcher, Background helper and build stamp,scripts/release-version.sh), update verification (the 3 offline sources files and their generators:scripts/flatpak-sources.sh,tools/flatpakgo/**, the patches and the generator's pinned requirements), auth (readd's sockets, kittest rules, lock and log modes; the caller kinds and the write scope of each method inapi/andinternal/{rpcserver,readapi}; the agent token's scope, its checks ininternal/engine/engine.go, and MCP; the sanitizer's callers on feed and article HTML (poll.go,extract.go); both reader frames (Reader.tsx,RenderedArticle.tsx); the content MACs and CSP; the fetcher's guard; the sanitizer; the shell's navigation, bridge, socket path, lodge connection, file saves, CSP and capabilities; ), secrets and credentials (the notes token ininternal/configand its use ininternal/notes), destructive operations (the store's schema, migrations and content secret; source removal insources.go; the blob sweep and its reference checks inblobrefs.go);TestRiskPaths,TestRiskMarkers,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 race,make cross,make web-check(withIN_NSL='sh -c'),make app-checkandmake app-build(withIN_APP_NSL='sh -c'); thecirecipe has no commandsTestDependabotCoversManifestsSECURITY.mdlinks/security; private vulnerability reporting is on.claude/holds onlyskillsok README.md (service, 672 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 and Porter'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.No other workflow, the Makefile, the mise pins, or any packaging, credential, auth, sanitizer, shell or store file changes.
Docs housekeeping
docs/org-adrs.mdis indexed indocs/README.md;packaging/README.mdis outsidedocs/, as lodge's and Porter's areAGENTS.mdis edited insteadVerification
make check: exit 0 (tidy, vet with and without the dev tags, gofmt, golangci-lint 2.15.00 issues., all tests)go test -count=1 -v -run 'TestInstructionAliases|TestCorrection|TestRiskPaths|TestRiskMarkers|TestDependabot' ./internal/workflowcheck/: pass; the tests log14 corrections lines,29 globs; 81 required paths listed; 367 files searched,29 globs; 19 Go files with a marker,3 manifests, 4 Dependabot entriesgo testrun, file restored):internal/notes/**removed:internal/notes/notes.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".web/src-tauri/Cargo.toml has no Dependabot entry (package-ecosystem cargo, directory /web/src-tauri)..cursorrulesas a copy:.cursorrules is not a symlink.internal/fetch/**removed:TestRiskPathsfails oninternal/fetch/fetch.go, andTestRiskMarkerswithinternal/fetch/fetch.go has netguard. (an auth, credential or schema check); ….check-risk-paths.mjs,check-corrections.mjsandcheck-readme.mjsatorigin/mainpass (nsl)diffof the old README sections againstpackaging/README.mdshows only the rebasedrelease.ymllinkgit diff origin/main -- '*.go' go.mod go.sumshows onlyinternal/workflowcheck/847ba59,.github/risk-paths.jsonof3f53074,go test -count=1 -run 'TestRiskPaths|TestRiskMarkers' ./internal/workflowcheck/, worktree removed withgit worktree remove):TestRiskPathsfails on the 9 newly required paths (the 3 offline sources files,internal/engine/engine.go,internal/engine/poll.go,internal/extract/extract.go,web/src/components/Reader.tsx,internal/store/blobrefs.go,internal/store/sources.go);TestRiskMarkersfails onengine.go,poll.goandextract.go(sanitize.HTML() and onblobrefs.goandsources.go(DELETE FROM).Cross-review
deepseek/deepseek-flashand Claude Opus (github-copilot/claude-opus-5.5). Reviewer:openai/gpt-6.1-sol. Base69cded2.3f53074(16 files, 2 batches): Not ready, 4 blocking points and 1 convention point. Fixed in847ba59, each blocking point with its guard and 1 line in.memory/corrections.jsonl(lines 11 to 14):internal/engine/engine.go) were not listed, only the scope type: listed; the markersc.Writefinds the next such file.internal/store/blobrefs.go, the sweep's reference checks;internal/store/sources.go, source removal) were not listed: listed; the markerDELETE FROM.internal/engine/poll.go,internal/extract/extract.go) and lodge's reader frame (web/src/components/Reader.tsx) were not listed: listed; the markersanitize.HTML(.847ba59: Ready, Blocking: none.