diff --git a/AGENTS.md b/AGENTS.md index 46dd851..0c04934 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,23 +1,28 @@ # AGENTS.md — Worktrunk Scripts -Deno worktree hooks for `worktrunk` automating environment setup, warm-copy indexing, and path isolation. +Deno worktree hooks for `worktrunk` automating environment setup, warm-copy +indexing, and path isolation. ## Standing Law -Read `CONSTITUTION.md` before architecture or rule authoring. +Read the organization's `repos/constitution/CODING_STANDARDS.md` and `REVIEW.md` +before you propose a test, a check or a design. -Startup: confirm working directory and active task; run `deno task check` and repair failures before adding scope. +Startup: confirm working directory and active task; run `deno task check` and +repair failures before adding scope. ## Routing -Load docs on-demand when triggers fire; do not perform eager multi-spec reads at startup. +Load docs on-demand when triggers fire; do not perform eager multi-spec reads at +startup. -| Doc | Trigger | -| ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `CONSTITUTION.md` | architecture changes, rule authoring, or design disputes | -| `repos/constitution/ENFORCEMENT.md` | building or changing an instrument that grades work (lint gates, stream rules, CI checks, thresholds, rubrics, advisors); situational read only | -| `docs/solutions/tooling/bash-to-deno-port-semantics.md` | modifying path mapping, git command wrappers, or cross-platform Deno CLI semantics | -| `subtrees.toml` | updating or adding vendored git subtrees | +| Doc | Trigger | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `repos/constitution/CODING_STANDARDS.md`, `repos/constitution/REVIEW.md` | you plan, write or review any change; before you propose a test, a check or a design | +| `repos/constitution/GRADERS.md` | you build or change a check: a lint rule, CI job, hook, threshold or rubric | +| `repos/constitution/WORKING.md` | always; `CLAUDE.md` imports it | +| `docs/solutions/tooling/bash-to-deno-port-semantics.md` | modifying path mapping, git command wrappers, or cross-platform Deno CLI semantics | +| `subtrees.toml` | updating or adding vendored git subtrees | ## Stack & Conventions @@ -28,15 +33,15 @@ Load docs on-demand when triggers fire; do not perform eager multi-spec reads at ## Surface Classes -| Surface | Examples | Rule | -| ------------- | --------------------------------------- | ----------------------------------------------------------------------------------------------- | -| **Evaluator** | `.github/workflows/` | Its own commit, never shared with the work it judges; gate observed red before and green after. | -| **Doctrine** | `CONSTITUTION.md`, `AGENTS.md`, `docs/` | Editable, but never an input to a gate. | -| **Editable** | `scripts/`, `deno.json`, `dprint.json` | Edit freely within active task. | +| Surface | Examples | Rule | +| ------------- | ------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| **Evaluator** | `.github/workflows/` | Its own commit, never shared with the work it judges; gate observed red before and green after. | +| **Doctrine** | `CODING_STANDARDS.md`, `AGENTS.md`, `docs/` | Editable, but never an input to a gate. | +| **Editable** | `scripts/`, `deno.json`, `dprint.json` | Edit freely within active task. | ## Directory Map -Root doctrine file `CONSTITUTION.md`. +Root doctrine file `CODING_STANDARDS.md`. | Directory | What it is | Governance | | -------------- | --------------------------------------------------------- | ----------------- | diff --git a/CLAUDE.md b/CLAUDE.md index 58bc96f..5d5ba9b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,3 +1,5 @@ @AGENTS.md + @subtrees.toml -@CONSTITUTION.md + +@repos/constitution/WORKING.md diff --git a/CONSTITUTION.md b/CONSTITUTION.md deleted file mode 120000 index 67e49c5..0000000 --- a/CONSTITUTION.md +++ /dev/null @@ -1 +0,0 @@ -repos/constitution/CONSTITUTION.md \ No newline at end of file diff --git a/REVIEW.md b/REVIEW.md new file mode 100644 index 0000000..5f6afac --- /dev/null +++ b/REVIEW.md @@ -0,0 +1,8 @@ +# Review instructions + +This repository is reviewed against the organization's review policy and coding +standards, included below, and its own `CODING_STANDARDS.md` where one exists. + +@repos/constitution/REVIEW.md + +@repos/constitution/CODING_STANDARDS.md diff --git a/docs/solutions/tooling/doctrine-symlink-dangles-after-constitution-drops-a-file.md b/docs/solutions/tooling/doctrine-symlink-dangles-after-constitution-drops-a-file.md index 072af79..a6e8bb7 100644 --- a/docs/solutions/tooling/doctrine-symlink-dangles-after-constitution-drops-a-file.md +++ b/docs/solutions/tooling/doctrine-symlink-dangles-after-constitution-drops-a-file.md @@ -21,7 +21,7 @@ The constitution removed `CONSTITUTION-ARTICLES.md` (systemfsoftware/constitutio ## Fix -Delete the symlink and its AGENTS.md routing row. `CONSTITUTION.md` is the only root doctrine file. +Delete the symlink and its AGENTS.md routing row. `CODING_STANDARDS.md` is the only root doctrine file. ## Prevention diff --git a/subtrees.toml b/subtrees.toml index 4e66a8d..742b580 100644 --- a/subtrees.toml +++ b/subtrees.toml @@ -2,4 +2,4 @@ name = "constitution" url = "https://github.com/systemfsoftware/constitution" branch = "main" -description = "Shared engineering laws for clean code, testing, and project organization at System F Software" +description = "The organization's shared CODING_STANDARDS.md and REVIEW.md, included from REVIEW.md"