Answer prose round 1: 0 🔴, 14 🟡 (0 misread); correct the plan items' principle names and paths, narrow the decisions' wording, and state the no-clone routing rule
This commit is contained in:
@@ -118,7 +118,7 @@ Touches:
|
||||
|
||||
### 594. Return a `Failure` from the loop's Claude home build where the clone's `settings.json` is malformed or lacks a marketplace, or a file stands where a link belongs, so `unready` prints one line instead of a traceback.
|
||||
|
||||
Principle: `principles/technical-principles.md` → "Errors as values, with one error channel". From the principles pass of 0.18.0's release review.
|
||||
Principle: `principles/technical-principles.md` → "Handle errors explicitly, as values — avoid the exception path", whose third bullet says a function that both returns a result and throws has two error channels. From the principles pass of 0.18.0's release review.
|
||||
|
||||
Evidence, in `bin/claude_home/home.py`:
|
||||
|
||||
@@ -135,7 +135,7 @@ Touches:
|
||||
|
||||
### 585. Give this repo an `AGENTS.md` like any project, and drop the decision and the rule that say it keeps none.
|
||||
|
||||
Answer to question item 584: the decision "deploy: this repo keeps no `AGENTS.md`, since `~/.claude` is its checkout" lost its reason with item 483. A release is a clone anywhere, and the loop's Claude home links only `CLAUDE.md`, `rules/`, `agents/` and `skills/`, so an `AGENTS.md` here no longer loads into another project's session. Without the reason, the special case only costs: each rule that names a project's `AGENTS.md` needs a second reading for this repo. The loop took the recommended option, as "Ask, don't guess" allows for a choice the goals don't reserve; the human unmarks or drops this item to reverse it.
|
||||
Answer to question item 584: the decision "deploy: this repo keeps no `AGENTS.md`, since `~/.claude` is its checkout" lost its reason with item 483. A release is a clone anywhere, and the loop's Claude home links six files and folders of the clone, none of them `AGENTS.md`, so an `AGENTS.md` here no longer loads into another project's session. Without the reason, the special case only costs: each rule that names a project's `AGENTS.md` needs a second reading for this repo. The loop took the recommended option, as "Ask, don't guess" allows for a choice the goals don't reserve; the human unmarks or drops this item to reverse it.
|
||||
|
||||
Move the head of `docs/decisions.md`, before `# Decisions`, into a new `AGENTS.md`: the project principles, the decision titles and the working rules. Move "dev-factory's values" there from `skills/comprehension-panel/seat-prompts.md` as the scoring-run values. Drop the decision and `.claude/rules/this-repo-keeps-no-agents-md.md`, and let the tools read this repo as any project. The item waits for 0.18.0's cut: until then this repo is developed beside a `~/.claude` checkout on 0.17.0.
|
||||
|
||||
@@ -163,7 +163,7 @@ Evidence:
|
||||
- `bin/mutate_changes/test_mutate_changes.py:372-386`: `interrupted` and `assert_ends` poll with sleeps.
|
||||
- `bin/mutate_changes/test_mutate_changes_runs.py:299, 306` poll with sleeps.
|
||||
|
||||
The tests are slow and flake on a loaded runner. Wait on an event instead: `os.pidfd_open` with `select`, or a pipe the child writes to, and `Popen.wait(timeout=...)` only as the backstop that fails the test. Items 102 and 456 cover other places: test_black_box.py's `sitecustomize` swaps and the `ChildShells` race.
|
||||
A wait that polls, or a bound on elapsed time, fails on a loaded runner without a defect in the code. Wait on an event instead: `os.pidfd_open` with `select`, or a pipe the child writes to, and `Popen.wait(timeout=...)` only as the backstop that fails the test. Items 102 and 456 cover other places: test_black_box.py's `sitecustomize` swaps and the `ChildShells` race.
|
||||
|
||||
L 3, since the change spans three packages and brings a new waiting pattern. E 2, since a wait that still races shows only under load.
|
||||
|
||||
@@ -176,9 +176,9 @@ Touches:
|
||||
|
||||
### 591. Let an environment variable name the setup's development clone, with `~/code/dev-factory` as its default, documented in README's Install and build-release's `--help`.
|
||||
|
||||
Principle: `principles/technical-principles.md` → "Sane defaults": config is never hardcoded, and a documented option changes it. From the principles pass of 0.18.0's release review.
|
||||
Principle: `principles/technical-principles.md` → "Sane defaults, where a default serves better than an explicit ask": a default is one the caller can change through a `--help` line or a documented option. From the principles pass of 0.18.0's release review.
|
||||
|
||||
Evidence: `bin/loop_state/paths.py:92` sets `config_clone=home / "code" / "dev-factory"` with no override. README's Install says only to develop "in a clone under ~/code", and `usage.py:162` names the path. A clone kept under another name or folder reads as absent, so `routing_check.py` never puts its routing calls to a claude.
|
||||
Evidence: `bin/loop_state/paths.py:92` sets `config_clone=home / "code" / "dev-factory"` with no override. README's Install clones it to `~/code/dev-factory` and names no option, and `usage.py:162` names the path. A clone kept under another name or folder reads as absent, so `routing_check.py` never puts its routing calls to a claude.
|
||||
|
||||
Read the path from an environment variable, as `paths.py` reads the XDG folders, and name the variable where the path is named today. The variable's name is a spelling users write: a panel picks it, as `CLAUDE.md` → "Working loop", "Bench a syntax with the people who write it" asks.
|
||||
|
||||
@@ -188,12 +188,15 @@ Touches:
|
||||
- `bin/loop_state/test_paths.py`: `SetupFolders` (small)
|
||||
- `bin/build_release/loop/usage.py`: `HELP` (small)
|
||||
- `README.md`: `## Install` (small)
|
||||
- `README.md`: `lines 211-217` (small)
|
||||
- `CLAUDE.md`: `## Vocabulary` (small)
|
||||
- `bin/self_update/main.py`: `lines 5-9` (small)
|
||||
|
||||
### 595. Move the five dated study folders at the repo's root under one folder named for what it holds, so the root shows the entry points first.
|
||||
|
||||
Principle: `principles/technical-principles.md` → "About seven things per level" and "Entry point first". From the principles pass of 0.18.0's release review.
|
||||
Principle: `principles/technical-principles.md` → "About seven things per level, so a reader new to the project can take in each level at once" and "Make the entry point the first thing a newcomer finds". From the principles pass of 0.18.0's release review.
|
||||
|
||||
Evidence: the root holds about 14 folders and 9 files. Five are dated one-off studies: `workflow-bench/`, `reviewer-merge-trials/`, `judge-field-trials/`, `stability-skip-count/` and `presentation/`. A newcomer sorts past them to reach `bin/`, `ci.sh` and the README.
|
||||
Evidence: the root holds about 14 folders and 9 files. Five are dated, one-off material: four studies, `workflow-bench/`, `reviewer-merge-trials/`, `judge-field-trials/` and `stability-skip-count/`, and the talk's page `presentation/`. A newcomer sorts past them to reach `bin/`, `ci.sh` and the README.
|
||||
|
||||
Move the five under one folder named for what is inside, such as `studies/`, and update every path that names them. Item 392 regroups only `bin/`, and item 68 only tests workflow-bench.
|
||||
|
||||
@@ -201,7 +204,7 @@ L 3, since the paths are named across several packages, and I 2, since `review_p
|
||||
|
||||
Touches:
|
||||
|
||||
- `README.md`: `(top)` (small)
|
||||
- `README.md`: `lines 17-17`, `lines 271-271`, `lines 294-294`, `lines 339-339` (small)
|
||||
- `.gitignore`
|
||||
- `bin/review_rules/review_passes.py`: `INSTRUCTION_FILES` (small)
|
||||
- `bin/review_rules/test_review_passes.py`
|
||||
@@ -246,7 +249,7 @@ Evidence: `bin/repo_checks/test_settings.py:20` requires `json.dumps(indent=2, s
|
||||
|
||||
Pin `indent="\t"` and re-indent `settings.json`. Where something needs the spaces, such as a tool that rewrites the file, keep them and record that decision instead.
|
||||
|
||||
The report's 🟢 goes with it: the tests at :22 and :34 loop over cases without `subTest`, so the first failure hides the rest.
|
||||
The same file's tests at :22 and :34 loop over cases without `subTest`, so the first failure hides the rest.
|
||||
|
||||
Touches:
|
||||
|
||||
@@ -353,7 +356,7 @@ Name the entry and the Dockerfile line. Source the secret-name list from a widel
|
||||
|
||||
### 462. Run under `mutate-changes` the tests that today fail in mutmut's copy of the tree, so a mutant of a line only they cover is killed.
|
||||
|
||||
Found while shipping item 461: `mutate-changes` printed `23 mutants on changed lines, 18 not killed. Left out the tests that fail without a mutant, in build_epic/test_main.py, larv_review/test_larv_review.py, larv_review/test_scoring_setup.py, plan/test_ranking.py, repo_checks/…, review_rules/test_review_passes.py, review_rules/test_reviewer_context.py, rule_hook/test_rule_hook.py, test_settings_filter.py`. All 18 survivors were in `bin/larv_review/scoring_setup.py`: `prepare_scoring`, whose tests are among those left out, so the chunk checked four of them by hand and left 14 unchecked. Find why each left-out test fails in mutmut's copy, such as a path to `skills/` or a git checkout it expects, and make it pass there, or report under the count which changed lines no remaining test covers.
|
||||
Found while shipping item 461: `mutate-changes` printed `23 mutants on changed lines, 18 not killed. Left out the tests that fail without a mutant, in do_epic/test_main.py, larv_review/test_larv_review.py, larv_review/test_scoring_setup.py, plan/test_ranking.py, repo_checks/…, review_rules/test_review_passes.py, review_rules/test_reviewer_context.py, rule_hook/test_rule_hook.py, test_settings_filter.py` (`do_epic/` is `build_epic/` since 0.18.0). All 18 survivors were in `bin/larv_review/scoring_setup.py`: `prepare_scoring`, whose tests are among those left out, so the chunk checked four of them by hand and left 14 unchecked. Find why each left-out test fails in mutmut's copy, such as a path to `skills/` or a git checkout it expects, and make it pass there, or report under the count which changed lines no remaining test covers.
|
||||
|
||||
Item 536 met the same gap: `deploy_release/test_deploy_release.py` runs `deploy-release` as a subprocess, and those tests fail in mutmut's copy, so only its in-process tests ran, and 530 of 590 mutants of `bin/deploy_release/` went unchecked.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user