Skip to content

chore: hold core to its own repository baseline (ADR-0071) - #205

Merged
bketelsen merged 3 commits into
mainfrom
lucilla/core-baseline
Nov 6, 2026
Merged

bketelsen merged 3 commits into
mainfrom
lucilla/core-baseline

Conversation

@frostyard-machines

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

Copy link
Copy Markdown
Contributor

Summary

Brian decided (T960f, 2026-11-05) that every repository gets the bketelsen/truenas-mcp#52 treatment, to the repository baseline (ADR-0071, spec, rows B1 to B16). ADR-0071 says "Core is a code repository and is held to the baseline too." Core missed 3 rows: B3 (docs/org-adrs.md), B13 (Dependabot) and B14 (SECURITY.md). This PR adds them and a test that holds core to the rows it can check in its own tree.

  • B3: docs/org-adrs.md says that every ADR in docs/adr/ is org-wide and binds core, lists the baseline ADRs with what each binds here, and names the rows that do not apply to core (B8, B9, B11). docs/README.md links it. scripts/check-docs.mjs now also checks the links in docs/org-adrs.md (1 line; the docs-integrity test fixture writes the file).
  • B13: .github/dependabot.yml with github-actions and npm (the root package.json), weekly. Skill payloads are not scanned; the hash-locked docs-site scaffold requirements.txt stays with the hygiene line, as ADR-0071 says.
  • B14: SECURITY.md: only main gets fixes (core has no releases or tags; callers pin core's reusable workflow by SHA, so a workflow fix reaches them when they update the pin), private vulnerability reporting at https://github.com/frostyard/core/security, and the high-risk areas (the reusable risk-paths workflow, the skills sync, the settings scripts, the synced skills and templates). Private vulnerability reporting is on for core (gh api repos/frostyard/core/private-vulnerability-reporting → {"enabled":true}).
  • Guard: test/repository-baseline.test.mjs, 1 test per row: B1, B3, B4, B5 (every workflow: SHA pin with a version comment, top-level permissions: {}, and persist-credentials: false as a direct child of each checkout step's own with:, comments ignored, by checkoutCredentials with 10 fixtures), B7, B12, B13 (a pure missingEcosystems function plus the live tree), B14, B15. B2, B6 and B16 already have gates (check-corrections, check-risk-paths and risk-paths.test.mjs, no-leftover-agent-trees.test.mjs).
  • Drift fixes: the README layout block names .cursorrules, CONTRIBUTING.md, .memory/, dependabot.yml, LICENSE, SECURITY.md, scripts/ and test/; tests/README.md names the third suite (the Node unit tests in test/); .claude/session-summary.md (the ADR-0029 session file) replaces its August state with the current one.

No behavior change: core has no product code. docs/tenets.md, .agents/skills/, .github/workflows/, .github/risk-paths.json, .github/skills-sync.json and the sync scripts are not changed: git diff origin/main --name-only -- docs/tenets.md .agents .github/workflows .github/risk-paths.json .github/skills-sync.json scripts/sync-skills.sh scripts/lib is empty. The only script change is the 1 added path in the docs gate's link list.

Inventory

Core has no product code, so the inventory covers the whole tree. Counts at the PR head: 258 tracked paths outside .agents/skills/ (254 on the base), 225 inside.

File or group Verdict Reason
AGENTS.md; CLAUDE.md, GEMINI.md, .cursorrules, CONTRIBUTING.md, .github/copilot-instructions.md (symlinks) keep B1, ADR-0029 aliases. Not changed.
.claude/settings.json, .claude/skills → .agents/skills keep The 2 allowed .claude/ files besides the summary (B16). Not changed.
.claude/session-summary.md keep, update ADR-0029 names it; its state dated from August (an ACMM PR "in flight"). Now current.
.agents/skills/ (30 skills, 225 files) keep The shared skills the sync sends to other repositories. Not changed. No leftover trees (no-leftover-agent-trees.test.mjs), no Go files (managed-skills-go-free.test.mjs).
docs/README.md, docs/adr/ (0001 to 0071 + TEMPLATE), docs/design/, docs/specs/ (with schemas/), docs/plans/ keep B3. Only 1 paragraph is added to docs/README.md. ADRs not changed.
docs/org-adrs.md add B3.
docs/tenets.md keep Brian's own. Not changed.
docs/quality.md, docs/metrics.md, docs/review-rubric.md (symlinks) keep ADR-0029 aliases.
.memory/README.md, .memory/corrections.jsonl keep B2. 1 line added for the review blocker (below).
Makefile, mise.toml, mise.lock, package.json, package-lock.json keep B4. Not changed.
.github/workflows/ (6), .github/risk-paths.json keep B5, B6, B12. Not changed.
.github/pull_request_template.md, .github/ISSUE_TEMPLATE/, .github/prompts/ keep B7; issue templates and task runbooks (AGENTS.md names .github/prompts/). Not changed.
.github/secrets-expiry.json, .github/skills-sync.json, .github/stable-repository.json keep ADR-0045, the skills sync, the drift alarm. Not changed.
.github/dependabot.yml add B13.
scripts/ (27 paths at the head), test/ (21 test files at the head, 20 on the base) keep The validators and their tests. 1 line in scripts/check-docs.mjs; 1 fixture line in test/docs-integrity.test.mjs; test/repository-baseline.test.mjs added.
tests/README.md, tests/e2e/README.md, tests/e2e/scaffold-tests (symlink) keep ADR-0029 test surface. tests/README.md updated (3 suites).
organization/, policies/agent-governance.json keep Organization authority and core's governance policy. Not changed.
templates/README.md, assets/ keep Shared material. Not changed.
README.md keep, update Layout block.
LICENSE keep B10, MIT (core#203).
SECURITY.md add B14.
.coverage-thresholds.json, .editorconfig, .gitignore, .prettierrc.json keep Gate thresholds and editor config. Not changed.

No agent-framework tree exists (B16): nothing to move or delete. Counts: 0 moved, 0 deleted, 4 added, 7 updated.

Baseline rows

Row Status Why
B1 Instruction surface done (already) AGENTS.md 100644; 4 aliases 120000 to it. New test.
B2 Corrections inbox done (already) 20 lines (1 new from the review), check:corrections in verify.
B3 Docs shape done docs/org-adrs.md added and linked. New test.
B4 Make gate and tool pins done (already) verify, check, ci; ci runs npm run check, which runs npm run verify. mise.toml, mise.lock. New test.
B5 Pinned actions done (already) All uses: are 40-char SHAs with a version comment (the caller uses a local ./ workflow); permissions: {}; persist-credentials: false. New test covers every workflow.
B6 Risk paths done (already) .github/risk-paths.json and risk-paths-caller.yml. Core does not release; the skills sync, which writes to other repositories, is covered by .github/workflows/**, scripts/sync-skills.sh and scripts/lib/skills-sync-*.sh.
B7 PR template done (already) ## Risk tier. New test.
B8 svu not applicable No go.mod, no release workflow.
B9 Docs site not applicable Core is not a user-facing tool (no command, application or service). No follow-up.
B10 License done (already) MIT, gh api gives MIT.
B11 Go toolchain not applicable No go.mod. No follow-up.
B12 CI entry done (already) ci.yml runs make ci on pull_request. New test.
B13 Dependabot done github-actions, npm. New test.
B14 Security policy done SECURITY.md added; private vulnerability reporting is on. New test.
B15 No CODEOWNERS done (already) None. New test.
B16 No framework trees done (already) no-leftover-agent-trees.test.mjs. .claude/ holds only the 3 allowed names.

Follow-ups: none for B9 or B11 (they do not apply). Dependabot will propose actions/checkout and actions/setup-node bumps on its own; test/risk-paths.test.mjs and the new B5 test check that each bump stays SHA-pinned.

Risk tier

Risk tier: 1 — docs, a Dependabot config, 1 test and 1 line in the docs gate's link list (stricter, not looser). No path in .github/risk-paths.json matches: no workflow, no sync script, no risk list, no policy changes.

Docs housekeeping

  • New docs started from their category's TEMPLATE.md (docs/org-adrs.md is not a category doc; it follows the org-adrs.md shape of agentic-template and truenas-mcp)
  • Every new doc indexed in docs/README.md (org-adrs.md linked under the taxonomy)
  • Cross-links added in both directions (docs/org-adrs.md ↔ docs/README.md; it links ADR-0071 and the baseline spec)
  • No ADR changed
  • Conformance aliases (ADR-0029) untouched

Verification

  • make ci: exit 0. docs_index_coverage 1.000, link_integrity 1.000, symlink_resolution 1.000, bash_syntax 6/6, corrections: 20 lines, risk_paths: 12 entries, workflow in sync; # tests 347, # pass 347, # fail 0 (the skills-sync tests included).
  • node scripts/check-docs.mjs green; it now also checks the links of docs/org-adrs.md.
  • Revert tests (each restored after): without the security URL in SECURITY.md, B14: SECURITY.md names GitHub private vulnerability reporting fails; without the npm entry in dependabot.yml, B13: core's Dependabot configuration covers every manifest in the tree fails; with actions/checkout@v4 in secrets-expiry.yml, B5 fails with secrets-expiry.yml: unpinned action: - uses: actions/checkout@v4.
  • Revert test for the review fix (scratch worktree at the head, removed after): with persist-credentials: false commented out in ci.yml line 29, the new test fails (not ok 5 - B5: every workflow ... keeps no credentials, ci.yml: a checkout keeps credentials); the B5 test of 86a187b passes the same tree (10 pass, 0 fail). With with: changed to env: at ci.yml line 28, the test at the head fails the same way (ci.yml: a checkout keeps credentials, 10 pass, 1 fail); the test of a05566a passes that tree (11 pass, 0 fail).
  • Docs-site skill not changed. Workflows not changed.

Cross-review

Coder: deepseek/deepseek-flash (small edits by claude-opus-5.5). Reviewer: openai/gpt-6.1-sol.

  • Initial review (base ff19515, head 86a187b): Not ready, 1 blocker. B5 compared workflow-wide counts of checkouts and persist-credentials: false, so a commented-out setting passed. Fixed in a05566a: checkoutsKeepingCredentials ties each checkout step to its own setting and ignores comments, with fixtures for a missing, a commented, a trailing-comment, a misplaced and a true setting, and a check that the live run found at least 1 checkout. Guard: the fixtures, plus 1 line in .memory/corrections.jsonl.
  • Re-review 1 (head a05566a): Not ready, 1 blocker. The flat step scan accepted persist-credentials: false under env:. Fixed in the next commit: checkoutCredentials keeps each line's indent and accepts the key only as a direct child of the step's own with:; fixtures for env:, a step-level key and named steps; the live checkout count now comes from the same parser. The corrections line names both cases.
  • Non-blocking, fixed: SECURITY.md said consumers copy the risk-paths workflow; they pin it by SHA (ADR-0068). The inventory counts now name the head.
  • Re-review 2 (head 8aa29f1): Ready, Blocking: none. The reviewer confirmed 6 checkout steps across 4 workflows, each with the setting under its own with:.

Add SECURITY.md (B14), .github/dependabot.yml for github-actions and npm
(B13) and docs/org-adrs.md (B3). test/repository-baseline.test.mjs holds
core to rows B1, B3, B4, B5, B7, B12, B13, B14 and B15. The docs gate
checks links in docs/org-adrs.md. README layout, tests/README and the
session summary match the tree.
The cross-review found that comparing workflow-wide counts passed a
commented-out persist-credentials: false. checkoutsKeepingCredentials
reads each step, ignores comments, and has fixtures for a missing, a
commented, a trailing-comment, a misplaced and a true setting.
SECURITY.md now says that callers pin core's reusable workflow by SHA.
1 corrections line.
…(B5)

Re-review 1 found that the flat step scan passed the key under env:.
checkoutCredentials keeps each line's indent, finds uses: and with: at
the step's key level, and accepts the setting only as a direct child of
with:. It also returns the checkout count, which the live test uses.
Fixtures add env:, step-level and named-step cases.
@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 46d39c6 into main Nov 6, 2026
6 checks passed
@bketelsen
bketelsen deleted the lucilla/core-baseline branch November 6, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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