Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 |
| -------------- | --------------------------------------------------------- | ----------------- |
Expand Down
4 changes: 3 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@AGENTS.md

@subtrees.toml
@CONSTITUTION.md

@repos/constitution/WORKING.md
1 change: 0 additions & 1 deletion CONSTITUTION.md

This file was deleted.

8 changes: 8 additions & 0 deletions REVIEW.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion subtrees.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Loading