Skip to content
This repository was archived by the owner on Nov 15, 2026. It is now read-only.

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

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

bketelsen merged 2 commits into
mainfrom
irulan/baseline

Conversation

@frostyard-machines

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

Copy link
Copy Markdown
Contributor

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.md with 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 in internal/workflowcheck (which make verify runs), 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.yml lists only internal/workflowcheck/ (1 new _test.go file and its doc.go comment). Nothing that lodge serves, the .deb or the Flatpak carries changes.

  • B1: .cursorrules is a new relative symlink to AGENTS.md, beside CLAUDE.md, GEMINI.md and .github/copilot-instructions.md. .claude/skills linked to ../.agents/skills, which did not exist: .agents/skills/TEMPLATE/SKILL.md is now there, byte-identical to lodge's and Porter's.
  • B3: docs/org-adrs.md was missing. It lists the core ADRs that bind frostread, and docs/README.md links it.
  • B6: .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 at 1b02a12; permissions: {}). The label risk:high now exists in this repository.
  • B7: .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).
  • B13: .github/dependabot.yml: github-actions, gomod (/), npm (/web) and cargo (/web/src-tauri), weekly and grouped, with ci:/build: prefixes so that svu reads them as patches. Its header says that a gomod, npm or cargo update needs make flatpak-sources on its branch.
  • B14: SECURITY.md: private vulnerability reporting at https://github.com/frostyard/frostread/security; only the latest vX.Y.Z release and its .deb get fixes; the Flatpak is not published yet. Private vulnerability reporting is on (gh api repos/frostyard/frostread/private-vulnerability-reporting gives enabled: true).
  • B17: README.md in the service kind (below).
  • Guard: internal/workflowcheck/baseline_test.go checks B1 (the 4 links are relative and resolve to AGENTS.md; .claude/skills resolves), 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 each governed path exists and is listed, no glob is stale, and TestRiskMarkers: 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 (each go.mod, package.json, Cargo.toml or Dockerfile has its Dependabot entry).
  • AGENTS.md gets 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.mjs is not copied: frostread runs no Node on the host (AGENTS.md, Gates), and make verify is a host gate that make bump also runs. The baseline rows do not ask for it. I ran core's own scripts at origin/main on the new files, in an nsl machine: node scripts/check-risk-paths.mjs --root <worktree> --caller .github/workflows/risk-paths.yml gives ok risk_paths: 29 entries, and node scripts/check-corrections.mjs --root <worktree> gives ok corrections: 14 lines.

README (B17)

