Skip to content

Commit 05e8f5d

Browse files
authored
Merge pull request #4 from bketelsen/lucilla/baseline
feat: carry core's repository baseline (ADR-0071, B1 to B16)
2 parents 9ab0952 + 659c365 commit 05e8f5d

17 files changed

Lines changed: 232 additions & 21 deletions

‎.cursorrules‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AGENTS.md

‎.github/dependabot.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Dependabot (frostyard/core ADR-0071 row B13). This template has one manifest
2+
# that needs updates: the actions the workflows pin. Add 1 entry for each other
3+
# ecosystem with a manifest: "gomod" for go.mod, "npm" for package.json,
4+
# "cargo" for Cargo.toml, "docker" for a Dockerfile or Containerfile.
5+
version: 2
6+
updates:
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
open-pull-requests-limit: 5
12+
commit-message:
13+
prefix: "ci"
14+
include: "scope"

‎.github/risk-paths.json‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
{
2525
"glob": "scripts/lib/**",
2626
"why": "governance: the vendored risk-path validator and matcher"
27+
},
28+
{
29+
"glob": "mise.toml",
30+
"why": "supply chain: the tool pins that CI installs"
31+
},
32+
{
33+
"glob": "mise.lock",
34+
"why": "supply chain: the checksums of the tools that CI installs"
2735
}
2836
]
2937
}

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ jobs:
2727
with:
2828
persist-credentials: false
2929
fetch-depth: 0
30-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
30+
# Node comes from mise.toml and mise.lock (ADR-0043), checksum-verified,
31+
# the same way a developer's `mise install` does.
32+
- uses: jdx/mise-action@3c2e0cf82a5b2e5249f0d3635a4d83d0ae861518 # v4.2.5
3133
with:
32-
node-version: "22"
34+
install: true
35+
install_args: node
36+
cache: true
3337
- run: make ci BASE="$BASE"
3438
env:
3539
BASE: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha || '' }}

‎.github/workflows/risk-paths.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
permissions:
1616
contents: read
1717
pull-requests: write
18-
uses: frostyard/core/.github/workflows/risk-paths.yml@1b02a129026329cef2b46d1fbd0465a863c1cd81
18+
uses: frostyard/core/.github/workflows/risk-paths.yml@1b02a129026329cef2b46d1fbd0465a863c1cd81 # frostyard/core main, 2026-11-04 (core has no release tags)

‎.memory/corrections.jsonl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
{"date":"2026-11-04","scope":"check-template","correction":"The docs-index gate must read Markdown link targets as Markdown does: decode percent escapes, accept <...> targets, and count reference-link definitions; a literal path match fails valid links","evidence":"T801 t10 branch lucilla/t10-template-l3, cross-review (openai/gpt-6.1-sol) of head ec7bf2a, finding 1","promoted_to":"test/check-template.test.mjs"}
22
{"date":"2026-11-04","scope":"check-template","correction":"A link-pattern gate must match the whole link, closing delimiter included; a pattern that stops at the target accepts incomplete text such as [Doc](path as an index link","evidence":"T801 t10 branch lucilla/t10-template-l3, cross-review (openai/gpt-6.1-sol) re-review 1 of head 51e2bde","promoted_to":"test/check-template.test.mjs"}
3+
{"date":"2026-11-05","scope":"docs/adr","correction":"The template's ADRs 0001 to 0003 are Accepted; their YYYY-MM-DD date is a placeholder, not a draft status. Record a new rule in a core ADR listed in docs/org-adrs.md or in a new ADR; never edit their decision or consequences","evidence":"bketelsen/agentic-template#4, cross-review (openai/gpt-6.1-sol) of head 30bf449, finding 1","promoted_to":"AGENTS.md"}

‎AGENTS.md‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ One or two sentences describing the project. Start at
99
[docs/README.md](docs/README.md).
1010

1111
This file (`AGENTS.md`) is the CANONICAL agent instructions — `CLAUDE.md`,
12-
`GEMINI.md`, and `.github/copilot-instructions.md` are symlinks to it, and
13-
`.claude/skills` symlinks to `.agents/skills/`
12+
`GEMINI.md`, `.cursorrules`, and `.github/copilot-instructions.md` are symlinks
13+
to it, and `.claude/skills` symlinks to `.agents/skills/`
1414
([ADR-0002](docs/adr/0002-agent-portable-instruction-surface.md)). Edit only
1515
the canonical paths; keep content tool-agnostic.
1616

