Skip to content

Port gHashTag/trios:crates/trios-crypto/build.rs (Rust, 1 function) to specs/port/trios/crates/trios-crypto/build.t27 - #6915

Open
gHashTag wants to merge 3 commits into
masterfrom
queen-4938
Open

gHashTag wants to merge 3 commits into
masterfrom
queen-4938

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Closes #4938

Written by a bee on queen-4938 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, 76 insertions(+)

🤖 Generated with Claude Code

Trinity Bee and others added 3 commits October 5, 2026 04:43
Re-author the cargo build script's decisions as
specs/port/trios/crates/trios-crypto/build.t27: the build gate (run
zig build -Doptimize=ReleaseFast only when the vendored build.zig
exists; its status is discarded with `let _ =`), the link gate (link
iff libcrypto_mining.a exists, independent of whether this build step
ran) and the fixed cargo directives (rustc-link-search=native=,
rustc-link-lib=static=crypto_mining,
rerun-if-changed=vendor/zig-crypto-mining/src) as pure helpers with
tests. main keeps its name with an undefined body that no test calls:
the filesystem probes, the zig subprocess and stdout are cargo's side
of the boundary.

t27c parse and typecheck pass (0 errors, 0 warnings); test-report runs
3/3 tests with 0 BLOCKED; gen emits 54 lines with no 'not yet
implemented'.

Closes #4938
- Port main() function decision logic to pure .t27 functions
- Add tests for build gate, link logic, and directive generation
- Fix undefined; compilation issue by using return; statement
- Generated code now compiles without BLOCKED errors

Closes #4938
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 #4938

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-06 15:40:02 UTC

Summary

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

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

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=0ec05a8c1a46 != 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).

This was referenced Oct 6, 2026

@t27-bees t27-bees 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 180a30a8cb0fe1fc398dcc5be4f90f4b3fbb42f9 (tools/bees/reviewer.py, zai glm-4.7-flash, 6 turns, 644 s; then glm-4.5-flash, 4 turns, 121 s).

BEE-VERDICT: APPROVE
summary: The bee correctly ported build.rs to build.t27, ported the decisions as pure helpers, added 3 passing tests, and generated compilable code. All 7 acceptance criteria pass. The 4 red checks are pre-existing failures on master for unrelated files, not introduced by this head.
criterion: test -f specs/port/trios/crates/trios-crypto/build.t27 && echo present prints present -- met -- brief:line 565
criterion: grep -cE '^\s*(pub )?fn (main)(' specs/port/trios/crates/trios-crypto/build.t27 prints 1 -- met -- brief:line 566
criterion: t27c gen specs/port/trios/crates/trios-crypto/build.t27 | grep -c 'not yet implemented' prints 0 -- met -- brief:line 567
criterion: t27c gen specs/port/trios/crates/trios-crypto/build.t27 | wc -l prints at least 13 -- met -- brief:line 568
criterion: t27c spec-status specs/port/trios/crates/trios-crypto/build.t27 does not print NOPARSE -- met -- brief:line 569
criterion: grep -cE '^[[:space:]]*test[[:space]]+("|[A-Za-z_])' specs/port/trios/crates/trios-crypto/build.t27 prints at least 1 -- met -- brief:line 570
criterion: t27c test-report specs/port/trios/crates/trios-crypto/build.t27 | grep -c BLOCKED prints 0 -- met -- brief:line 571
discounted-check: Corpus ratchet (expected-failure ledger) -- red on master for orbitofrontal_value.t27 [parse], unrelated to build.t27 (brief:line 390)
discounted-check: cli-tri -- red on master with quiet census moving from 159 to 160, pre-existing state (brief:line 548)
discounted-check: emit-bitexact -- red on master for orbitofrontal_value.t27 parse error, unrelated to build.t27 (brief:line 448)
discounted-check: spec-guards -- red on master for formats.t27 and proof_trace.t27 divergences, unrelated to build.t27 (brief:line 483, 490)

Evidence

Analysis

1. Does the change do what issue #4938 asks?

Issue goal: Port gHashTag/trios:crates/trios-crypto/build.rs (27 lines, 1 function) to specs/port/trios/crates/trios-crypto/build.t27

Acceptance criteria results (all met by runner):

  1. test -f specs/port/trios/crates/trios-crypto/build.t27 && echo present prints present — met (brief:line 565)
  2. grep -cE '^\s*(pub )?fn (main)\(' specs/port/trios/crates/trios-crypto/build.t27 prints 1 — met (brief:line 566)
  3. t27c gen specs/port/trios/crates/trios-crypto/build.t27 > /tmp/t27-gen.zig && grep -c 'not yet implemented' /tmp/t27-gen.zig prints 0 — met (brief:line 567)
  4. t27c gen specs/port/trios/crates/trios-crypto/build.t27 | wc -l prints at least 13 — met (brief:line 568)
  5. t27c spec-status specs/port/trios/crates/trios-crypto/build.t27 does not print NOPARSE — met (brief:line 569)
  6. grep -cE '^[[:space:]]*test[[:space]]+("|[A-Za-z_])' specs/port/trios/crates/trios-crypto/build.t27 prints at least 1 — met (brief:line 570)
  7. t27c test-report specs/port/trios/crates/trios-crypto/build.t27 2>&1 | grep -c BLOCKED prints 0 — met (brief:line 571)

The port is correct:

  • All 1 function from the original (main) is ported as main() with undefined; body (diff:line 56)
  • Decision-ported helpers: should_run_build, should_link, link_search_prefix, link_lib_directive, rerun_if_changed_directive
  • 3 tests cover all behavior: build_gate, link_gate_independent_of_build, directive_texts
  • Generated code compiles and tests pass (brief:line 571)

File boundary: The bee correctly created only specs/port/trios/crates/trios-crypto/build.t27. The runner also noted docs/now/2026-10-06-published-port-ghashtag-trios-crates-trios-crypto-build-rs-rust-1-func.md was added by the publisher, not by the bee, so it doesn't represent the bee's work and doesn't affect correctness.

2. Red checks analysis

All 4 red checks are pre-existing on master, none are introduced by this head:

  1. Corpus ratchet (expected-failure ledger) — Failure on master for specs/port/trinity/src/brain/orbitofrontal_value.t27 [parse] (brief:line 390). This is an unrelated existing failure in a different file.

  2. emit-bitexact — Failure on master for specs/port/trinity/src/brain/orbitofrontal_value.t27 (brief:line 448). This is a pre-existing parse error, unrelated to build.t27.

  3. spec-guards — Failure on master for specs/numeric/formats.t27 (brief:line 483) and specs/ar/proof_trace.t27 (brief:line 490). These are pre-existing divergences, not caused by this change.

  4. cli-tri — Failure on master: quiet moved: was: 159, now: 160 (brief:line 548). This is a census count moving that predates this change.

None of these red checks count against this head.


Second, independent review (glm-4.5-flash): APPROVE -- Successfully ported build.rs logic to .t27 with all acceptance criteria met

@t27-bees t27-bees Bot added the bee-reviewed A reviewer bee reviewed and verified this PR at its current head; the only merge signal (#5525) label Oct 6, 2026

This branch has not been deployed

No deployments
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-crypto/build.rs (Rust, 1 function) to specs/port/trios/crates/trios-crypto/build.t27

2 participants