Merge remote-tracking branch 'origin/main' into item-484
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
# Conflicts: # CHANGELOG.md # docs/reading-cost.md # todo.md
This commit is contained in:
@@ -4708,3 +4708,88 @@ Inherited architect, decided by:
|
||||
- Locality: `bin/task_bench/main.py:528` `planted_tasks`: the cached thunk is one more step of indirection than the base's inline read
|
||||
- Locality: `bin/chunk_preflight/indentation.py:48` `space_indented`: one loop with a key-or-None marker is denser than the base's per-file loop
|
||||
- Navigation: `README.md:314` task_bench entry: says what `task_bench` imports from `mutate_changes`
|
||||
|
||||
## 2026-12-03T16:38:23Z, PR #799 at 0aff7d39
|
||||
|
||||
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|
||||
|---|---|---|---|---|---|
|
||||
| Junior A | 7 | 6 | 6 | 5.5 | 6 |
|
||||
| Mid A | 7 | 5.5 | 6 | 5.5 | 6 |
|
||||
| Maintainability senior | 7 | 5.5 | 6 | 6 | 6 |
|
||||
| Inherited architect | 6.5 | 6 | 5 | 5.5 | 6 |
|
||||
| Mean | 6.88 | 5.75 | 5.75 | 5.63 | 6.00 |
|
||||
|
||||
Junior A, hardest first:
|
||||
|
||||
- Locality: `bin/do_epic/main.py:236` `chunk_run`: one loop over `str | Stop | Merged` that handles parking, reopening and handing on together
|
||||
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: a queue loop over a flock with by-human, wait and park flags, and a side trip to `remeasure` at line 655
|
||||
- Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs held at once, with the reasons in the decision log
|
||||
- Self-sufficiency, Locality: `skills/larv-review/SKILL.md:109` "Re-entry": a table whose exceptions and the round cap must be read beside it
|
||||
- Locality, Shape: `bin/do_epic/scheduler.py:173` `start_chunks`: overlapping sets and an elif ladder whose order carries the meaning
|
||||
|
||||
Mid A, hardest first:
|
||||
|
||||
- Locality, Shape: `bin/do_epic/scheduler.py:173` `start_chunks`: four overlapping sets and a five-way elif under a lock, with state also written by other processes
|
||||
- Locality: `bin/do_epic/parking.py:26` `parked_through`: the park and resume order spans a file, a tmux window name and the scheduler, and `Told` mutates it
|
||||
- Locality: `bin/chunk_pr/main.py:462` `merged`: a queue loop under a flock whose correctness depends on three other tools' exit codes
|
||||
- Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs and caps whose reasons sit in the decision log
|
||||
- Self-sufficiency: `bin/agent_cycle/run.py:33` `Cycle`: 17 fields justified by a decision citation
|
||||
|
||||
Maintainability senior, hardest first:
|
||||
|
||||
- Locality, Shape: `bin/do_epic/parking.py:26` `parked_through`: six parameters, three outcomes types and a mutable `Told` that renames windows
|
||||
- Locality: `bin/do_epic/scheduler.py:173` `start_chunks`: parked and waiting state lives in tmux window names that the function reads
|
||||
- Locality: `bin/chunk_pr/main.py:601` `levelled_and_finished`: the push-then-report order depends on lock order that is stated nowhere locally
|
||||
- Shape: `bin/plan/ranking.py:144` `weigh`: the old and the new table shape are woven through the core path
|
||||
- Locality: `bin/build_release/loop/reload.py:36` `decode_handed`: `LOOP_RUN_FIELDS` must be kept in sync with `LoopRun` by hand
|
||||
|
||||
Inherited architect, would restructure first:
|
||||
|
||||
- Navigation, Shape: `README.md:261` "Packages under bin/": the groupings exist only in prose over a flat `bin/` of 86 entries
|
||||
- Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: routing is spread over about ten places in six packages
|
||||
- Shape: `bin/chunk_pr/main.py:462` `merged`: a 770-line module with 47 top-level definitions that bundles open, merge queue and cleanup
|
||||
- Locality: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round cap is enforced on commit titles only, and the launch-time check is advisory
|
||||
- Self-sufficiency: `bin/agent_cycle/run.py:33` `Cycle`: 17 fields defended by a decision citation rather than by the code
|
||||
|
||||
## 2026-12-03T16:42:14Z, PR #799 rerun at 0aff7d39
|
||||
|
||||
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|
||||
|---|---|---|---|---|---|
|
||||
| Junior A | 7 | 5.5 | 6.5 | 6 | 6 |
|
||||
| Mid A | 7 | 6 | 5.5 | 6 | 6 |
|
||||
| Maintainability senior | 7 | 5.5 | 6 | 5 | 6 |
|
||||
| Inherited architect | 7 | 6.5 | 5.5 | 7 | 6 |
|
||||
| Mean | 7.00 | 5.88 | 5.88 | 6.00 | 6.00 |
|
||||
|
||||
Junior A, hardest first:
|
||||
|
||||
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: orthogonal modes, a flock queue and git-config state, and a trip into `remeasure`, with no statement of how the modes combine
|
||||
- Locality, Shape: `bin/do_epic/main.py:236` `chunk_run`: one loop over `str | Stop | Merged` with reopen, human-task and epic-finish branches
|
||||
- Locality: `bin/do_epic/parking.py:26` `parked_through`: six parameters and an effect order that matters, with nested gate-polling loops
|
||||
- Shape: `bin/task_bench/main.py:242` `Planner`: three layers of curried factories
|
||||
- Self-sufficiency: `bin/agent_cycle/judge.py:301` `judge_prompt`: schema text filled in by string replacement and a heading wording coupled to another tool
|
||||
|
||||
Mid A, hardest first:
|
||||
|
||||
- Shape: `bin/task_bench/main.py:242` `Planner`: each alias is a callable that returns a callable that returns a callable
|
||||
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: sentinels, parks, epic base against default base, and a flock queue, with the base stored in git config
|
||||
- Self-sufficiency: `bin/larv_review/main.py:33` "needs-scoring-run": the rule for when a run is due and owed is visible only in a long docstring
|
||||
- Shape: `bin/plan_store/jira_epic.py:200` `edit`: about 45 lines of `isinstance` early returns that hide the loop-filed against person-filed rule
|
||||
- Shape: `bin/plan/ranking.py:144` `weigh`: two table shapes run through every function
|
||||
|
||||
Maintainability senior, hardest first:
|
||||
|
||||
- Locality: `bin/chunk_pr/main.py:601` `levelled_and_finished`: an order-dependent chain of git changes and a scoring-run check, with no statement of what holds after it returns
|
||||
- Shape: `bin/task_bench/main.py:242` `Planner`: three levels of curried factories
|
||||
- Locality: `bin/agent_cycle/run.py:160` `rule`: the archive order decides the figures written, and only a comment says so
|
||||
- Locality: `bin/agent_cycle/judge.py:77` `TASK_HEADING`: a heading wording that judge-replay parses, held by a comment alone
|
||||
- Self-sufficiency: `bin/plan/ranking.py:20` `MAINTAIN_WEIGHT`: the rationale sits in the decision log
|
||||
- Locality: `bin/build_release/loop/chunk_windows.py:150` `chunks_to_start`: `held_items` reads a worker's transcripts for a free-text line
|
||||
|
||||
Inherited architect, would restructure first:
|
||||
|
||||
- Navigation, Shape: `README.md:264` "Packages under bin/": the only map of a flat `bin/` of about 80 entries
|
||||
- Shape: `bin/do_epic/main.py:236` `chunk_run`: a 520-line main that holds help text, policy, the loop and printing, with about 30 imports
|
||||
- Locality: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round cap has four homes and fails open at `earlier_titles`
|
||||
- Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: routing is spread over four homes
|
||||
- Locality: `bin/transcript_archive/outcomes.py:11` `outcomes`: a line format parsed by regex in four readers
|
||||
|
||||
+4
-2
@@ -7,7 +7,7 @@ Each project principle states one rule that the decisions below apply; their ent
|
||||
3. **Each file has one writer.** `~/.config/build-release/models.json` is written only by `save_model`, which the entry points, build-release and do-epic, both call. `~/.claude.json` is Claude Code's, and `~/.claude` moves only through `deploy-release`. The exception is `~/.claude/settings.json`, which Claude Code writes from any session. Git's clean filter `bin/settings_filter.py` keeps each machine's model and Claude Code's key order out of every commit, and `README.md` → "Update" carries its other changes into this repo.
|
||||
4. **A rule a program can check is enforced by a program, and reviewers rule on the rest.** rule-hook and its overrides, `docker-run-memory`, the refused writes of reviewers under `agents/`, and CI with `main`'s branch protection apply it.
|
||||
5. **A chunk can't vouch for itself.** What a chunk writes is approved by a review pass, by the human, or by a precedent the repo held before the chunk began. So an unanswered ask leaves the PR unmerged, the human approves the premises chunk and runs `deploy-release --cut`, and the judge holds a chunk open while an answer the human typed isn't recorded anywhere.
|
||||
6. **An unattended run never waits on a prompt, and a lasting failure stops it.** Every claude build-release starts bypasses permissions inside its sandbox, each claude it opens on a terminal has `CLAUDE_CODE_SANDBOXED` set, and interactive sessions run in auto mode with the dangerous-mode prompt skipped. A failed archive stops the loop, while a `claude` that cannot start, as during an update, is retried.
|
||||
6. **An unattended run never waits on a prompt, and a lasting failure stops it.** Every claude build-release starts bypasses permissions inside its sandbox, each claude it opens on a terminal has `CLAUDE_CODE_SANDBOXED` set, and interactive sessions bypass permissions with the dangerous-mode prompt skipped. A failed archive stops the loop, while a `claude` that cannot start, as during an update, is retried.
|
||||
7. **One word names one thing, and one rule has one home.** In `bin/`, an outcome is an entry of a `.outcomes.md` file in build-release's archive, a record is a document tools or people keep entries in, and a place is what a comprehension seat names. `CLAUDE.md` holds only the rules no path can scope, and each `rules/` file loads by its `paths:`.
|
||||
|
||||
# Decisions no project principle covers
|
||||
@@ -830,10 +830,12 @@ Claude Code's user-level rules tie this repo to Claude Code, which "Prefer the v
|
||||
|
||||
Valid while Claude Code loads `~/.claude/rules/*.md` in every project, a path-scoped one when a session reads, writes or edits a matching file, or reads one with a single-file Bash command such as `cat`, and after a write only once the write is done. On 2026-10-13 a smoke test confirmed both triggers: a rule in `~/.claude/rules/` with `paths: ["**/smoke-target.txt"]` held a secret word. `claude -p` in a project under `/tmp` printed the word after reading the target with the Read tool, and after creating it with the Write tool. A control run that opened no file printed none. Per the docs, a path-scoped rule leaves the context at compaction and returns at the next matching read.
|
||||
|
||||
## settings.json: Claude Code runs in auto mode with the dangerous-mode prompt skipped
|
||||
## settings.json: Claude Code bypasses permissions with the dangerous-mode prompt skipped
|
||||
|
||||
2026-10-04, lilleman, answering the principles audit of PR #215. Serves goal 1: this setup is meant to run in a sandbox and to work autonomously, so tool access is granted by the sandbox, as "Always grant explicit access to data" in `principles/technical-principles.md` asks. Valid while every machine taking this checkout is such a sandbox.
|
||||
|
||||
2026-12-03, lilleman. Interactive sessions now start in `bypassPermissions` instead of auto mode: auto mode still asked for permission too often for a sandbox, where the sandbox, not the prompt, grants access. Valid while every machine taking this checkout is such a sandbox.
|
||||
|
||||
## settings.json: each machine owns its model, and git's clean filter `bin/settings_filter.py` keeps it, and Claude Code's key order, out of every commit
|
||||
|
||||
2026-10-21, lilleman. Serves goal 2: Claude Code rewrites `"model"` in `settings.json` on every `/model` and plugin install, so a tracked model let one machine's pick override every other's. lilleman chose a model per machine over one synced in `env.ANTHROPIC_MODEL`, which would override a `/model` pick from the next session on. A model per machine is simpler, and build-release picks each project's model in `~/.config/build-release/models.json` anyway. The filter also sorts the keys, since each write puts them back in Claude Code's order. The cost: a move or pull that changes `settings.json` drops the machine's model. The effort keys, `effortLevel` and `modelSettings`, stay synced: the routing decision on a chunk's worker rung relies on the effort `settings.json` gives every interactive session. Valid while Claude Code writes the model it picks into `settings.json`.
|
||||
|
||||
Reference in New Issue
Block a user