@@ -43,6 +43,9 @@ removed. -->
4343
- Run `make verify` before you call any change done. CI job `verify` runs
4444
`make ci`, which also checks that `.memory/corrections.jsonl` is append-only
4545
against the PR base; run `make ci BASE=origin/main` for the same check locally.
46+
- `mise.toml` and `mise.lock` pin every tool the gate runs (ADR-0043 in core);
47+
run `mise install` to get those versions. Change a pin only with `mise lock`,
48+
in a commit of its own.
4649

4750
**Test reliability.** No sleeps for timing (wait on a condition or inject a
4851
clock). No network and no wall clock in unit tests (inject them). A flaky test
@@ -77,7 +80,10 @@ Docs live in `docs/` in four categories. **Every new doc starts from its
7780
category's `TEMPLATE.md`** and follows its structure:
7881

7982
- `docs/adr/` — why we decided. Immutable once Accepted; reversals are new
80-
ADRs that mark the old one Superseded.
83+
ADRs that mark the old one Superseded. This includes ADRs 0001 to 0003 that
84+
come with the template: their `YYYY-MM-DD` date is a placeholder, not a
85+
draft status. A new org-wide rule goes in a core ADR listed in
86+
`docs/org-adrs.md`; a new project rule goes in a new ADR.
8187
- `docs/design/` — how it fits together. Living; updated in place to match
8288
reality.
8389
- `docs/specs/` — exact contracts. Change only alongside implementing code.

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Brian Ketelsen
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ NODE_MAJOR := $(shell node -p "process.versions.node.split('.')[0]" 2>/dev/null)
33
.PHONY: verify check ci
44

