Fold AGENTS.md into the decision log, .claude/rules/, README and the panel's seat prompts; load CLAUDE.md once in this repo
CI / tests (pull_request) Successful in 2m7s

This commit is contained in:
2026-11-11 16:32:48 +01:00
parent 2db7f462a9
commit 9b770e4893
16 changed files with 106 additions and 79 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ def raise_calls(root: pathlib.Path, new: list[Call], rung: Rung, loop: Loop) ->
unstarted = hand_over(ClaudeCommand(claude_args(rung, [prompt]), str(loop.paths.config_clone), {}), loop.effects)
if unstarted:
return Stop(1, f"could not start claude for the routing calls in {loop.paths.config_clone}, the setup's development clone: {unstarted.reason}")
# Raised once the human has seen them, answered or not: an unanswered call reaches the plan through AGENTS.md, so it is not asked twice.
# Raised once the human has seen them, answered or not: an unanswered call reaches the plan through .claude/rules/routing-calls.md, so it is not asked twice.
if unmarked := state.mark_raised(root, new, utc(loop.effects.now())):
say(f"routing figures: {unmarked.reason}", loop.effects)
return None
+7 -4
View File
@@ -50,11 +50,14 @@ class Citations(unittest.TestCase):
def test_every_folder_the_judge_reads_rules_from_exists(self):
self.assertEqual([folder for folder in HUMAN_RULE_DIRS if not (ROOT / folder).is_dir()], [])
def test_every_decision_title_agents_md_lists_is_a_title_in_the_decision_log(self):
listed = LISTED_TITLE.findall((ROOT / "AGENTS.md").read_text().split("## Decisions no project principle covers\n\n")[1].split("\n\n")[0])
def test_every_decision_title_the_log_lists_at_its_head_is_a_title_in_it(self):
log = (ROOT / "docs/decisions.md").read_text()
listed = LISTED_TITLE.findall(log.split("# Decisions no project principle covers\n\n")[1].split("\n\n")[0])
self.assertTrue(listed)
titles = set(DECISION_TITLE.findall((ROOT / "docs/decisions.md").read_text()))
self.assertEqual([title for title in listed if title not in titles], [])
self.assertEqual([title for title in listed if title not in set(DECISION_TITLE.findall(log))], [])
def test_the_repo_keeps_no_agents_md_since_claude_code_would_load_the_releases_copy_into_every_project(self):
self.assertFalse((ROOT / "AGENTS.md").exists())
def test_every_todo_citation_of_a_decision_names_a_title(self):
titles = DECISION_TITLE.findall((ROOT / "docs/decisions.md").read_text())
+1 -1
View File
@@ -1,6 +1,6 @@
"""What loop-claude keeps at the archive's root between measurements: docs/decisions.md → `routing: loop-claude measures review rounds…`.
STATE holds, as fields loop-claude reads back, the cycle it last measured at and each call it raised. RAISED lists the raised calls for the human to read. A chunk appends a reset to RAISED by hand, as AGENTS.md says, and loop-claude reads the resets from there."""
STATE holds, as fields loop-claude reads back, the cycle it last measured at and each call it raised. RAISED lists the raised calls for the human to read. A chunk appends a reset to RAISED by hand, as .claude/rules/routing-calls.md says, and loop-claude reads the resets from there."""
import dataclasses
import json
import pathlib