Skip to content

Port gHashTag/trios:crates/trios-igla-trainer/src/main.rs (Rust, 4 functions) to specs/port/trios/crates/trios-igla-trai - #9071

Merged
gHashTag merged 3 commits into
masterfrom
queen-9017
Oct 11, 2026
Merged

gHashTag merged 3 commits into
masterfrom
queen-9017

Conversation

@gHashTag

Copy link
Copy Markdown
Collaborator

Closes #9017

Written by a bee on queen-9017 and published by tools/queen/publish.py. The branch itself is the bee's; the second commit is the coordination entry every pull request must add, which a bee has no way to know about.

1 file changed, 455 insertions(+)

🤖 Generated with Claude Code

Trinity Bee and others added 2 commits October 11, 2026 11:21
Translate gHashTag/trios crates/trios-igla-trainer/src/main.rs into
specs/port/trios/crates/trios-igla-trainer/src/main.t27: main(),
run_jepa_arch(), run_mock_training(), write_experience_log().

Decisions become testable helpers: clap argument defaults, --arch
routing, JepaConfig/JepaTrainArgs/TrainConfig assembly, --schedule
string mapping with Cosine fallback, git-sha 'unknown' fallback, the
mock-training LCG (state * 6364136223846793005 + 1 with Rust
wrapping_mul/wrapping_add semantics rebuilt via 32-bit limb
arithmetic), rng noise ((state >> 33) as f32 / u32::MAX - 0.5),
loss decay with 0.01 floor, step % 200 / step % 500 cadence, and the
experience-entry shape with exp_id.unwrap_or("training").

Side effects (clap argv parsing, tracing, TrainingAuditLog, dump_metric,
run_jepa_training, fs writes, git rev-parse) remain plumbing stubs in
the jepa_runner.t27 style. 14 test blocks, 0 vacuous; exact f32 series
values verified against Python ground truth.

Closes #9017
A pull request must add exactly one docs/now entry and a bee has no way
to know that: its brief names a boundary file and acceptance criteria,
and docs/now/ is neither. The publisher adds it rather than failing the
gate.

Closes #9017

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-11 11:58:51 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 48
PRs with All Checks Green 2
READY 2
FAILING 48
PENDING 0
NO CHECKS YET 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=acd3761a1ebf != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@tri-claw tri-claw Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer bee verdict for head 994c1caff04dc4091a6e924fcf556c2d38c669eb (tools/bees/reviewer.py, zai glm-4.5-flash, 4 turns, 148 s; then glm-4.7-flash, 3 turns, 210 s).

BEE-VERDICT: APPROVE
summary: Successfully ported all 4 functions from crates/trios-igla-trainer/src/main.rs to specs/port/trios/crates/trios-igla-trainer/src/main.t27
criterion: "test -f specs/port/trios/crates/trios-igla-trainer/src/main.t27 && echo present" -- met -- brief.md:698
criterion: "grep -cE '^\s*(pub )?fn (main|run_jepa_arch|run_mock_training|write_experience_log)(' specs/port/trios/crates/trios-igla-trainer/src/main.t27" -- met -- brief.md:699 (prints 4)
criterion: "t27c gen specs/port/trios/crates/trios-igla-trainer/src/main.t27 > /tmp/t27-gen.zig && grep -c 'not yet implemented' /tmp/t27-gen.zig" -- met -- brief.md:700 (prints 0)
criterion: "t27c spec-status specs/port/trios/crates/trios-igla-trainer/src/main.t27" -- met -- brief.md:702 (prints IMPLEMENTED)
criterion: "grep -cE '^[[:space:]]*test[[:space:]]+("|[A-Za-z_])' specs/port/trios/crates/trios-igla-trainer/src/main.t27" -- met -- brief.md:703 (prints 14)
criterion: "t27c test-report specs/port/trios/crates/trios-igla-trainer/src/main.t27 2>&1 | grep -c BLOCKED" -- met -- brief.md:704 (prints 0)
discounted-check: coverage -- does not count against this head; failing due to gen-drift issues with existing seals on master (ci_DerivedData.json, queen_QueenGoldenChain.json, queen_QueenHolds.json have drifted generated output)
discounted-check: spec-guards -- does not count against this head; failing due to same gen-drift issues as coverage check (3 seals with stale generated hash)
discounted-check: t27b-native-ratchet -- does not count against this head; already failing on master (ce1a007) before this PR was created

Evidence

Based on my analysis of the pull request and brief.md, here's my verdict:

Evidence Summary

The PR successfully ports the 4 required functions from gHashTag/trios:crates/trios-igla-trainer/src/main.rs to specs/port/trios/crates/trios-igla-trainer/src/main.t27:

  1. All acceptance criteria PASSED:

    • The file exists and contains all 4 required functions
    • Generated code has no "not yet implemented" markers (328 lines generated)
    • The file parses successfully (IMPLEMENTED status)
    • Contains 14 tests (more than the required 4)
    • All tests run without BLOCKED errors
  2. The port correctly follows the requirements:

    • Only the boundary file was modified
    • Pure logic is ported as testable functions
    • Side effects (I/O, external calls) are stubbed with undefined;
    • Tests verify the behavior of the original decisions
  3. Red checks are discounted:

    • coverage and spec-guards failures are due to gen-drift in existing seals on master, not related to this PR
    • t27b-native-ratchet is already failing on master

Second, independent review (glm-4.7-flash): APPROVE -- All acceptance criteria met; four functions correctly ported; core decision logic fully tested; generated code compiles and runs. Red checks are pre-existing failures on master.

@tri-claw tri-claw Bot added the bee-reviewed A reviewer bee reviewed and verified this PR at its current head; the only merge signal (#5525) label Oct 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-11 12:50:34 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 22
PRs with All Checks Green 28
READY 5
FAILING 22
PENDING 0
NO CHECKS YET 0

These columns do not partition: 5 + 22 + 0 + 0 = 27, and there are 50 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=acd3761a1ebf != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@gHashTag
gHashTag enabled auto-merge (squash) October 11, 2026 12:50
@gHashTag
gHashTag merged commit 0dfc9dc into master Oct 11, 2026
30 of 31 checks passed
@gHashTag
gHashTag deleted the queen-9017 branch October 26, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bee-reviewed A reviewer bee reviewed and verified this PR at its current head; the only merge signal (#5525)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port gHashTag/trios:crates/trios-igla-trainer/src/main.rs (Rust, 4 functions) to specs/port/trios/crates/trios-igla-trainer/src/main.t27

2 participants