55
verify:
6-
@if ! command -v node >/dev/null 2>&1; then echo "FAIL: make verify requires Node.js 22 or later and make"; exit 1; fi
7-
@if [ "$(NODE_MAJOR)" = "" ] || [ "$(NODE_MAJOR)" -lt 22 ]; then echo "FAIL: make verify requires Node.js 22 or later and make (found: $$(node --version 2>/dev/null || echo missing))"; exit 1; fi
6+
@if ! command -v node >/dev/null 2>&1; then echo "FAIL: make verify requires Node.js 22 or later and make; run: mise install"; exit 1; fi
7+
@if [ "$(NODE_MAJOR)" = "" ] || [ "$(NODE_MAJOR)" -lt 22 ]; then echo "FAIL: make verify requires Node.js 22 or later and make (found: $$(node --version 2>/dev/null || echo missing)); run: mise install"; exit 1; fi
88
node scripts/check-template.mjs
99
node --test test/*.test.mjs
1010

‎README.md‎

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ where this structure has held up across every coding agent thrown at it.
1010
Agents succeed when the repository answers their questions before they ask:
1111

1212
- **One law, every agent.** `AGENTS.md` is the canonical instruction file;
13-
`CLAUDE.md`, `GEMINI.md`, and `.github/copilot-instructions.md` are symlinks
14-
to it, so Claude Code, Copilot, Gemini, and whatever comes next all read the
15-
same rules. Skills live once in `.agents/skills/` (`.claude/skills` is a
16-
symlink). No drift, ever.
13+
`CLAUDE.md`, `GEMINI.md`, `.cursorrules`, and
14+
`.github/copilot-instructions.md` are symlinks to it, so Claude Code,
15+
Copilot, Gemini, Cursor, and whatever comes next all read the same rules.
16+
Skills live once in `.agents/skills/` (`.claude/skills` is a symlink). No
17+
drift, ever.
1718
- **Docs split by the question they answer.** `docs/adr/` (why — immutable),
1819
`docs/design/` (how — living), `docs/specs/` (what exactly — testable
1920
contracts), `docs/plans/` (when — phases with "Done when" outcomes). An agent
@@ -48,39 +49,59 @@ Agents succeed when the repository answers their questions before they ask:
4849
"done", and CI runs it.
4950
3. Set the dates in `docs/adr/0001`, `0002` and `0003` to today; they're
5051
pre-accepted because this template implements them.
51-
4. Write your first real ADR (0004) for your first significant choice —
52+
4. Set the copyright holder and year in `LICENSE`. Keep MIT unless the project
53+
inherits GPL-3.0.
54+
5. Replace the repository URL and the supported-versions section in
55+
`SECURITY.md` with your own.
56+
6. Add an entry to `.github/dependabot.yml` for each package ecosystem the
57+
project adds: `gomod`, `npm`, `cargo`, `docker`.
58+
7. For a released Go project, add `.svu.yml` and a `bump` target that runs
59+
`svu next`; use the Go and golangci-lint versions of core's
60+
`frostyard-go-repo` skill.
61+
8. For a user-facing tool, add a `site/` docs site (core ADR-0070).
62+
9. Write your first real ADR (0004) for your first significant choice —
5263
language, framework, storage — and keep going from there.
53-
5. Delete this "Using this template" section and make the README describe your
54-
project.
64+
10. Delete this "Using this template" section and make the README describe your
65+
project.
66+
67+
The full checklist is core's [repository baseline
68+
spec](https://github.com/frostyard/core/blob/main/docs/specs/repository-baseline.md).
5569

5670
## Layout
5771

5872
```
5973
AGENTS.md canonical agent instructions (the law)
6074
CLAUDE.md → AGENTS.md symlink for Claude Code
6175
GEMINI.md → AGENTS.md symlink for Gemini CLI
76+
.cursorrules → AGENTS.md symlink for Cursor
6277
.github/copilot-instructions.md → AGENTS.md
6378
.agents/skills/ canonical skills; TEMPLATE/SKILL.md to copy
6479
.claude/skills → .agents/skills
6580
docs/README.md taxonomy + index (every doc gets a line)
81+
docs/org-adrs.md core ADRs that bind this repository
6682
docs/adr/ why — immutable decisions + TEMPLATE.md
6783
docs/design/ how — living architecture docs + TEMPLATE.md
6884
docs/specs/ what — testable contracts + TEMPLATE.md
6985
docs/plans/ when — phased plans + TEMPLATE.md
7086
Makefile verify, check and ci triad
87+
mise.toml, mise.lock tool pins; `mise install` provisions them
88+
LICENSE MIT license text
89+
SECURITY.md private vulnerability reporting
7190
scripts/ template and corrections gates
7291
scripts/lib/risk-paths.mjs pinned risk-path validator and matcher
7392
scripts/check-template.mjs template verification entry point
7493
scripts/check-corrections.mjs pinned append-only corrections gate
7594
test/ Node.js test fixtures and gate tests
7695
.memory/ append-only corrections inbox
7796
.github/risk-paths.json high-risk repository paths
97+
.github/dependabot.yml dependency update config
7898
.github/pull_request_template.md risk tier and verification checklist
7999
.github/workflows/ CI and risk-paths caller workflows
80100
```
81101

82-
`make verify` needs only Node.js 22 or later and `make`. It uses no package
83-
manager, `package.json`, install step or third-party dependency.
102+
`make verify` needs only Node.js 22 or later and `make`; `mise install`
103+
provides the pinned Node. It uses no package manager, `package.json`, install
104+
step or third-party dependency.
84105

85106
Symlinks require Linux/macOS (or `core.symlinks=true` on Windows); GitHub's
86107
web renderer shows symlinks as their target path, which is cosmetic only.
@@ -115,5 +136,13 @@ web renderer shows symlinks as their target path, which is cosmetic only.
115136
Repository rulesets are not copied from a template. `15368` is the GitHub
116137
Actions app; `actor_id` 5 is the repository admin role.
117138
118-
3. Add your repository's high-risk paths to `.github/risk-paths.json`. Use globs
139+
3. Enable private vulnerability reporting. Repository settings are not copied
140+
from a template, so no repository made from this one has it. Run it as a
141+
repository admin:
142+
143+
```sh
144+
gh api -X PUT repos/OWNER/REPO/private-vulnerability-reporting
145+
```
146+
147+
4. Add your repository's high-risk paths to `.github/risk-paths.json`. Use globs
119148
and a category from the [core risk-path specification](https://github.com/frostyard/core/blob/main/docs/specs/risk-paths.md).

0 commit comments

Comments
 (0)