Skip to content

Coding agents share one AGENTS.md, Loom workflow skills, path-scoped rules and a read-only reviewer - #57

Merged
zlareb1 merged 67 commits into
mainfrom
dev-agent-skills
Oct 17, 2026
Merged

zlareb1 merged 67 commits into
mainfrom
dev-agent-skills

Conversation

@zlareb1

@zlareb1 zlareb1 commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

Claude Code, Codex and Cursor now read one instruction file, AGENTS.md, plus Loom's development skills, path-scoped rules and a read-only reviewer subagent under .claude/. npx skills add ClickHouse/loom --skill loom-code installs only the published loom-code skill, and loom demo ingests AGENTS.md.

Why

Loom's working rules were spread over CLAUDE.md, a shorter AGENTS.md that had drifted from it, and what reviewers kept repeating in review: use a worktree, use your own ClickHouse, run the gates before pushing, keep internal details out of PR text, start review at the push, don't spend benchmark money without asking. Agents learned each rule by breaking it, and more of our PRs, issues and review replies now come from agents.

AGENTS.md is now the single file. Claude Code reads it through a short CLAUDE.md that imports it and adds two Claude Code-only rules; Codex and Cursor read it directly. It holds only what every change needs: the layout, the invariants that hold in every area, the commands, and one line per workflow that names the skill to use. It costs 3,037 tokens at the start of a session, against 7,311 for the 18.6 KB CLAUDE.md that main had before this PR (the first turn's input tokens in a fresh Claude Code session with no user-level instructions, minus the same session with no instruction files). Rules under .claude/rules/ load only when a matching file is read, so they are not in the 3,037.

Area detail moved to .claude/rules/<area>.md, one file per area (ClickHouse statements, migrations, memory plane, wire ops, settings, workers, code index, providers, plugins, frontend, Helm, tests, docs, bench). Claude Code loads a rule when it reads or edits a file under its paths:. Codex and Cursor don't read .claude/rules, so AGENTS.md lists the rules and gives the one-line command that maps a path to its rule. Each rule now lives in exactly one place; before this, "no TTL on durable memory" was written out five times.

The twelve skills are procedures, not reference docs. They link to docs/development/ and add only what the guides leave out:

  • loom-dev-setup: a worktree from origin/main (in Claude Code under .claude/worktrees/, so its rules load), a locked virtualenv, a private ClickHouse on free ports, and a worktree .env that refuses LOOM_* exports that would override it
  • loom-debug: failing cases from evidence (request id, loom.agent_events, system.query_log, memory.search_trace), the pattern they share, then a test that fails before the fix
  • loom-change: per kind of change, what else the same PR has to touch
  • loom-pre-push: the gates for the paths a diff touches, following CI's steps
  • loom-ship-pr, loom-review, loom-address-review: the PR body, a fresh review at every push alongside CI, one inline comment per finding, and a reply to each review thread naming the fixing commit
  • loom-investigate-ci: each CI job, its usual cause and how to reproduce it locally
  • loom-file-issue: duplicate check, reproduction, the matching issue form and a redacted body
  • loom-writing: plain technical English for commits, PRs, issues and comments, with scripts/check_prose.py to flag filler words, home paths, private addresses and secrets in a body file before it's posted
  • loom-bench: confirm the plan and its cost before any paid run, and leave nothing running
  • loom-deploy: manual only (disable-model-invocation for Claude Code and Cursor, agents/openai.yaml for Codex)

Each skill has evals/triggers.json with prompts that should and shouldn't load it, in the format the skill-creator optimizer runs. The development skills carry metadata: internal: true so npx skills add doesn't install them into users' projects.

The reviewer subagent (.claude/agents/loom-reviewer.md) preloads loom-review. Its Bash is limited by a PreToolUse hook (.claude/hooks/read_only_bash.py) to an exact list of git and gh reads, the prose checker and unit tests under tests/unit, and the hook refuses anything it can't parse. Claude Code runs a project subagent's hooks only in a trusted folder, so the reviewer's first command is true: if the hook's own refusal doesn't come back, it stops and says the hook is off.

.claude/settings.json pre-approves read-only git and gh commands and the gate targets. It asks before public GitHub writes, --force-with-lease and paid bench runs. It denies git stash, reset --hard, clean, force pushes, pushes to main or to tags, the writer flags on allowed commands (--output, --upload-pack, --basetemp), releases, redeploy.sh and the deployment's containers. The deny list catches an agent's mistakes; it isn't a security boundary, which for main is branch protection.

Scope and risk

  • Text and tooling only. The server changes are small: loom demo defaults to AGENTS.md, make server and loom serve --reload watch only server/ (so a worktree under .claude/worktrees/ doesn't restart the server), and LOOM_CH_CONTAINER is added to the variables that aren't settings. Four code comments that pointed at CLAUDE.md for the column-mirror rule now point at docs/architecture/clickhouse.md or state the rule.
  • scripts/gates/check_no_secrets.py splits its patterns into PROVIDER_KEY_PATTERNS, which the prose checker imports, and SECRET_PATTERNS; the gate's behaviour is unchanged. make lint and CI's ruff step now also cover .claude/.
  • dev/ci_start_clickhouse.sh keeps CI's defaults and now refuses a host port that's already in use, so a failed start can't hand the migrations to another server on that port.
  • .gitignore ignores .claude/skills/* and .agents/skills/* except the twelve skills by name, so skills installed with npx skills add stay untracked. Each Loom skill has one tracked symlink under .agents/skills/; skills a contributor already installed there are left alone. coverage.json is ignored too.
  • The documented install becomes npx skills add ClickHouse/loom --skill loom-code. Without --skill it also installed the plugin skills.
  • The plugin version rule is wider: the PR template and release-process.md now ask for a manifest bump on a behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json), not only a hook.
  • CONTRIBUTING.md gains a short "Working with a coding agent" section, and docs/development/local-development.md installs with uv sync --locked --extra dev --extra code, as CI does, so local gates use CI's tool versions.
  • The comment-only edit to the plugins' lib/working-memory.mjs changes no behaviour, so the plugin manifests keep their version.
  • Four issue forms name labels the repository doesn't have (recall quality, performance, backward compatibility, installation), which GitHub drops silently. loom-file-issue files those as bug until a maintainer creates the labels.
  • The rules also cover the Click UI dashboard and the Helm chart, both now on main. With the chart's cron scripts gone, the code-index rule names gc_if_due as the only repack path, the settings rule and loom-change send a renamed setting to every place that names it by hand (the chart, the operator guides, the compose files), and the Helm rule names the loom commands the chart's hook Jobs run.
  • Not run: Cursor. Its docs say it reads AGENTS.md and both skill directories and honours disable-model-invocation; whether it lists a skill reachable through two paths once or twice is untested.

Compatibility, rollout and rollback

  • Wire: none.
  • CLI: loom demo --file defaults to AGENTS.md (snapshot and docs/reference/cli.md regenerated). loom serve --reload reloads only on changes under server/.
  • Operator steps: none.
  • Rollback: revert. Skills installed under .agents/skills/ are untouched either way.

Tests

tests/unit/test_agent_instructions.py checks that:

  • frontmatter of every skill, rule and subagent parses as YAML (a : inside a description made one unparseable during this work), and names, lengths and budgets hold
  • every path, make target and python -m module the files name exists (paths through instructions_lint.lint_text), every rule's globs match a tracked file, and AGENTS.md lists every rule
  • each skill is tracked, has its .agents/skills link, is marked internal, and has trigger cases; manual skills are manual in Codex too
  • the allow, ask and deny rules match the commands they're meant to, including the exact commands the reviewer and loom-pre-push give
  • the reviewer hook allows the reads it should and refuses every bypass found in review
  • check_prose.py flags what it should, and the instruction files pass it

test_doc_links.py and test_public_copy.py cover the new files, and share one tests/unit/tracked_files.py helper. make format-check, make lint and make typecheck pass. The unit suite passes.

I ran five tasks in fresh Claude Code and Codex sessions, each in its own worktree with pushes disabled, against this branch's first version and its current one:

Task Before After
add a migration (Claude) hand-edited schema.sql, 19 tool calls left schema.sql for make schema-dump, 11 calls
run the bench (Codex) copied a provider key, started a paid judged run, left it running ran nothing paid; the setting can't move the result on those datasets
CI failed on lint (Claude) fixed, 10 calls fixed, 7 calls
open a PR (Codex) wrote the body wrote the body, then planned to push around the disabled push URL; AGENTS.md now says to report a blocked path instead
add a setting correct in both tools correct in both tools

Claude Code lists all twelve skills with loom-deploy as manual-only; Codex lists the eleven others. npx skills add against this tree lists only the published skills.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. I checked every command in the skills against the Makefile, scripts, ci.yml and docker-smoke.yml, the tool behaviour against the Claude Code, Codex and Cursor docs, and ran the fresh-session tasks above.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed.
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/reference/ tables (python scripts/codegen/docs_reference.py), the reach manifest, schemas/schema.sql (make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 29 commits October 17, 2026 06:05
…nt skills

AGENTS.md becomes the canonical instruction file that every coding agent reads;
CLAUDE.md imports it, which is what Claude Code recommends when a repository
already has AGENTS.md. .claude/ now carries eight loom-* skills (setup,
change recipes, pre-push gates, shipping a PR, review, CI investigation,
benchmarks, deploy), path-scoped rules per area, a read-only reviewer
subagent and pre-approved read-only and gate commands. .agents/skills
links to .claude/skills so Codex reads the same files.

test_agent_instructions.py keeps the frontmatter, the AGENTS.md skill table
and the rules' path globs in sync; the doc-link and public-copy lints now
cover the new files. dev/ci_start_clickhouse.sh takes a container name and
host ports and refuses a port already in use, so a second ClickHouse can run
per worktree and a failed start never hands migrations to another server.
`loom demo` ingests AGENTS.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…view

AGENTS.md loads in every session, so the memory-plane detail moves to
.claude/rules/memory-plane.md and the provider facts to rules/providers.md;
AGENTS.md keeps the cross-cutting conventions and points at the rule for the
files being touched. New rules for benchmarks and auth.

Skill descriptions name what they are not for, so loom-change, loom-pre-push,
loom-ship-pr and loom-review stop competing for the same requests, and review
after a push goes to the loom-reviewer agent. loom-bench is model-invocable
again (its first step is "ask first"); loom-deploy stays manual. Setup installs
with `uv sync --locked`, as CI does, generators run as modules, pre-push names
the branch-coverage floors CI enforces, CI status tables show pending jobs,
and "pre-1.0" claims are gone (the package is 1.0).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…es, deny git push -f

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Right after a push the head's runs queue behind the previous head's and the check rollup is empty, so gh pr checks --watch returned at once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…rning

An audit of every command, path and claim in the skills and rules against main found
statements that no longer hold: build_commit is empty in a source run, mirrors are
gc'd by a cron script, a TTL is allowed on content caches, redeploy rebases rather
than fast-forwards, an integration quick pass ran without LOOM_BASE_URL, ss is not on
macOS, and python -c always imports server from the current directory. Each is
corrected where it lives.

The lessons go where they apply: the change discipline, look-before-you-build and
committed-text rules in AGENTS.md; benchmark noise and ingest-failure checks in
loom-bench; CI's integration posture and Python in the setup and pre-push skills;
datetime, migration-number and ClickHouse Cloud traps in their path-scoped rules.
Area-only conventions left in AGENTS.md point at the rule that holds them, so each
lives in one place. settings.json denies pushes to main, force-pushes in any argument
position, deploy commands and the deployment's containers; a test pins the deny list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
…its ClickHouse across calls

Review of the deny list found tag pushes, releases, redeploy by another path, the colour
compose file and loom-workers slipping through, and --force-with-lease judged by its
argument position; the test now replays Claude Code's matcher over a table of commands
instead of checking rule strings. An agent's shell drops variables between calls, so a
server started in a later call fell back to localhost:8123 and migrated whatever
answered there: dev setup now writes the worktree's own .env, which the server,
make migrate and the tests all read. Only the eight development skills are un-ignored,
and the skill and public-copy tests read tracked files, so an installed loom-code skill
neither shows as committable nor breaks a local run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
…instructions

The dashboard is served at the server root, and builds N-1 and N serve side by side during an upgrade: AGENTS.md, the migrations rule and the review, pre-push, change and CI skills name the rule and make test-mixed-version; loom-deploy waits for readiness as redeploy.sh now does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ied by any path

A source server reads LOOM_INSTANCE_LABEL from the process environment, not .env, so
the label moved back onto the uvicorn line; without it the server refuses to start.
The ClickHouse container is named from the worktree, which a fresh shell still knows,
and setup stops when a .env it did not write already exists rather than migrating
whatever that file points at. Deny rules now match redeploy.sh behind bash, sh or an
absolute path, tag pushes by ref or --follow-tags, and main as a refspec, while a
branch that starts with v and the colour compose file's config check stay allowed.
The plugin rule asks for the skill evals on a skill change and for every new send
path to go through the client's redaction.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
…eached is its own

An agent's shell resets its working directory between calls, so each setup block now
starts from the worktree's absolute path; otherwise uv sync rewrote the launch
checkout's virtualenv and the server served its code. The server's port is probed
before boot and the health answer is matched on the instance label, since two
worktrees fresh from main report the same build commit. The workers rule says what
adding-a-worker says: two copies can overlap, so a pass must be harmless run twice.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
/dev/tcp is a bash feature; under zsh the probe always read the port as free.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
…ing it

git expands HEAD:heads/main to refs/heads/main, and a mirror push force-updates and
prunes every remote ref; neither matched the deny rules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
…linked worktree

gh's --delete-branch checks out and pulls main in the current worktree before deleting
the branch: it fails after the merge when main is checked out elsewhere, and otherwise
moves the shared main ref from a linked worktree. The remote branch is deleted with a
push, the local one from the primary checkout after the worktree is removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Lareb Zafar <[email protected]>
… follow the published skill guidance

Agents now open issues, answer review threads and write most PR text, and
the rules for that lived only in reviewers' heads. Four skills carry them:
loom-debug, loom-address-review, loom-file-issue and loom-writing, the last
with a checker for filler words and internal details in a body file.

Descriptions are third person with trigger words first and fit Codex's
shared listing budget; each skill keeps should/should-not trigger cases;
loom-deploy is manual in Codex through agents/openai.yaml. Review gains a
simplicity gate and inline posting, shipping checks mergeable after each
push and loops until a fresh review is empty, and dev setup cleans up by
exact name and never installs through a node_modules symlink.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…orce what they claim

AGENTS.md loads in every session of every agent, and it repeated rules the
path-scoped rules and skills already held: no-TTL-on-memory appeared five
times, the memory_versions rule four. It now keeps the cross-cutting
invariants, one line per workflow naming its skill, and a rule table so Codex
and Cursor, which do not load .claude/rules, know which rule to read. The skill
table is gone: all three agents discover skills themselves. Shorter
descriptions and a trimmed memory-plane rule cut the always-loaded text.

The reviewer's Bash ran unrestricted; a PreToolUse hook now refuses any
command that can write. Settings deny the flags that turned allowed git and
pytest commands into writers (--output, --upload-pack, --basetemp), reset
--hard, clean -f, and pushes through git -C or -c, and ask before public
GitHub writes and paid bench runs.

A fresh-session run showed an agent start a paid bench with a copied key and
leave it running, and another hand-edit schema.sql: loom-bench now confirms a
plan before any paid run and stops what it started, and loom-change says what
to do without a ClickHouse. Frontmatter is parsed as YAML (a colon in a
description had made the reviewer's unparseable), and every path, make target
and module these files name is checked to exist.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…checks reuse the repo's own linters

The reviewer hook parsed shell with an allowlist plus flag blocklists, and
review found a dozen writers it let through (sed's e and w commands, uniq,
make's second target, ruff --fix-only, pytest --junitxml, gh mutations from a
file, process substitution) and that it failed open on bad input. It now
allows only exact git and gh reads, the prose checker and unit tests under
tests/unit with an empty LOOM_ENV_FILE, takes pipes only into head, tail, wc
and grep, and refuses anything it cannot parse; the reviewer reads files with
its Read, Grep and Glob tools.

A tracked .agents/skills symlink replaced the directory npx skills add
installs into, so checking the branch out deleted installed skills. Each Loom
skill now has its own tracked link inside a real .agents/skills/, and
installed skills sit beside them.

The path check calls instructions_lint.lint_text instead of a second parser,
check_prose reuses the secret gate's key patterns and adds JWT and GitHub
token shapes, and one tracked_files helper replaces three copies of git
ls-files. AGENTS.md says where source_class comes from, and settings deny
git clean, pushes through --no-pager, -P and --git-dir, and the compose file
by any path, and ask before --force-with-lease and pytest paths with "..".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…tings close the pytest and force-push gaps

Review found the hook's lexer treated a newline or a # comment as whitespace,
so a second command rode along, and that brace, $'' and ${} expansion hid
--output from the flag check. The hook now refuses any character outside what
its listed commands need before lexing, drops cd (another tree's venv and
conftest), and refuses commands that never exit.

The tests/unit/* pytest allow rule let any path or flag follow it, the
integration suite included, so only the whole unit suite runs unasked; force
flags inside a short-flag cluster (-uf, -fu) and docker-compose v1 are denied.

check_prose closes a fence only on a bare run at least as long as its opener,
anchors paths so URLs do not match, prints a secret as four characters, and
imports the gate's provider key patterns by name rather than filtering on a
label; the instruction test reads code blocks through the same walker.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…eads fence lines and paths inside URLs

pytest with no path collects every test directory, so the hook's "unit tests
only" let `pytest -q` run the integration suite against whatever ClickHouse
the checkout's .env names; it now requires a tests/unit path. The hook also
refuses a glob that expands to a file named like a flag, every tail follow
spelling and --watch=, and the reviewer runs tests only on the head it was
given.

check_prose missed /home paths after file:// and inside PATH lists, never read
the fence lines themselves, and took a line starting with inline code for a
fence opener, which turned filler checking off for the rest of the file.

Settings allow the three git reads the reviewer uses and ask before
python -m bench.*, the form results.md gives for paid reruns. Outside a git
checkout, tracked_files returns the files on disk instead of skipping the
docs-link and public-copy scans. AGENTS.md adds that a guard which stops an
agent is reported, never routed around.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…stead of imitating them

A reviewer started from a checkout on another commit read that commit's files
and reported against them; it now reads each changed file through git show at
the given sha and runs no tests there. In the background only the whole unit
suite is pre-approved, so the agent file says to give it a long timeout.

Python's glob does not expand bracket classes the way bash does, so the
glob-to-flag check missed `[^a]*`. The hook now refuses `*` outright and
brackets outside a pytest node id, and tail accepts only a line count on the
pipe, which leaves nothing to follow.

The archive fallback in tracked_files lists symlinks as git does, so the
per-skill links are found outside git. AGENTS.md no longer tells an agent to
report a failing gate instead of fixing it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…d its hook says why it refuses

The agent file told the background reviewer to run `pytest tests/unit -q`,
which no allow rule matches, so every run was denied its tests; a test now
ties the agent file's command to the allow list. The hook names the actual
cause of a refusal (a bracket, a pipe target, a pytest argument) instead of
calling a listed command unlisted, lets a --jq path through, and points to
Glob and Grep when it refuses `*`.

Comments that cited CLAUDE.md for the column-mirror and working-memory rules
point at memory-plane.md or keep only the rule, and tracked_files does not
walk into a symlink it was asked for by name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…he cause they refuse

`make lint` checked server, sdk, tests and scripts but not .claude, so the two
scripts there never met the BLE001 and RUF100 rules CI enforces, and one
carried an unused noqa. The hook adds the `*` hint only when the command has
one, accepts `--jq=` and only expressions that start with `.`, and names the
git flag it refuses.

Two server docstrings cited the agent rule file for the column-mirror rule;
one now cites docs/architecture/clickhouse.md and the other states the rule.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… bracket messages match what it allows

make lint gained .claude in the last commit but CI's ruff step did not, so the
two scripts there were still unchecked where it counts. The hook matches git
write flags by name rather than prefix, so --output-indicator-new no longer
reads as a write, and the bracket refusal says a --jq expression must start
with `.`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Both changed in the last two commits with no case that would catch a return to prefix matching or to skipping any word after --jq.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…le is scoped to internal paths

shlex drops quotes, so a quoted "|" or "&&" came back as a separator bash
never sees: what followed it was checked as a second command while bash
passed it to pytest, which let --log-file and --junitxml through. The hook now
refuses | and & inside quotes.

"No compatibility code" read as forbidding the N-1 tolerance the rolling
upgrade rules require and the ignored_args handling of removed wire fields;
it now covers replaced internal paths only, in AGENTS.md and loom-review.

Pushes to main with a trailing flag are denied, the instruction tests read
rules and agents through tracked() like skills, public-copy scans all of
.claude, and dev setup says LOOM_CH_PORT is the port its ClickHouse started on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…tays an argument

Refusing every quoted | or & also refused ordinary reads such as a jq
`.files[] | .path` or `grep -E 'a|b'`. The hook now cuts commands only at an
unquoted && or |, the way bash does, and parses each part on its own, so a
quoted "|" stays inside the word it belongs to and the pytest argument check
still catches what follows it. The /dev/null strip ends at a word boundary,
so `2>/dev/null.x` is no longer removed before the checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
The strip matched \s, which includes a newline, so `git status` followed by a
newline and `2>/dev/null touch x` collapsed into one harmless-looking command
while bash ran the second line. It now matches spaces and tabs only, so a
newline always reaches the character check and is refused.

loom-review tells a reviewer inside loom-reviewer to find a rule's paths with
the Grep tool, which its hook allows, and loom-investigate-ci covers the
ClickHouse-release and docker-smoke jobs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…Helm chart

Three pull requests landing alongside this one add conventions an agent has to
know: the bi-temporal commit journal every memory writer publishes through,
the dashboard design guide and the Biome accessibility rules make lint runs,
and a Helm chart whose embedding and signing settings cannot roll. Each goes
into the rule that owns its paths (memory-plane, frontend, a new helm rule),
with loom-change, loom-pre-push and loom-investigate-ci rows for the new
gates. The compatibility invariant also rules out rollout modes for data that
does not exist yet and docs describing the old way.

This names files those pull requests add, so it merges after them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ctually do

With the journal in, namespace.rollback is planned and committed there rather
than read from loom.memory_versions, the rollback handler and the wiring that
registers the publisher fall under the memory-plane rule, and memory.amend is
the path for a future transition as well as a correction of another span.
The helm rule says that with an existing Secret only its name is hashed, and
loom-pre-push follows CI's helm step, whose chart refuses a short JWT secret
that `helm lint` alone lets through. The quickstart row names the smoke
script it runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ywright, and bench and redeploy rules match a run, not a path

The supervisor already tags every pass `worker.<name>`, so telling a new
worker to call set_query_tag invited a second, different tag that loom-debug
would not find. CI's frontend job runs Playwright after vitest; the skills
now name it. The bench ask and the redeploy deny matched the path anywhere in
a command, so `git show <sha>:redeploy.sh` was refused and a background
reviewer could not read a PR touching bench/*.py; both now match running the
file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
zlareb1 and others added 13 commits October 17, 2026 06:05
…s env guard says the export comes back

hooks/, lib/, bin/, skills/ and .mcp.json all reach installed clients only
through a new plugin version; the rule, the PR template, the release process
and the skills now name them all and say a behaviour change. An agent's shell
reloads the profile on every call, so unsetting an exported LOOM_* variable
lasts one call: the guard now says to remove it from the profile or prefix
each later command with env -u.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ule is back in memory-plane

agent_plugin_sync mirrors hooks/*.mjs, bin/, lib/ and skills/; each plugin's
manifest, hooks.json and .mcp.json, and the Codex plugin-defaults.json, are
edited in their own directory, and the last joins the files whose change
bumps the version. memory-plane loads for namespace_snapshot.py but had
dropped what it guards: snapshot and restore carry the version, hash and
attestation columns. Dev setup's .env block stops if its cd fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…which are edited per plugin

The row sent a .mcp.json change through agent_plugin_sync, which copies only hook scripts, lib/, bin/ and skills, so Codex would ship a new version with the old MCP entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
pre-push and investigate-ci named only the plugin's node --test; CI also runs the grep-shim tests, the Cursor test and the generic integration check, so an edit there passed locally and failed in CI.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… CI's syntax and executable-bit loops

The plugins rule and the investigate-ci row each carried a shorter copy of the list, and none named the node --check and test -x loops CI runs; they now point at the pre-push row. The allow list pre-approves the two repo-root node --test commands the skills give.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…o wildcard test run

Allow rules do not match past a VAR=value prefix, so LOOM_ENV_FILE= make lint prompted although the skill says to run it that way; the exact forms are now allowed. The two node --test allow rules took any path or flag after their wildcard, like the pytest one removed earlier, so they ask again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…es named

It probed integrations/x/, which those rules never matched, so restoring them would have stayed green; it now fails when either rule comes back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…the documented install names loom-code

That CLI lists every SKILL.md in the repository, so the documented end-user
install would have put the twelve contributor skills into a user's project,
where they run Loom-only commands; each now carries `metadata: internal: true`,
which the CLI hides and Claude Code and Codex ignore, and a test requires it.
The documented command adds `--skill loom-code`, so it installs that skill
alone as the docs say. Two hook guards gain the cases that fail without them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…s, and pre-push covers the SDK packaging and sandbox gates

loom-deploy read the serving colour's logs through a $(...) spelling that dodged the container deny, which AGENTS.md rules out; it is now printed for the operator. CI's TypeScript dist check, the Python wheel smoke and the required sandbox test had no pre-push row, so a change there passed locally and failed in CI. The coverage-floor command's coverage.json is ignored.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… and reproduce the CI legs

The wheel row fired only on packaging changes and installed nothing at the lowest pins, though CI's 3.11 lowest-deps leg exists to catch undeclared imports and 3.12-only APIs in plain code; the sandbox row named no path, and investigate-ci ran the sandbox test without LOOM_TEST_REQUIRE_SANDBOX, where it skips. Both rows now live in loom-pre-push and investigate-ci points at them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ch wheel leg is reproduced as it ran

The host sandbox test never applies the AppArmor or seccomp profile; only docker-smoke's shipped-profiles job does, so the profiles get their own row naming that job's steps. The host row now keys on every file the hostile suite runs, egress_relay.py and gitrepo.py included. A red wheel leg is reproduced on its own Python and resolution, since a new dependency release breaks the highest legs, not the floor.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…nd two reproductions name what they depend on

Loading a branch's AppArmor profile with apparmor_parser -r replaces it host-wide, under any deployment's running repository jobs, and the job's sysctl changes every session's sandbox, so pre-push sends profile changes to the docker-smoke job and limits reproducing it to a disposable VM. The quickstart reproduction installs the dashboard test dependencies its last step runs, and the hostile suite's row includes server/core/hosts.py, whose private-range checks it exercises.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ywright installs no system packages, and the smoke image is tagged per worktree

A host that cannot run bubblewrap now pushes and reads CI's job instead of copying CI's apt install and sysctl change; --with-deps ran sudo apt-get on a shared machine, so the installs match testing.md's plain form; and a fixed loom:docker-smoke tag let two sessions test each other's image.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
It may merge disabled by default or not at all, so the memory-plane rule and loom-debug go back to describing the version mirror that main has.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1 zlareb1 changed the title Agents share one instruction file and a tracked set of Loom development skills Coding agents share one AGENTS.md, Loom workflow skills, path-scoped rules and a read-only reviewer Oct 17, 2026
zlareb1 and others added 12 commits October 17, 2026 06:33
It takes six to ten minutes, which can pass a foreground call's ten-minute limit on a busy host and lose the result.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…where it is described

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>

# Conflicts:
#	docs/development/repository-guide.md
#	tests/unit/snapshots/cli_help.json
…that the host cron scripts are gone

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…t setting and CLI changes at it

The must-match guard hashes only embedding.* and compares the root secret
with the chart's own Secret, publish is a token rather than a boolean, and
the chart names settings and loom commands that a rename in server/ would
break, so the settings rule and the change table now say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…mes settings outside loom.config

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…g is renamed everywhere it is named by hand

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…es to their generators

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…y what generators write

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 merged commit 45b8720 into main Oct 17, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant