Repository navigation
spec(port): port specs/port/trios/crates/trios-trainer/src/bin/trios-train.t27 (Closes #7770) - #9995
Merged
gHashTag merged 1 commit intoOct 17, 2026
Conversation
…train.t27 (Closes gHashTag#7770) Port gHashTag/trios:crates/trios-trainer/src/bin/trios-train.rs (at 8b229e9e9489ee, 95 lines) as specs/port/trios/crates/ trios-trainer/src/bin/trios-train.t27 - Roadmap Stage 6, goal gHashTag#4548, target t27c gen-rust. The trios-train CLI's decisions are ported as pure functions and tested (6 tests, 6 pass, 0 vacuous, 34 runtime asserts, 100% function coverage): the four-flag CLI shape (--config required, --seed and --steps optional overrides, --dry-run), the override rule (a present CLI value replaces the config's value, an absent flag leaves it), the INV-8 LR gate with its phi band [0.001, 0.01] inclusive on both ends, the dry-run shape (six printed fields, the run exiting BEFORE any training), the three-band Gate-2 verdict on the best BPB (below 1.50 the victory candidate, below 1.85 the above-target evidence, else the below-target evidence), and the flow order (the LR gate before the dry-run branch before training). The clap parsing, the TOML load and the training run are the callers' plumbing. Verified: parse OK, spec-status IMPLEMENTED, typecheck 0 errors, coverage 14/14, test-report 6/6 pass, 0 BLOCKED, gen 150 lines with 0 'not yet implemented', boundary exactly this one file, dupe_scan: all 13 introduced names unique across 2046 specs (checked before the commit), bare body scan adds no duplicate group (722/217 unchanged). Dmitrii Fedorov ([@dmitrii-f-t27](https://github.com/dmitrii-f-t27))
Contributor
Author
|
@gHashTag Please merge this PR into master via the golden chain — my rights on gHashTag/t27 are read-only (403), so only you can merge it. Verification of this head (f0217c9):
After the merge I will: verify the spec file live on the merge SHA, confirm #7770 auto-closed, and file the 14-step report. Dmitrii Fedorov (@dmitrii-f-t27) |
This was referenced Oct 17, 2026
Merged
Merged
Merged
Merged
Merged
Merged
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.
Summary
Port
gHashTag/trios:crates/trios-trainer/src/bin/trios-train.rs(at8b229e9e9489ee, 95 lines) asspecs/port/trios/crates/trios-trainer/src/bin/trios-train.t27— Roadmap Stage 6 (goal #4548), target t27c gen-rust. Closes #7770.The original is the training CLI entry point: three flags with overrides, an INV-8 LR gate, a dry-run branch and a Gate-2 verdict.
Per the issue's rule ("Port the decision, not the plumbing"), the one listed function is ported under its name as a pure function (no transports — the clap parsing, the TOML load and the training run are the callers' plumbing) with 6 tests (34 runtime asserts, 0 vacuous, 100% function coverage):
--configrequired,--seedand--stepsoptional overrides,--dry-runa switch (original lines 20-36);main: the LR gate first, then the dry-run branch, then training (lines 38-95).Verification (all run live from the worktree root, zig 0.16.0)
t27c parse: OK.t27c spec-status: IMPLEMENTED.t27c typecheck: 0 errors, 0 warnings.t27c coverage: 14/14 tested (100%) — no transports in this port.t27c test-report: 6 tests / 6 pass / 0 FAIL / 0 BLOCKED, 0 vacuous passes — the flag table, the override rule both ways, the LR band at and beyond both boundaries, the dry-run shape with its early exit, the Gate-2 bands at the exact thresholds, and the flow order.t27c gen | grep -c 'not yet implemented': 0;gen | wc -l: 150 (> 12).grep -cE '^\s*(pub )?fn (main)\(': 1.grep -cE '^\s*test\s+(["|[A-Za-z_])': 6 (≥ 1).git status --short— exactly this one file. The repo's lefthook pre-commit passed.dupe_scan: all 13 introduced names unique across 2046 specs (checked before the commit); the bare body scan adds no duplicate group (722 bodies / 217 groups on base, identical with this spec present).Dmitrii Fedorov (@dmitrii-f-t27)