Repository navigation
chore: adopt the frostyard repository baseline (B1 to B17) - #220
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Nov 6, 2026
bketelsen
previously approved these changes
Nov 6, 2026
Bring pilothouse to frostyard/core's repository baseline (ADR-0071, rows B1 to B17) and record it in ADR 0014: the template gate, the make verify, check and ci triad with mise pins, ci.yml, risk paths, Dependabot, SECURITY.md, .memory/corrections.jsonl, .agents/skills as a real directory, a README to core's README spec with its guides moved to docs/, and the mill lessons folded into docs/design/engineering-lessons.md. The mill and superpowers trees are deleted. No product code changes.
Cross-review of 9dcf033: carry the Files, Logs and Storage contracts and 3 reusable lessons from the deleted superpowers and mill files into docs/specs/ and engineering-lessons.md, checked against the code; pass BASE into the docker-ci container; fix the 3 remaining old lesson citations and the test.yml references. Guards: TestDockerCIPassesBase, TestNoCitationOfRetiredPaths, an AGENTS.md rule for doc deletions, and 4 .memory/corrections.jsonl lines.
…e citation guard Re-review 1 of c42952d: the storage spec now separates the unit, manifest and credential formats and checks, and states the effective target directory mode under UMask=0077. The citation guard joins wrapped comment lines before every check, matches only retired lesson names, and gets a fixture test. 3 .memory/corrections.jsonl lines.
Re-review 2 of 6066715 (non-blocking F10): a link to another repository's engineering-lessons.md#anchor no longer fails the local citation guard; new fixture; the test comment states the scan scope.
frostyard-machines
force-pushed
the
duncan/baseline
branch
from
November 6, 2026 10:41
94e037b to
03a30fc
Compare
bketelsen
approved these changes
Nov 6, 2026
This was referenced Nov 14, 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 Pilothouse to frostyard/core's repository baseline (ADR-0071,
docs/specs/repository-baseline.md, rows B1 to B17), with the method of bketelsen/truenas-mcp#52 and the shape of frostyard/chairlift#272. The template files come frombketelsen/agentic-templateat05e8f5d, as byte-identical copies. The repo-local record is the new ADR 0014..mill.toml, 50 mill lesson files indocs/agents/skills/, 18 finished superpowers specs and plans indocs/superpowers/, and a committedscripts/__pycache__/mill_state.cpython-313.pyc. The mill is archived.TestNoCitationOfRetiredPathschecks them. 7 lessons were about the mill's plan, chunk and staging process only, or are already inAGENTS.md, so they are deleted (table below)..agentswas a symlink todocs/agents. It is now a real directory. The 23 core-synced skills moved withgit mvto.agents/skills/(150 files,R100)..claude/skillsnow links to../.agents/skills. The rootskillssymlink is gone.make verify,checkandci(ci: verify), withmise.tomlandmise.lock. golangci-lint stays at 2.11.4 (no bump). Node 24.22.2 is added for the template gate.test.ymlis renamed toci.yml. The workflow nameTests, every job name and every job's permissions stay. The 6 jobs together cover everymake citarget.README.mdis now about 500 words, for the kindservice. Its guides moved to 4 newdocs/pages, each with a short new introduction. The moved text keeps its facts. The changes are the link paths, the example release version (0.7.0 → 0.9.1), and the gate instructions indocs/development.mdthat this PR changes (mise install,make ci BASE=origin/main,make verifyandmake check, the lint pin)..github/dependabot.yml,SECURITY.md,.memory/(with the corrections file, moved from the root), and a## Risk tierheading in the PR template.No behavior change. Proof:
git diff origin/main -- go.mod go.sumis empty.internal/capability/capability.gono longer points to.mill/spec.md.git diff origin/main -- '*.go' ':!*_test.go' | grep '^[-+]' | grep -v '^[-+][-+]' | grep -vE '^[-+]\s*//'prints nothing.internal/workflowcheck/test_workflow_test.gochanges paths fromtest.ymltoci.yml.packaging/workflow_image_tier_test.gonow expectspersist-credentials: false. 2 are new guard tests from the cross-review:internal/workflowcheck/docker_ci_base_test.goandinternal/workflowcheck/retired_paths_test.go.Inventory (every non-Go file at
origin/mainthat changed, plus each group that stays)docs/agents/skills/*.md(43 lessons)docs/design/engineering-lessons.md, each checked against the code. 1 pair is merged:fix-the-defect-class…andvalidate-external-status-json-strictly. Facts corrected against the code:reboot_guest(notwait_for_ssh_gone),rpm2archiveintotar(notrpm2cpio | cpio), the AST audit now inpackaging/imagetest, andDOCKER_RUNruns as the host user (not root). The #80 helpers that never landed are dropped. Code that does not follow its lesson yet has an "Open gap" line, and no code changes here:debEntries,splitPath, 3 raw-text tests and 1 regex test.claude-md-symlink-never-appears-staged,dont-silently-stage-files-outside-a-chunk-explicit-list,go-sum-diff-criteria-can-be-unsatisfiable,keep-a-modules-source-and-doc-restatement-in-the-same-sweep-chunk,mechanism-only-chunks-still-need-a-doc-touch,negative-claim-objection-means-delete-not-reword,verify-required-files-are-staged-before-submittingAGENTS.mdalready states (theCLAUDE.mdsymlink; "update documentation after any change").map-every-spec-requirement-to-a-chunk-or-explicit-deferral,dont-doc-ahead-of-the-chunk,verify-shell-acceptance-criteriamoduleAvailable); a doc clause is written from the landed code; a command is run before it is cited. Checked at the head (TestAvailableUpdatesSection,TestModuleAvailabilityCoversCapabilityGateCapabilityGateAnyAndNeither).gates-chunk-skips-build-tagged-files,templ-generated-filesmaketargets compilesdjournalfiles, and the untracked*_templ.gooutput. The mill-gate parts are dropped.docs/agents/skills/{golang-*,frostyard-*}/**(150 files).agents/skills/withgit mv, byte-identical. Core manages them (ADR-0026)..agents,skills(symlinks intodocs/agents).agentsis now a real directory.skillsis not needed.docs/superpowers/specs/*(7),docs/superpowers/plans/*(11)internal/modules/files,logs,storage; EROFS; symlink resolution; SMBuid/gid, #44; fragment IDs, #46; tag reconciliation). Their contracts that are true at the head and that no doc held now live in 3 new specs, each checked against the code: docs/specs/files.md (root flags,openat2withRESOLVE_BENEATH | RESOLVE_NO_MAGICLINKS | RESOLVE_NO_SYMLINKS, list limits, download by the opened descriptor,O_TMPFILE+linkat(AT_EMPTY_PATH)upload with no named-file fallback, routes, the stream contract, status mapping), docs/specs/logs.md and docs/specs/storage.md (limits, timeouts, adapters, remote-mount files and modes, SMB ownership, anchors). The bump contracts are inoverview.md("Release workflow"). Values corrected to the code: the Files list cap is 1.5 MiB (maxEntryJSONBytes), aRangedownload gets416, the storage mount action starts the.automountunit, only SMART is cached, and delete writesneeds-attentionfirst. Dropped as untrue: a web403for a non-admin Files request (the web renders the denied page with no broker call), and audit categories beyondtimeout,cancelledandoperation_failed(errorCategory)..mill.tomlAGENTS.md(fixed broker queries and actions).scripts/__pycache__/mill_state.cpython-313.pyccorrections.jsonl(empty).memory/corrections.jsonl, with the template's.memory/README.md.README.mdservice, about 500 words, core's checker printsok. Moved, each page with a short new introduction: "What works" and "Module architecture" →docs/features.md; "Install" and "Remote access" (with the configuration notes) and the engine opt-in paragraph →docs/install.md; "Develop", "Run locally", the 3 package-validation tiers and "Create a release" →docs/development.md; "Problem records" →docs/problem-records.md. Changed text: the link paths; the example release version is now0.9.1(it was0.7.0; the latest release is v0.9.1 and its asset names match); the gate instructions indocs/development.md("Gates and review") now saymise install,make ci BASE=origin/main,make verifyandmake check, and that lint needs themise.tomlpin, as this PR changes them;make docker-ci BASE=origin/mainindocs/development.md. The line "operator documentation currently lives in this README" is dropped.AGENTS.mdci.yml, a README rule, the corrections rule (append-only, not "delete the entry"), "Engineering lessons and skills" (replaces the mill section), and "Security and risk paths"..knowledge/README.md,.claude/session-summary.md.memory/and the lessons doc.promoted_tois""until promotion: core's schema requires a string, notnull..claude/settings.jsonCLAUDE.md,GEMINI.md,.cursorrules,.github/copilot-instructions.mdAGENTS.md. The gate now checks them.Makefileverify,verify-template,check,lint-version-checkandcorrections-base.cinow depends onverify.GOLANGCI_LINT_VERSIONis read frommise.toml..github/workflows/test.yml→ci.yml.github/workflows/nightly-compliance.yml,packaging.yml,image-tier.yml.github/workflows/release.yml,snapshot.yml,triage.yml,claude-code-review.yml.github/pull_request_template.md## Change classification→## Risk tier(B7)..github/auto-qa-tuning.json,policies/repository.yamlci.yml,.memory/corrections.jsonl, the lessons doc..github/issue_template.md,policies/README.md.docker/Dockerfilenode:24.22.2-bookworm-slim. Without it,make docker-cicannot run the template gate..devcontainer/*,.editorconfig,.golangci.yml,.goreleaser.yaml,.svu.yml,codecov.yml,LICENSE(MIT),THIRD_PARTY.md,CONTRIBUTING.mdCONTRIBUTING.md(mise install, the gate commands, the link todocs/development.md)..gitignore/.superpowers/lines are removed.workflows/(Conductor workflows)policies/repository.yamlrequirescode-review.yaml. The README's stale mill section is replaced by a note that points to ADR 0014.site/**(Astro)site/.github-workflow-deploy.yml). The B9 follow-up replaces it.docs/README.md,docs/org-adrs.mddocs/design/agent-workflows.md,overview.md,artifact-extraction.md,docs/quality.md,docs/security/SECURITY-AI.md,docs/capabilities.md,docs/modules.md,docs/specs/artifact-contract.md,docs/adr/0004…,docs/adr/0011…capabilities.md: 5 citations of the untracked mill file.mill/spec.mdnow name the issue (#35, #51, #52).agent-workflows.md: the mill and tool-pin text now describes this state.packaging/**,test/vm/**,test/image/**,internal/**/testdata/**,internal/web/static/**,*.templ,go.mod,go.sumCounts at
03a30fcagainstmain09806be(git diff -M --name-status): 73 deleted (50 lessons, 18 superpowers,.mill.toml, the.pyc, 2 symlinks, and the empty rootcorrections.jsonl, now.memory/corrections.jsonlwith content). 164 renames (163 skill files byte-identical, with the 13frostyard-readmefiles that #219 added;test.yml→ci.yml). 24 added (with the 3 specs and 2 guard tests). 44 modified.Baseline rows
AGENTS.mdis mode 100644. The 4 aliases are mode 120000 and point toAGENTS.md. The gate now checks them..memory/corrections.jsonland.memory/README.md. The file has 8 lines, all from the cross-review findings of this PR.org-adrs.mdlists 25 core ADRs.verify,checkandci(ci: verify).mise.tomlandmise.lockpin golangci-lint 2.11.4 and Node 24.22.2; Go comes fromgo.mod.uses:is a SHA, includingjdx/mise-actionv5.2.4 and core'srisk-paths.yml(the row's check passes). Every checkout inci.yml,packaging.yml,image-tier.yml,nightly-compliance.ymlandclaude-code-review.ymlsetspersist-credentials: false. Not met, and not changed here:release.ymlandsnapshot.ymlgrantcontents: writeat the workflow level,triage.ymlgrantsissues: writeat the workflow level, and therelease.ymlandsnapshot.ymlcheckouts persist credentials. These are the release and publishing paths; the fix is a follow-up PR..svu.yml,.goreleaser.yamlandscripts/bump.sh(release);packaging/**(install: units, PAM, sysusers, postinstall);cmd/pilothoused/**,internal/broker/**(privileged) andinternal/auth/**(PAM sign-in)..github/workflows/**coversrelease.ymlandsnapshot.yml.## Risk tierheading..svu.yml;make bumprunssvu next(docker-next-version).frostyard-docs-siteskill, ADR-0070: ProperDocs + MaterialX) replaces the Astro site undersite/, which was never deployed (site/.github-workflow-deploy.yml). That PR also removes thenpmDependabot entry. Until then, the README's documentation line linksdocs/README.md.go.modhasgo 1.26.10; the fleet uses Go 1.27 and golangci-lint 2.15.0. This PR keeps golangci-lint at 2.11.4; the bump is a separate PR. Also left for a later PR from ADR 0012: the MakefileGO_VERSION, the hard-coded andstablego-versioninputs, andsvuoutside mise.ci.yml. The 6 jobs cover everymake citarget. The nightly job runsmake ciitself.github-actions,gomod,docker(/.docker,/.devcontainer,/test/image/ucore) andnpm(/site).SECURITY.mdlinkshttps://github.com/frostyard/pilothouse/securityand names the supported versions (the latestvX.Y.Zrelease only). Private vulnerability reporting is on (gh api repos/frostyard/pilothouse/private-vulnerability-reporting→enabled: true).docs/superpowers/is gone..claude/holds onlysettings.json,skillsandsession-summary.md.node .agents/skills/frostyard-readme/scripts/check-readme.mjs(coreorigin/main) →ok README.md (service, 498 words).Follow-ups (not in this PR)
site/.GO_VERSION,go-versioninputs,svuin mise, development images from mise).release.yml,snapshot.ymlandtriage.ymlfrom the workflow level to the job level, and setpersist-credentials: falseon therelease.ymlandsnapshot.ymlcheckouts (GoReleaser publishes through the API token, not git credentials).engineering-lessons.md, and 2 stale comments incmd/pilothoused/capability_contract_test.go(lines 196 and 210, which give the old test name and the old counts).internal/modules/files,internal/modules/storage) are a separate open item. They are not part of this PR.docs/agents/skills/. After this PR merges, close chore: sync agent skills from frostyard/core #219. The next sync run writes to.agents/skills/.Risk tier
Risk tier: 3. This PR changes CI, the gate and governance files; it changes no product code. The base has no
.github/risk-paths.json, so the label workflow does not run on this PR. These paths match the new list, and each change is safe for this reason:.github/workflows/ci.yml(wastest.yml):Tests, whichsnapshot.ymlfollows), the 6 job ids and names, and every job's permissions stay the same.TestTestWorkflowUsesLeastPrivilegeAndPinnedScannerchecks them.golangci-lint-actionwithversion: v2.11.4is replaced byjdx/mise-actionandmake lint(the same 2.11.4, frommise.lock).fetch-depth: 0and mise (Node). It runsgo mod tidy -diff(it no longer runsgo mod tidyand thengit diff),go vet,make format-check(the same_templ.goexclusion),make verify-template, andmake corrections-base BASE=<PR base sha>.TestTestGatesRunEveryTest). Every checkout now haspersist-credentials: false. No job pushes..github/workflows/nightly-compliance.yml:go install [email protected]is replaced bymise-action(golangci-lint and Node), becausemake cinow needs Node and the exact pin..github/workflows/packaging.yml:persist-credentials: falseon 3 checkouts (the snapshot build uploads only workflow artifacts; the install and vm-boot jobs only download them), and a comment now saysci.yml..github/workflows/image-tier.yml:persist-credentials: false. The job getsGITHUB_TOKENfrom its environment for the release download and never pushes.packaging/workflow_image_tier_test.gonow expects it..github/workflows/risk-paths.yml,.github/risk-paths.json: new. This is the template caller:pull_request_target, no checkout, not a required check.Makefile: see the inventory row.corrections-base(called byci) does 3 things:BASEdoes not resolve to a commit.BASEwhenBASEhasscripts/check-corrections.mjs.scripts/check-template.mjs,scripts/check-corrections.mjs,scripts/lib/risk-paths.mjs,test/check-template.test.mjs: byte-identical template copies (cmp). The gate checks the hash pins of the 2 core files.mise.toml,mise.lock: new. They pin the same golangci-lint release that CI used before.packaging/drift_test.go,packaging/extract/extract_test.go,packaging/extract/rpm_test.go,cmd/pilothoused/capability_contract_test.go: comment-only (lesson citations).Docs housekeeping
TEMPLATE.md(ADR 0014, engineering-lessons, the 3 specs). The 4 moved guides are plain pages, as the README skill allows.docs/README.md(the gate checks 47).TestNoCitationOfRetiredPaths(new) joins wrapped comment lines and fails on any citation ofdocs/agents/skillsorworkflows/test.ymloutside the 4 retirement notes, on anengineering-lessons.md#<anchor>with no anchor, and on a citation of a retired lesson by its old file name (<lesson>.md, for each anchor and for the 8 deleted lesson names). URLs to other repositories are left out of the file-name and anchor checks. It scans the working tree outside.git,.agentsand build output, and reports the files, citations and anchors it checked (at94e037b: 400 files, 87 citations, 43 anchors).TestCitationProblemsFixturesholds the rules to 13 fixtures.Verification
94e037b:make docker-ci(with podman,PODMAN_USERNS=keep-id) printed "all CI gates passed". It ran tidy, vet, format, lint (0 issues), the template gate (26 Node tests), govulncheck, every test includingsdjournal, race, and the build. This host has nosd-journal.hand a umask of 0077, so a host-nativemake cistops at thesdjournalbuild. Withumask 0022, every other package passes on the host.git status --porcelainis the same before and aftermake verify.94e037b:node scripts/check-template.mjsprintsokfor agent-symlinks (5), docs-index (47 docs, 57 links), risk-paths (15 entries), corrections (8 lines) and vendored (2 pins).go test ./internal/workflowcheckpasses (TestNoCitationOfRetiredPaths: 400 files, 87 lesson citations, 43 anchors).actionlint1.7.12 reports only the existingubuntu-26.04runner-label note inimage-tier.yml, which is also onorigin/main.check-readme.mjs→ok README.md (service, 498 words).docs/design/unindexed.md→FAIL docs-index: … document is not linked from docs/README.md.make corrections-base BASE=HEAD→FAIL corrections: .memory/corrections.jsonl:1: line changed.make corrections-base BASE=nope→FAIL: BASE nope does not resolve to a commit.make lint-version-check GOLANGCI_LINT_VERSION=v2.11.3→expected golangci-lint 2.11.3, found 2.11.4. When the pin is edited inmise.tomlinstead, the mise shim installs that release on its own, so the check matters for a golangci-lint that does not come from mise, such as the one in the development image.Cross-review
Coder models:
deepseek/deepseek-flash(gate, workflows, scripts, risk paths, test path changes) andclaude-opus-5.5(docs, lessons, specs, README, guards). Reviewer:openai/gpt-6.1-sol. Base3998a8a.9dcf033, in 4 batches: A, gate and CI; B, instructions and docs, including the 4 moved guides compared with the base README; C1, the lessons and the Go citation changes; C2, the deletions, checked by sampling. The 150 skill renames were checked asR100, the 4 template copies withcmp, andmise.lockby tool and version. Verdict: Not ready, 5 blockers:make docker-cidroppedBASE, so the corrections comparison skipped silently in the container. Agreed. Fix:make ci BASE="$(BASE)"in the container. Guard:TestDockerCIPassesBase, plus a corrections line.release.yml,snapshot.ymlandtriage.ymlkeep workflow-level write permissions, and 2 checkouts keep credentials. Agreed. Fix: B5 is now "partial" in this body, with a follow-up. A corrections line.openat2andO_TMPFILEupload, the feature-relocation rule). Agreed. Fix: 3 new specs, 3 lessons back, and the bump contracts in the overview. Guard: theAGENTS.mdrule "Deleting or moving a doc", plus a corrections line.test.ymlreferences were left. Agreed. Fix: rewritten. Guard:TestNoCitationOfRetiredPaths, plus a corrections line.c42952d: F1, F2 and F5 resolved, F3 mostly resolved. 4 new blockers:0700underUMask=0077, not0755. Agreed. Fix: the spec now states the true formats and checks. A corrections line.citationProblemsjoins first. Guard:TestCitationProblemsFixtures; with the old raw-text search, itswrapped_retired_workflowcase fails. A corrections line.6066715: F6, F7 and F8 resolved. F9 was only partly resolved: 2 housekeeping claims were stale; they are now fixed in this body. Non-blocking F10, external anchors: fixed in94e037b, with a fixture and a corrections line.94e037b: Ready, Blocking: none. It checked the counts (73 D, 151 R, 24 A, 44 M, 8 corrections lines) against the tree.TestDockerCIPassesBaseandTestNoCitationOfRetiredPathsfail with the files from9dcf033, andTestCitationProblemsFixturesfails with the raw-text search put back.Rebase on #219
#219 (core skills sync from core
9f5cd1c) merged first. This PR is rebased ontomain09806be; head03a30fc. Git carried #219's changes to the existing skills into.agents/skills/by rename detection, and the newfrostyard-readmeskill was moved there by hand, folded into the first commit.docs/design/shared-skills.md): the 24 managed skills under.agents/skills/match core9f5cd1cexactly, path, mode and object for each entry, and each has its.synced-from-coremarker.git ls-tree HEAD docs/agentsis empty.git diff 94e037b 03a30fcchanges only paths under.agents/skills/, so the review at94e037bstill covers every other file.03a30fc:make docker-ciprinted "all CI gates passed", andgit status --porcelainwas empty after it.make corrections-base BASE=origin/mainprints the "predates" notice.node scripts/check-template.mjsis ok (47 docs, 15 risk entries, 8 corrections lines). The repository's own README checker,.agents/skills/frostyard-readme/scripts/check-readme.mjs ., printsok README.md (service, 498 words).