From cb3cc58a2f85095673b5ca2d0bc4850e5c7ddfb2 Mon Sep 17 00:00:00 2001 From: systemfsoftware-bot <318394648+systemfsoftware-bot@users.noreply.github.com> Date: Sun, 22 Nov 2026 18:26:09 -0500 Subject: [PATCH 1/2] docs: adopt the organization's CODING_STANDARDS.md and REVIEW.md in place of CONSTITUTION.md --- AGENTS.md | 35 ++++++++++--------- CLAUDE.md | 2 +- CONSTITUTION.md | 1 - REVIEW.md | 8 +++++ ...dangles-after-constitution-drops-a-file.md | 2 +- subtrees.toml | 2 +- 6 files changed, 30 insertions(+), 20 deletions(-) delete mode 120000 CONSTITUTION.md create mode 100644 REVIEW.md diff --git a/AGENTS.md b/AGENTS.md index 46dd851..0b7795b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,23 +1,26 @@ # 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 | +| `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 +31,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..d1e9521 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,3 +1,3 @@ @AGENTS.md + @subtrees.toml -@CONSTITUTION.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" From 5b2b5036ccc23d9ff3862e5cd9cdf5837b2723a8 Mon Sep 17 00:00:00 2001 From: systemfsoftware-bot <318394648+systemfsoftware-bot@users.noreply.github.com> Date: Sun, 22 Nov 2026 18:48:24 -0500 Subject: [PATCH 2/2] docs: import the organization's WORKING.md always-on, route GRADERS.md, and retarget merged rule IDs --- AGENTS.md | 2 ++ CLAUDE.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 0b7795b..0c04934 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,6 +19,8 @@ startup. | 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 | diff --git a/CLAUDE.md b/CLAUDE.md index d1e9521..5d5ba9b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,3 +1,5 @@ @AGENTS.md @subtrees.toml + +@repos/constitution/WORKING.md