Kind: service (core's README spec lists frostread under it). Checker, from core at origin/main (node .agents/skills/frostyard-readme/scripts/check-readme.mjs), in an nsl machine:

Before (69cded2, origin/main):

FAIL R1 expected exactly 1 "<!-- readme-kind: <kind> -->" line, found 0 (none)
FAIL R3 the top block has 241 words (at most 130), without the marker, images, badges and headings
FAIL R4 expected exactly 1 "**Status:**" line in the top block, found 0 (none)
FAIL R5 expected exactly 1 "**Documentation:**" line in the top block, found 0 (none)
FAIL R9 there is no Develop section
FAIL R10 there is no Where to go next section
FAIL R11 the README has 2470 words (at most 1000)
FAIL R12 there are 7 dates in YYYY-MM-DD form outside fenced code (at most 2)

After: ok README.md (service, 672 words).

Old part Verdict Where
Lead ("frostread is a tailnet-only feed reader…") kept Lead, with who it is for and where it runs
7 bullets (sources, read later, phone, articles, reading, save as a note, agents) kept What it does, each with a link to its ADR or spec section; 1 added for the blob sweep (ADR-0007)
Status paragraph (dates, versions, what is built) dropped, a copy The dates, versions and phases are in AGENTS.md (Status, Releases and dependencies) and the roadmap; the status line keeps "pre-release"
Build kept Develop: mise install, make check, make ci, make dev-lodge, make web-build
How it runs behind lodge kept Interface: the sockets and routes (2 rows added: /app/read/ and /mcp/read), the user, the state and the configuration
Install on lodge's host, Update, Roll back, After the sysexts, Release (the runbook) moved, text unchanged packaging/README.md, after a new table of what each packaging file installs as or does. diff of the old sections against the new place shows 1 changed line: the link to release.yml gets ../. Deploy links each part
Problem records kept Problem records, unchanged
Docs kept Where to go next, with SECURITY.md and LICENSE added

The links to the moved runbook are updated: docs/specs/api.md (Installation on lodge's host), AGENTS.md (Status) and docs/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.

File or group Verdict Why
AGENTS.md keep, edited The canonical file. Adds .cursorrules, the runbook and the risk list in the Map, 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 keep The skills alias (ADR-0029); it dangled before this PR
.agents/skills/TEMPLATE/SKILL.md add The target of .claude/skills; the template skill, byte-identical to lodge's and Porter's
.memory/corrections.jsonl keep, appended 10 lines kept, 4 appended from this PR's review fixes; now guarded by TestCorrectionsInbox
docs/README.md keep, edited Links org-adrs.md
docs/adr/ (8 + template), docs/design/ (1 + template), docs/specs/ (2 + template), docs/plans/ (2 + template), docs/images/ (the metainfo's screenshots) keep Already the ADR-0025 shape, indexed
docs/org-adrs.md add B3: the core ADRs that bind the repository
docs/specs/api.md, docs/plans/0001-roadmap.md keep, edited 1 link each to the runbook's new place
README.md keep, rewritten B17 (above)
packaging/README.md add The runbook from the README, unchanged, and a table of the packaging files
LICENSE (MIT) keep 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 TestWorkflowsFollowADR0021 holds it
Makefile, mise.toml, mise.lock, .svu.yml, .golangci.yml, .gitignore keep Unchanged; B4, B8, B11 are met
schema/rpc/ keep The API contract (AGENTS.md: API changes start there)
testdata/ keep The desktop mode and directory tables that Go and Rust share
scripts/ (dev-lodge.sh, flatpak-sources.sh, release-version.sh), tools/flatpakgo/ keep Development, offline-sources and version-stamp tooling that make uses; the sources generators and the stamp are in risk-paths.json
dev/screenshots/ keep make screenshots' driver, on made-up feeds
packaging/lodge/, packaging/flatpak/, nfpm.yaml, deb-check.py keep Release and install files; listed in risk-paths.json, except the desktop file, the metainfo and the smoke test
web/ 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) and web/src-tauri/ config (Cargo.toml, Cargo.lock, build.rs, tauri.conf.json, capabilities/, icons/) keep The web bundle's and the shell's build; each manifest has its Dependabot entry; the CSP and capabilities are in risk-paths.json
web/e2e/ (harness, suites, hostile corpus) keep make app-e2e's tests

Counts: 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 to packaging/README.md. frostread 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; .claude/skills resolves; TestInstructionAliases
B2 Corrections inbox met 14 valid lines; TestCorrectionsInbox, TestCorrectionProblems follow core's line rules
B3 Docs shape done docs/README.md, the 4 categories with TEMPLATE.md; docs/org-adrs.md added and linked from the index
B4 Make gate and tool pins met verify, check, ci (ci: verify race cross web-check app-check app-build); mise.toml, mise.lock
B5 Pinned, least-privilege actions met Every uses: is a 40-character SHA with a version comment; least-privilege permissions; persist-credentials: false; TestWorkflowsFollowADR0021. The new caller follows it
B6 Risk paths done 29 entries: governance (the list, workflows, Makefile, mise pins, internal/{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 in api/ and internal/{rpcserver,readapi}; the agent token's scope, its checks in internal/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 in internal/config and its use in internal/notes), destructive operations (the store's schema, migrations and content secret; source removal in sources.go; the blob sweep and its reference checks in blobrefs.go); TestRiskPaths, TestRiskMarkers, TestMissingPaths, 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. A patch bump of the go line, if wanted, is a separate PR: it can change behaviour
B12 CI entry met Separate jobs, as the row allows (core ADR-0073): ci.yml runs on pull_request each prerequisite of ci: as make verify, make race, make cross, make web-check (with IN_NSL='sh -c'), make app-check and make app-build (with IN_APP_NSL='sh -c'); the ci recipe has no commands
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
B17 README done Core's checker prints ok 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 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, credential, auth, sanitizer, shell or store file changes.

Docs housekeeping

  • docs/org-adrs.md is indexed in docs/README.md; packaging/README.md is outside docs/, as lodge's and Porter's are
  • Conformance alias added as a symlink; the canonical AGENTS.md is edited instead

Verification

  • make check: exit 0 (tidy, vet with and without the dev tags, gofmt, golangci-lint 2.15.0 0 issues., all tests)
  • go test -count=1 -v -run 'TestInstructionAliases|TestCorrection|TestRiskPaths|TestRiskMarkers|TestDependabot' ./internal/workflowcheck/: pass; the tests log 14 corrections lines, 29 globs; 81 required paths listed; 367 files searched, 29 globs; 19 Go files with a marker, 3 manifests, 4 Dependabot entries
  • Each guard fails on purpose (file changed, go test run, file restored):
    1. internal/notes/** removed: internal/notes/notes.go is a release, secrets, auth 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 entry removed: web/src-tauri/Cargo.toml has no Dependabot entry (package-ecosystem cargo, directory /web/src-tauri).
    5. .cursorrules as a copy: .cursorrules is not a symlink.
    6. internal/fetch/** removed: TestRiskPaths fails on internal/fetch/fetch.go, and TestRiskMarkers with internal/fetch/fetch.go has netguard. (an auth, credential or schema check); ….
  • Core's check-risk-paths.mjs, check-corrections.mjs and check-readme.mjs at origin/main pass (nsl)
  • The moved runbook: diff of the old README sections against packaging/README.md shows only the rebased release.yml link
  • git diff origin/main -- '*.go' go.mod go.sum shows only internal/workflowcheck/
  • Revert test of the review fixes (scratch worktree at 847ba59, .github/risk-paths.json of 3f53074, go test -count=1 -run 'TestRiskPaths|TestRiskMarkers' ./internal/workflowcheck/, worktree removed with git worktree remove): TestRiskPaths fails 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); TestRiskMarkers fails on engine.go, poll.go and extract.go (sanitize.HTML() and on blobrefs.go and sources.go (DELETE FROM).
  • CI green

Cross-review

  • Coders: deepseek/deepseek-flash and Claude Opus (github-copilot/claude-opus-5.5). Reviewer: openai/gpt-6.1-sol. Base 69cded2.
  • Initial review of 3f53074 (16 files, 2 batches): Not ready, 4 blocking points and 1 convention point. Fixed in 847ba59, each blocking point with its guard and 1 line in .memory/corrections.jsonl (lines 11 to 14):
    1. The engine's write-scope checks (internal/engine/engine.go) were not listed, only the scope type: listed; the marker sc.Write finds the next such file.
    2. The store's delete decisions (internal/store/blobrefs.go, the sweep's reference checks; internal/store/sources.go, source removal) were not listed: listed; the marker DELETE FROM.
    3. The sanitizer's callers (internal/engine/poll.go, internal/extract/extract.go) and lodge's reader frame (web/src/components/Reader.tsx) were not listed: listed; the marker sanitize.HTML(.
    4. The 3 offline sources files, which the manifest reads directly (URLs, commits, checksums), were not listed, only their generators: listed as update verification.
    5. (Not blocking) The test's package-level tables were mutable state: now functions that return a new slice.
  • Re-review 1 of 847ba59: Ready, Blocking: none.

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.
@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 519e22c into main Nov 6, 2026
8 checks passed
@bketelsen
bketelsen deleted the irulan/baseline branch November 6, 2026 13:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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