Answer architecture round 2: 0 🔴, 1 🟡; say what happens to calls off a terminal, mark a Reset as no call written after the merge, and test a failed figures write
This commit is contained in:
@@ -37,7 +37,7 @@ Decisions live in `docs/decisions.md`:
|
||||
|
||||
## Working rules
|
||||
|
||||
- When `routing-calls-raised.md`, at the root of loop-claude's archive (`$LOOP_CLAUDE_TRANSCRIPTS`, default `~/.claude/loop-claude-transcripts`), lists a call stamped after the latest stamp `todo.md` or `docs/decisions.md` → `routing:` cites from it, file one `todo.md` item to settle the calls stamped since, or refresh the one already filed. Its detail quotes those calls with their stamps, and the routed-chunks table of `routing-figures.md` beside it, never the project names its other tables hold. A change to the ladder, its bands or the delegation rule is the human's. The chunk that ships one appends `- <UTC time> Reset` to `routing-calls-raised.md`, so the figures count only chunks finished after it, and its calls may be raised again.
|
||||
- When `routing-calls-raised.md`, at the root of loop-claude's archive (`$LOOP_CLAUDE_TRANSCRIPTS`, default `~/.claude/loop-claude-transcripts`), lists a call, any line but a `Reset`, stamped after the latest stamp `todo.md` or `docs/decisions.md` → `routing:` cites from it, file one `todo.md` item to settle the calls stamped since, or refresh the one already filed. Its detail quotes those calls with their stamps, and the routed-chunks table of `routing-figures.md` beside it, never the project names its other tables hold. A change to the ladder, its bands or the delegation rule is the human's. Once the chunk that ships one has merged, append `- <UTC time> Reset` to `routing-calls-raised.md`, so the figures count only chunks finished after it, and its calls may be raised again.
|
||||
- When `~/.claude/settings.json` has uncommitted changes, commit them on a branch of their own and merge them through a PR: Claude Code writes that file from any session. Read their diff first. When it holds a credential, such as a token in `env` or `mcpServers`, ask the human to move it out of the file, and commit only once it is gone. A token in `env` moves to the shell profile; a server in `mcpServers` moves to `~/.claude.json` with `claude mcp add --scope user`.
|
||||
|
||||
## Scoring run
|
||||
|
||||
@@ -44,7 +44,7 @@ def new_calls(root: pathlib.Path, paths: Paths, effects: Effects) -> list[str] |
|
||||
|
||||
|
||||
def raise_calls(root: pathlib.Path, new: list[str], rung: Rung, paths: Paths, effects: Effects) -> Stop | None:
|
||||
"""Puts the calls to the human through a claude in this setup's checkout, where the routing decision lives. Off a terminal they are only said, and raised again at the next measurement; this repo's AGENTS.md files them meanwhile."""
|
||||
"""Puts the calls to the human through a claude in this setup's checkout, where the routing decision lives. Off a terminal they are only said, and stay in the figures, raised at the next measurement on a terminal."""
|
||||
listed = "".join(f"- {call}\n" for call in new)
|
||||
print(f"\nloop-claude's routing figures call for a routing change:\n{listed}The figures: {root / archive.FIGURES}", file=sys.stderr)
|
||||
if not effects.on_terminal():
|
||||
|
||||
@@ -437,10 +437,12 @@ class RoutingCheck(unittest.TestCase):
|
||||
|
||||
def test_says_a_figure_it_cannot_write_and_goes_on(self):
|
||||
self.chunks(5, 4)
|
||||
(self.root / "routing-figures.md").mkdir()
|
||||
(self.root / "routing-figures.lock").touch()
|
||||
self.root.chmod(0o555)
|
||||
self.addCleanup(self.root.chmod, 0o755)
|
||||
stop, said = self.check(FakeEffects())
|
||||
self.assertIsNone(stop)
|
||||
self.assertIn("routing figures: could not read", said)
|
||||
self.assertIn("routing figures: could not write", said)
|
||||
|
||||
|
||||
class ModelPrompt(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user