Repository navigation
tri t27o-sweep --repo <dir>: sweep another checkout, one cache per repository, a missing seal names its path (Closes #10638) - #10646
Merged
Conversation
…pository, a missing seal names its path (Closes #10638) The listing (git -C <dir> ls-files) and the files come from <dir>; the two seal keys keep coming from the t27 checkout the command runs in. A missing seal now says which absolute path it looked for and to run from a t27 checkout. The rules are in specs/tools/t27o/ledger.t27: repo_is_here (no --repo, empty or ".") and cache_path (target/t27o-sweep-<dir name>.tsv, "." keeps target/t27o-sweep.tsv), with the seal paths and the hint as constants. Six new tests, three of them negative controls. main.rs is glue only and gains no hand line (11 added, 11 deleted). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…10638) The message said "not a directory" for a path that does not exist at all; it now says the repository cannot be opened and the cause follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Review (orchestrator, Opus):
|
gHashTag
enabled auto-merge (squash)
October 18, 2026 20:33
9 of 12 tasks
This was referenced Oct 18, 2026
Closed
Contributor
gHashTag
added a commit
that referenced
this pull request
Oct 18, 2026
… scan is green again (Closes #10653) (#10654) The cache_path and repo_is_here tests used /Users/playom/... literals (9, merged with #10646); tools/check_devhome_paths.py reported them as new and turned the scan red for every later pull request. The rule reads only the last path component, so /srv/checkouts/... keeps every expected value. t27b 29/29; the devhome check prints OK; gen-rust unchanged (tests are not lowered); seal re-saved, --verify MATCH. Co-authored-by: Claude <claude@anthropic.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
gHashTag
added a commit
that referenced
this pull request
Oct 19, 2026
… sweep and Zig front end, build traps (Closes #10826) (#10827) What the overnight loop of #10522 paid for after #10542: dupe_scan for bodies (#10801 passed a name check with 13 copied bodies), the own-language gate compiled from the merge base, devhome literals (#10646), seals of specs that use rust_convert, drafts as the only hold (auto-merge off did not stop #10801), the stacked-PR rebase recipe, a writable cloned CARGO_HOME, a private zig cache per lane, zsh traps, the splice that matches string literals (#10824); tri t27o-sweep and the Zig front end documented; stale timings updated. Co-authored-by: Claude <claude@anthropic.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #10638. Lane X of epic #10522.
What changed
tri t27o-sweep [PATHS...] --repo <dir>sweeps another checkout:git -C <dir> ls-files -- <paths>and the files are read under<dir>; rows still print paths relative to the swept repository;.trinity/seals/t27o_T27oRust.json,t27o_T27oRustStd.json) keep coming from the t27 checkout the command runs in (the current directory). A missing seal now names its absolute path and says to run from a t27 checkout, instead of a bareNo such file or directory (os error 2);target/t27o-sweep-<directory name>.tsv; no--repo, empty or.keepstarget/t27o-sweep.tsv.--repois canonicalized first, sotrios,trios/and a symlink to it share one cache.--cachestill overrides;git ls-filesfailure (not a git repository) is now an error naming the directory, not a silenttotal 0 files.Rules are in
specs/tools/t27o/ledger.t27(repo_is_here,cache_path, the seal paths and the hint as constants);cli/tri/src/main.rsis glue.Tests
t27b test specs/tools/t27o/ledger.t27: 29 passed (23 before, 6 new);t27c test-report: 29 of 29, vacuous passes 0 of 29. The new tests pin: which--repovalues mean this checkout, the exact cache path of this checkout, of trios, of 999-multibots-telegraf, of trinity-fpga, a trailing slash changing nothing, two repositories never sharing a cache (negative control), a path that does not fit the buffer being refused without a write, and the seal paths and hint. Seal re-saved and--verifyMATCH;gen/rust/tools/t27o/ledger.rsregenerated.Hand lines (own-language)
cli/tri/src/main.rs: 11 added, 11 deleted (net 0). The local budget gate (own_language.c from the merge base) prints rc=0.Measured on this Mac (tri built from this branch)
Per file in
target/t27o-sweep-<name>.tsvagainst the end-of-night per-filetri t27oloop (same commits): every file matches on fns seen, converted, translated tests, test total and stubs. 0 differing files in 1006 files (all of trios, 786, plus the other three).crates).)Run from a non-t27 directory:
Error: /private/tmp/.trinity/seals/t27o_T27oRust.json: cannot read the seal; run from a t27 checkout. A nonexistent--repo:Error: /Users/playom/nonexistent-x: cannot open the repository.Deviations from the issue text
std::env::current_exe: a copied binary has no checkout around it, and the cache path is relative to the current directory anyway.cli/tri/src/sweep.rsare not added: hand Rust is what the own-language check counts, and the repo law puts decisions and their tests in the spec. The glue's behavior is the measurement above.Traps
cratesand then.of the same repository evicts the other run's rows (pre-existing; use--cachefor a second path set).tri::t27b::text_escapeinto ledger.t27 makest27b testreportstarts_atundeclared (a name clash in that import);put_textis imported fromtri::t27b::machoinstead, which adds macho.t27 to the ledger seal's dependencies.🤖 Generated with Claude Code