Name the project dev-factory in the README, the prose and the tools, and say in the changelog that the repo moved
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-12-04 05:33:49 +01:00
parent 1e5f7f931f
commit d8031dea99
22 changed files with 85 additions and 39 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ def image_tag(shim: pathlib.Path) -> str:
digest = hashlib.sha256()
for name in SHIM_FILES:
digest.update((shim / name).read_bytes())
return f"claude-config-adf-codec:{digest.hexdigest()[:12]}"
return f"dev-factory-adf-codec:{digest.hexdigest()[:12]}"
def docker_args(image: str, mode: str) -> list[str]:
+1 -1
View File
@@ -35,7 +35,7 @@ class Cycle:
Each step reads the few fields it needs by name, so the fields stay at one level. docs/decisions.md → `principles: about seven things per level, …` allows more than seven where a reader finds them by name.
"""
# The claude-config release and commit the cycle runs under, such as `v0.8.0 (<sha>)`, or why they are unknown: chunk_driver/cycle_start.py's setup_version.
# The dev-factory release and commit the cycle runs under, such as `v0.8.0 (<sha>)`, or why they are unknown: chunk_driver/cycle_start.py's setup_version.
config: str
effects: Effects
# What chunk-preflight found, or why it could not run, for a fresh worker's prompt; empty when the session was open as the cycle began.
+1 -1
View File
@@ -1,4 +1,4 @@
"""What a stretch of the chunk's work spent, in raw tokens by model and kind, which the archive records beside each verdict, interrupt and quoted answer: docs/decisions.md → `build-release: each verdict records the claude-config release and commit that ran it…`.
"""What a stretch of the chunk's work spent, in raw tokens by model and kind, which the archive records beside each verdict, interrupt and quoted answer: docs/decisions.md → `build-release: each verdict records the dev-factory release and commit that ran it…`.
A stretch runs from the previous outcome that recorded a spend, or from the chunk's start, to the ruling. It counts the worker's main thread, each subagent and the judge run that ruled, each message once. Dollars are left to be derived from the model and the tokens, at the prices recorded beside them.
"""
+1 -1
View File
@@ -43,7 +43,7 @@ ONE_UP = Rung("claude-fable-5-2", "low")
THREE_UP = Rung("claude-opus-5-5", "xhigh")
# How the archive records a worker that runs off the ladder.
OFF_LADDER = '{"model": "worker-model"}'
# The claude-config release and commit each cycle the tests run is under.
# The dev-factory release and commit each cycle the tests run is under.
CONFIG = "v0.8.0 (abc123)"
# How it records routes by item 179's L of 2 and E + I of 5.
SONNET_179 = '{"model": "claude-sonnet-5-5", "effort": "high", "item": 179, "likelihood": 2, "escape_and_impact": 5}'
+1 -1
View File
@@ -23,7 +23,7 @@ class TmuxCommands(unittest.TestCase):
self.assertEqual(fake.tmux_calls, [["-V"]])
def test_names_the_session_for_the_project(self):
self.assertEqual(tmux.session_name(tmux.LOOP, "claude-config"), "loop-claude-config")
self.assertEqual(tmux.session_name(tmux.LOOP, "dev-factory"), "loop-dev-factory")
# tmux reads `.` and `:` in a target as separators.
self.assertEqual(tmux.session_name(tmux.LOOP, "my.site:2 x"), "loop-my-site-2-x")
self.assertEqual(tmux.session_name(tmux.LOOP, "Acme/Billing"), "loop-Acme-Billing")
+1 -1
View File
@@ -78,7 +78,7 @@ def unusable(run: Tmux, driver: str) -> str | None:
def session_name(kind: str, key: str) -> str:
"""The tmux session an entry point runs its chunks in: kind LOOP with a project's key, such as `loop-claude-config`, or kind EPIC with an epic's key, such as `epic-ABC-12`. tmux reads `.` and `:` in a target as separators, so every character of the key but a letter, a digit, `_` and `-` becomes a dash."""
"""The tmux session an entry point runs its chunks in: kind LOOP with a project's key, such as `loop-dev-factory`, or kind EPIC with an epic's key, such as `epic-ABC-12`. tmux reads `.` and `:` in a target as separators, so every character of the key but a letter, a digit, `_` and `-` becomes a dash."""
return f"{kind}-" + re.sub(r"[^A-Za-z0-9_-]", "-", key)
+2 -2
View File
@@ -88,7 +88,7 @@ class RoutingCheck(unittest.TestCase):
self.assertEqual(args[:6], ["--model", "m", "--effort", "high", "--permission-mode", "bypassPermissions"])
self.assertIn(f"don't change anything until they answer:\n- {call}", args[6])
self.assertEqual(fake.terminal_environments, [{"CLAUDE_CODE_SANDBOXED": "1"}])
self.assertEqual(fake.terminal_folders, [str(self.home / "code" / "claude-config")], "the development clone, since ~/.claude holds only a release")
self.assertEqual(fake.terminal_folders, [str(self.home / "code" / "dev-factory")], "the development clone, since ~/.claude holds only a release")
self.assertIn("Record what they decide in this checkout, the development clone", args[6])
self.assertIsNone(state.mark_measured(self.root, 0))
self.assertEqual(self.check(FakeEffects(git=[UNREAD] * 3))[0], None)
@@ -124,7 +124,7 @@ class RoutingCheck(unittest.TestCase):
def test_stops_when_claude_cannot_start_for_the_calls(self):
self.chunks(5, 4)
stop, _ = self.check(FakeEffects(on_terminal_claude=[OSError(2, "No such file or directory")], git=[UNREAD] * 3))
self.assertEqual(stop, Stop(1, f"could not start claude for the routing calls in {self.home / 'code' / 'claude-config'}, the setup's development clone: No such file or directory"))
self.assertEqual(stop, Stop(1, f"could not start claude for the routing calls in {self.home / 'code' / 'dev-factory'}, the setup's development clone: No such file or directory"))
def test_says_a_figure_it_cannot_write_and_goes_on(self):
assert_not_root(self)
+2 -2
View File
@@ -34,7 +34,7 @@ home holds.
build-release needs tmux 3.2 or later, and checks that too before it starts anything. Each chunk
runs in its own window of one tmux session per project, named loop-<key>, such as
loop-claude-config. <key> is the checkout's path relative to ~/code, or to / outside it, with a dash
loop-dev-factory. <key> is the checkout's path relative to ~/code, or to / outside it, with a dash
for each character other than a letter, a digit, _ or -. The tmux session's @loop-root option names
its checkout, and a checkout whose key maps to a tmux session another checkout runs is refused.
build-release <task> starts the chunks that may start now, then attaches to the tmux session, or
@@ -158,7 +158,7 @@ Once 20 cycles have closed across all projects in the archive since the last mea
loop to close one measures every finished chunk there, with no model run, and writes
routing-figures.md at the archive's root (bin/routing_figures/). Each call the figures make for a
routing change, unless raised before, is an interrupt: claude, on the project's model, on the
terminal in the setup's development clone, ~/code/claude-config, asked to put the calls to the
terminal in the setup's development clone, ~/code/dev-factory, asked to put the calls to the
human. Once that claude ends, the calls are listed in
routing-calls-raised.md beside the figures, kept in routing-state.json, and not raised again. Off a
terminal, the calls are said on stderr, the loop goes on, and they are raised again at the next
+1 -1
View File
@@ -132,7 +132,7 @@ class Cut(unittest.TestCase):
self.env = {**isolated_env(), "GIT_CONFIG_GLOBAL": str(self.temp / "gitconfig"), "GIT_CONFIG_NOSYSTEM": "1", "PATH": f"{fake}:{os.environ['PATH']}", "XDG_STATE_HOME": str(self.temp / "state")}
self.forge_state({"origin": str(self.origin), "pulls": [], "checks": "none", "calls": []})
self.git(self.temp, "init", "-q", "--bare", "-b", "main", str(self.origin))
self.clone = self.temp / "claude-config"
self.clone = self.temp / "dev-factory"
self.git(self.temp, "clone", "-q", str(self.origin), str(self.clone))
self.commit({"CHANGELOG.md": "# Changelog\n\n## 0.1.0\n\n- First.\n", "todo.md": TODO + ROW.format(id=1, release="0.2.0") + ROW.format(id=2, release="0.3.0"), "tool.txt": "broken\n", "ci.sh": "exit 0\n"}, "Start")
self.git(self.clone, "tag", "-a", "v0.1.0", "-m", "Cut release 0.1.0")
+2 -2
View File
@@ -92,8 +92,8 @@ checkout's HEAD, which the seats read, and one prompt file per seat beside it, a
skills/comprehension-panel/seat-prompts.md builds them. It prints the worktree's path and each
prompt's. It takes {{language}}, {{kind}}, {{domain}}, {{domain docs}} and {{3am question}} from the
project's working-rules file → "Scoring run", which is the checkout's AGENTS.md unless the config
names another. Where that file holds no such section, as in claude-config, it takes them from the
checkout's seat-prompts.md → "claude-config's values". It fills the other placeholders from the worktree and
names another. Where that file holds no such section, as in dev-factory, it takes them from the
checkout's seat-prompts.md → "dev-factory's values". It fills the other placeholders from the worktree and
the panel's SKILL.md. Where any one of the five values is missing, it exits 1 and doesn't write
anything. Where a setup that record-scoring never removed is still there, it removes it first and
says so.
+1 -1
View File
@@ -89,7 +89,7 @@ def paths_from(home: pathlib.Path, env: Mapping[str, str]) -> Paths:
return Paths(
claude_code_transcripts=claude / "projects",
claude_dir=claude,
config_clone=home / "code" / "claude-config",
config_clone=home / "code" / "dev-factory",
config_folder=config,
home=home,
model_catalog=claude / "cache" / "model-catalog",
+1 -1
View File
@@ -4,7 +4,7 @@ usage: self-update
Run it by its path in a clone of a release, as in <clone>/bin/self-update. It fetches origin's
tags and checks out the newest v* tag, detached, so the clone holds only what a release holds.
Development happens in another clone, such as ~/code/claude-config. It prints the clone and the version it moved
Development happens in another clone, such as ~/code/dev-factory. It prints the clone and the version it moved
from and to, then CHANGELOG.md's section for each version since, so you can do what each asks, such
as a new step under Install.
+2 -2
View File
@@ -35,7 +35,7 @@ JUDGE_RUN = "Judge run: "
JUDGE_RUN_AT = re.compile(rf"^{re.escape(JUDGE_RUN)}({FOLDER}/[0-9a-f]{{64}}\.json)$", re.MULTILINE)
# The claude-config release and commit that ran the cycle, on the line before JUDGE, such as `Config: v0.8.0 (<sha>)`.
# The dev-factory release and commit that ran the cycle, on the line before JUDGE, such as `Config: v0.8.0 (<sha>)`.
CONFIG = "Config: "
# Opens the block of what the work since the previous outcome that recorded a spend spent; an outcome that didn't spend anything has none.
SPENT = "Spent since "
@@ -48,7 +48,7 @@ REVERSED_AT = re.compile(rf"^{re.escape(REVERSED)}\n((?:> .*\n)*> .*)", re.MULTI
class Annotation(typing.NamedTuple):
"""What a verdict, an interrupt or a quoted answer records beside its judge lines, so a change to the setup can be judged before and after: docs/decisions.md → `build-release: each verdict records the claude-config release and commit that ran it…`. Each part is left out where empty; the cycle always gives config."""
"""What a verdict, an interrupt or a quoted answer records beside its judge lines, so a change to the setup can be judged before and after: docs/decisions.md → `build-release: each verdict records the dev-factory release and commit that ran it…`. Each part is left out where empty; the cycle always gives config."""
config: str = ""
# The block spent_block renders.
spent: str = ""