Repository navigation
refactor(tri): a mutate --lab run uploads any number of files (Refs #7471) - #8146
Merged
Merged
Conversation
…7471) Slice 1 of 2 for `tri mutate census --dir D --lab` (plan on #7471). LabRun.spec becomes `files` (repo path + bytes each); lab_run_name hashes every file; lab_launch uploads f<i>.b64 per file and decodes each to its own path in the run's copy. `mutate spec --lab` sends one file, as before. numstat mutate.rs: 30 added, 13 removed. Lab: build rc 0, 57 passed (new: every_file_of_a_lab_run_goes_up); an end-to-end `spec --lab` run through T27C_LAB_LOCAL=1 prints what #7472's tri prints, apart from the run name, pid and tool line. Control: decoding every file from f0.b64 fails the new test and no older one (each sends one file). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gHashTag
enabled auto-merge (squash)
October 9, 2026 10:16
This was referenced Oct 9, 2026
Open
Merged
Contributor
This was referenced Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Slice 1 of 2 for #7471 (
tri mutate census --dir D --labas one lab job).LabRun.specbecomesfiles(repo path + bytes each);lab_run_namehashes every file;lab_launchuploadsf<i>.b64per file and decodes each to its own path in the run's copy.mutate spec --labstill sends one file.This is e1df87e from the pushed branch
claude/tri-mutate-census-lab-7471, cherry-picked onto master after #8042 (#7472) merged; the #7433 and #7472 commits under it are already on master and are dropped.Why two PRs, not one
Both slices together add 67 hand-written lines to
cli/tri/src/mutate.rs(git diff --numstat: 67 added, 20 removed), over the own-language budget of 40 per file (specs/policy/own_language.t27check_budget, #7371); the lefthook pre-push gate refused the combined branch. Slice 2 (mutate census --dir D --lab, +40/-10, Closes #7471) is ready on a local branch and is pushed as its own PR after this one merges.Hand-written foreign lines
cli/tri/src/mutate.rs: 30 added, 13 removed (budget 40 per file / 80 per diff). The other file is a NOW note.Evidence (Railway lab)
cargo test --release -p tri mutate::57 passed, 0 failed (new:every_file_of_a_lab_run_goes_up).mutate::58 passed in 2 of 2 runs.spec --labrun throughT27C_LAB_LOCAL=1prints what the tri mutate: load survivors.t27 and lab.t27 through gen-rust, drop the hand copies #7472 tri prints apart from run name, pid and tool line; the control "decode every file from f0.b64" fails only the new test (seedocs/now/2026-10-07-mutate-lab-files.md).Refs #7471
🤖 Generated with Claude Code