Skip to content

feat: carry core's repository baseline (ADR-0071, B1 to B16) - #4

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

bketelsen merged 2 commits into
mainfrom
lucilla/baseline

Conversation

@frostyard-machines

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

Copy link
Copy Markdown
Collaborator

Summary

Brian decided (T960f, 2026-11-05) that every repository gets the bketelsen/truenas-mcp#52 treatment, to core's repository baseline (ADR-0071, spec, rows B1 to B16). This template is the source the other repositories copy, so it goes first. ADR-0071 names this obligation: "bketelsen/agentic-template gains SECURITY.md, .github/dependabot.yml and LICENSE".

  • B1: .cursorrules → AGENTS.md. The template gate (scripts/check-template.mjs) now checks it (5 symlinks), with 2 new tests.
  • B3: docs/org-adrs.md lists the core ADRs that bind a repository made from the template, and the ones that apply only to a released Go repository or a user-facing tool. docs/README.md indexes it.
  • B4: mise.toml and mise.lock pin Node 24.22.2 (7 platforms, checksums from mise lock; they are equal to the checksums in truenas-mcp's lock). CI installs Node with jdx/mise-action (v4.2.5, the SHA truenas-mcp uses; checked against the tag) instead of actions/setup-node.
  • B5: the core reusable-workflow ref gets a comment. Core has no release tags, so it names the branch and date.
  • B6: mise.toml and mise.lock join the risk list (they decide what CI installs).
  • B10: LICENSE, MIT, Copyright (c) 2026 Brian Ketelsen.
  • B13: .github/dependabot.yml with github-actions, and a comment that names the other ecosystems to add.
  • B14: SECURITY.md names private vulnerability reporting at https://github.com/bketelsen/agentic-template/security and says only main gets fixes.
  • README: the per-project steps (LICENSE holder, SECURITY.md, Dependabot ecosystems, svu and the fleet toolchain for Go, a site for a tool) and a new after-create step to enable private vulnerability reporting. Template ADRs 0001 to 0003 are not changed: they are Accepted, and core ADR-0043 and ADR-0071 (listed in docs/org-adrs.md) carry the new decisions.

No behavior change outside the gate: the template has no product code. The only code change is 1 entry in the gate's symlink list, its header comment and the ok line (git diff origin/main -- scripts/).

Inventory

File or group Verdict Reason
AGENTS.md, CLAUDE.md, GEMINI.md, .github/copilot-instructions.md, .claude/skills, .agents/skills/TEMPLATE/ keep The instruction surface (B1). .cursorrules is added.
docs/README.md, docs/adr/ (0001 to 0003, TEMPLATE), docs/design/, docs/specs/, docs/plans/ TEMPLATEs keep The docs shape (B3). The ADRs are not changed. docs/org-adrs.md is added.
Makefile keep The make triad (B4). Only the 2 Node error messages change (run: mise install).
scripts/check-template.mjs, test/check-template.test.mjs keep The template gate. .cursorrules is added to the symlink check.
scripts/check-corrections.mjs, scripts/lib/risk-paths.mjs keep Vendored from core at 1b02a12; hashes still match core origin/main. Not changed.
.memory/README.md, .memory/corrections.jsonl keep The corrections inbox (B2). 1 line added for the review fix.
.github/pull_request_template.md keep Has the Risk tier section (B7). Not changed.
.github/risk-paths.json, .github/workflows/risk-paths.yml, .github/workflows/ci.yml keep B6, B12. Changed as above.
README.md keep Updated layout and steps.

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

Baseline rows

Row Status Why
B1 Instruction surface done .cursorrules added; gate checks all 4 aliases and .claude/skills.
B2 Corrections inbox done 3 lines (1 new from the review), 5 fields; gate validates.
B3 Docs shape done docs/org-adrs.md added and indexed.
B4 Make gate and tool pins done Triad existed; mise.toml and mise.lock added.
B5 Pinned actions done All uses: are 40-char SHAs with a comment; permissions: {}; persist-credentials: false.
B6 Risk paths done List and caller existed; mise files added. The template does not release or deploy.
B7 PR template done (already) Has ## Risk tier.
B8 svu exempt No go.mod, no release workflow. README and docs/org-adrs.md tell a released Go project to add .svu.yml and bump.
B9 Docs site not applicable here; follow-up The template is not a user-facing tool. Follow-up: a separate PR can decide whether the template carries a site/ skeleton (T960a, frostyard-docs-site).
B10 License done MIT.
B11 Go toolchain exempt No go.mod. README and docs/org-adrs.md point Go projects at the "Fleet toolchain" section. No toolchain bump here.
B12 CI entry done (already) ci.yml runs make ci on pull requests.
B13 Dependabot done github-actions (the only ecosystem with a manifest).
B14 Security policy done in the file; settings step for Brian SECURITY.md added. Private vulnerability reporting is off on this repository (gh api repos/bketelsen/agentic-template/private-vulnerability-reporting → {"enabled":false}); Brian enables it (below).
B15 No CODEOWNERS done (already) None in the tree.
B16 No framework trees done (already) None; .claude/ holds only skills.

Follow-ups: B9 (site skeleton decision, separate PR); Dependabot will propose the actions/checkout bump (v4.2.2 → current) on its own.

Settings step for Brian (the machine account cannot change settings): gh api -X PUT repos/bketelsen/agentic-template/private-vulnerability-reporting.

Risk tier

Risk tier: 3 — the PR changes CI and the gate. Matched risk paths, and why each change is safe:

  • .github/workflows/ci.yml: actions/setup-node (Node 22) is replaced by jdx/mise-action@3c2e0cf… (v4.2.5, verified as the tag's commit), which installs the Node in mise.lock with checksum checks. permissions, persist-credentials: false, triggers and the make ci step do not change.
  • .github/workflows/risk-paths.yml: a trailing comment only; the pinned SHA is unchanged.
  • .github/risk-paths.json: 2 entries added (mise.toml, mise.lock); none removed.
  • Makefile: 2 error messages gain ; run: mise install. No target or check changes.
  • scripts/check-template.mjs: .cursorrules added to the symlink list, so the gate is stricter, not looser.
  • mise.toml, mise.lock (listed by this PR, not yet on the base): new Node pin.

Docs housekeeping

  • New docs started from their category's TEMPLATE.md (docs/org-adrs.md follows core's org-adrs.md shape, as in truenas-mcp)
  • Every new doc indexed in docs/README.md
  • Cross-links added in both directions
  • New or edited ADRs are fact-only

Verification

  • make verify: exit 0. Gate: 5 symlinks, 4 docs indexed, 9 index links resolve, 8 entries, 2 pinned core copies match. Node tests: 26 passed, 0 failed.
  • make ci BASE=origin/main: exit 0, corrections: 3 lines, append-only vs origin/main.
  • Revert test: with .cursorrules removed, node scripts/check-template.mjs prints FAIL agent-symlinks: .cursorrules: missing link and exits 1. In a scratch worktree at the PR head, with scripts/check-template.mjs restored from 9ab0952, node --test test/*.test.mjs gives 24 pass, 2 fail: cursorrules missing exits 1 and .cursorrules as a regular file exits 1. The scratch worktree is removed.
  • Workflows changed: every action is SHA-pinned with a version comment, permissions: {}, and persist-credentials: false.

Cross-review

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

  • Initial review (head 30bf449): Not ready, 1 blocker. The PR edited Accepted ADRs 0002 and 0003, against the ADR immutability rule. Fixed in 659c365: both ADRs restored to the base text (git diff 9ab0952 659c365 -- docs/adr is empty); the decisions stay in core ADR-0043 and ADR-0071 via docs/org-adrs.md (a template ADR 0004 would collide with adopters' own 0004). Guard: an AGENTS.md rule (no test can catch an edit to an Accepted ADR), and 1 line in .memory/corrections.jsonl.
  • Re-review 1 (head 659c365): Ready, Blocking: none.

Add .cursorrules, LICENSE (MIT), SECURITY.md, .github/dependabot.yml,
mise.toml and mise.lock (Node 24.22.2), and docs/org-adrs.md. CI installs
Node with mise-action from the lock. The template gate checks .cursorrules.
The README lists the per-project steps and the settings step for private
vulnerability reporting.
@github-actions github-actions Bot added the risk:high Touches a path in .github/risk-paths.json label Nov 6, 2026
Revert the edits to ADR 0002 and 0003: they are Accepted, and the
baseline decisions live in core ADR-0043 and ADR-0071 (docs/org-adrs.md).
AGENTS.md now says the template ADRs' date placeholder is not a draft
status, and .memory/corrections.jsonl records the review finding.
@bketelsen
bketelsen merged commit 05e8f5d into main Nov 6, 2026
3 checks passed
@frostyard-machines
frostyard-machines deleted the lucilla/baseline branch November 6, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human risk:high Touches a path in .github/risk-paths.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants