Skip to content

Port gHashTag/trios:crates/trios-cli/src/cmd/issue.rs (Rust, 2 functions) to specs/port/trios/crates/trios-cli/src/cmd/i - #7795

Merged
gHashTag merged 1 commit into
masterfrom
queen-7771
Oct 12, 2026
Merged

gHashTag merged 1 commit into
masterfrom
queen-7771

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Closes #7771

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

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-08 12:30:02 UTC

Summary

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

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

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=39fa3908f9fd != 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 a079c31d31363f525ef60617d6b6ca5a9f2b60ef (tools/bees/reviewer.py, zai glm-4.7-flash, glm-4.5-flash, 3 turns, 113 s).

BEE-VERDICT: REQUEST_CHANGES
summary: The .t27 file passes all acceptance criteria but fails to generate Verilog code, indicating a syntax compatibility issue with the Verilog backend.
criterion: "Port the decision logic and maintain compatibility with all backends" -- unmet -- The file fails Verilog generation which is a required capability for .t27 files
blocking-check: Corpus ratchet (expected-failure ledger)` -- The head introduced a real defect: the new .t27 file fails to generate Verilog code, causing an unexpected failure in the corpus ratchet

Evidence

Based on my analysis of the pull request, here's my verdict:

Evidence

The pull request successfully ports the two required functions from the Rust file to a .t27 specification file:

  1. File Creation: The file specs/port/trios/crates/trios-cli/src/cmd/issue.t27 is created with the correct path and exists (criterion 1 passed).

  2. Function Porting: Both required functions issue_new and issue_close are declared with undefined; bodies as required (criterion 2 passed).

  3. Generated Code Quality: The generated Zig code has no "not yet implemented" placeholders and contains 104 lines (criterion 3 passed).

  4. Parsing: The file parses successfully with status "IMPLEMENTED" (criterion 4 passed).

  5. Testing: The file includes 6 test blocks that thoroughly test the helper functions implementing the decision logic from the original (criterion 5 passed).

  6. Test Execution: All tests run without BLOCKED errors (criterion 6 passed).

The port correctly follows the "port the decision, not the plumbing" principle by:

  • Keeping issue_new and issue_close with undefined; bodies
  • Implementing the decision logic in helper functions like build_issue_content and build_bpb_comment
  • Including comprehensive tests that cover all template types and edge cases

Red Checks Analysis

  • Corpus ratchet (expected-failure ledger): This check failed due to an unexpected failure in Verilog generation for the new file. This is a real defect introduced by this head since the file fails to generate Verilog code, which is part of the expected behavior for .t27 files.

  • t27b-native-ratchet: This check was already red on master, so it doesn't count against this head.

This was referenced Oct 8, 2026
This was referenced Oct 10, 2026
…thful to the source's [N][]const u8 (Refs #7771)

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

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-12 09:33:59 UTC

Summary

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

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e769ef021713 != 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 fccd3e5e80ef7eec4f52ae858226b4f5ccc54b33 (tools/bees/reviewer.py, zai glm-4.7-flash, 4 turns, 49 s; then glm-4.5-flash, 4 turns, 125 s).

BEE-VERDICT: APPROVE
summary: Port is complete and correct: both functions ported with decision logic in pure helpers, 6 comprehensive tests covering all templates and edge cases, all acceptance criteria tests pass, generated code compiles and runs successfully.
criterion: "test -f specs/port/trios/crates/trios-cli/src/cmd/issue.t27 && echo present" -- met -- evidence: brief.md:745
criterion: "grep -cE '^\s*(pub )?fn (issue_new|issue_close)(' specs/port/trios/crates/trios-cli/src/cmd/issue.t27" prints 2 -- met -- evidence: brief.md:746
criterion: "t27c gen specs/port/trios/crates/trios-cli/src/cmd/issue.t27 > /tmp/t27-gen.zig && grep -c 'not yet implemented' /tmp/t27-gen.zig" prints 0 -- met -- evidence: brief.md:747
criterion: "t27c gen specs/port/trios/crates/trios-cli/src/cmd/issue.t27 | wc -l" prints at least 13 -- met -- evidence: brief.md:748
criterion: "t27c spec-status specs/port/trios/crates/trios-cli/src/cmd/issue.t27" does not print NOPARSE -- met -- evidence: brief.md:749
criterion: "grep -cE '^[[:space:]]*test[[:space:]]+("|[A-Za-z_])' specs/port/trios/crates/trios-cli/src/cmd/issue.t27" prints at least 2 -- met -- evidence: brief.md:750
criterion: "t27c test-report specs/port/trios/crates/trios-cli/src/cmd/issue.t27 2>&1 | grep -c BLOCKED" prints 0 -- met -- evidence: brief.md:751
discounted-check: Documented t27c subcommands exist -- failure is a pre-existing documentation health check failure on master (brief.md:483-530), unrelated to this PR
discounted-check: cli-tri -- failure is a pre-existing Rust compiler error on master (brief.md:536-585), unrelated to the new issue.t27 file
discounted-check: t27b-native-linux -- failure is a pre-existing type mismatch on master (brief.md:588-634), unrelated to this PR
discounted-check: t27b-native-macos -- failure is identical to linux, pre-existing on master (brief.md:639-689), unrelated to this PR
discounted-check: t27b-native-ratchet -- failure is identical to linux/mac, pre-existing on master (brief.md:691-741), unrelated to this PR

Evidence

I've verified the complete implementation. Let me finalize my review.


Summary

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

Yes. The change ports both required functions from the original Rust code:

  • pub fn issue_new(template: []const u8, args: []str) -> ?u32 with undefined; body (decision logic only)
  • pub fn issue_close(num: u32, bpb: ?f64) -> ?void with undefined; body (decision logic only)

The decision logic is ported to pure helper functions with 6 comprehensive tests:

  • build_issue_content: Handles 3 templates (experiment, bug, feature) with proper validation and error responses
  • build_bpb_comment: Returns proper comment value or null when BPB is not provided

All 7 acceptance criteria tests from the runner PASSED:

  • File exists: ✅ present
  • Both functions present: ✅ 2
  • Generated code clean: ✅ 0 "not yet implemented"
  • Generated output size: ✅ 104 lines (>12)
  • File parses: ✅ IMPLEMENTED (not NOPARSE)
  • Test count: ✅ 6 tests (≥2)
  • No BLOCKED tests: ✅ 0

The generated code correctly compiles and runs all tests successfully. This faithfully reproduces the original Rust functions' behavior (titles, bodies, labels for each template, validation for missing args, BPB comment formatting) using the .t27 language features available.

Boundary violations? None. Only specs/port/trios/crates/trios-cli/src/cmd/issue.t27 was created. The docs/ changes are publication/ledger entries, not hand-written code edits outside the boundary.

2. Red checks - Do they count against this head?

None count. All 5 red checks are pre-existing failures on master, unrelated to this PR:

  1. Documented t27c subcommands exist - FAILURE on master (ab0a4c8). Pre-existing documentation health check failure, not introduced by this change.

  2. cli-tri - FAILURE on master (ab0a4c8). Rust compiler errors in unrelated files (check_staged, unused vars), same errors on master.

  3. t27b-native-linux - FAILURE on master (ab0a4c8). Type mismatch in i128_plan.rs, unused vars. Same error on master.

  4. t27b-native-macos - FAILURE on master (ab0a4c8). Identical error to Linux version.

  5. t27b-native-ratchet - FAILURE on master (ab0a4c8). Same i128_plan.rs error as others.

Defects introduced by head? None. The generated code compiles cleanly (BLOCKED: 0), all tests pass, and the implementation is sound and complete.

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

@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 12, 2026
@gHashTag
gHashTag enabled auto-merge (squash) October 12, 2026 10:02
@gHashTag
gHashTag merged commit b5038d3 into master Oct 12, 2026
31 of 36 checks passed
gHashTag added a commit that referenced this pull request Oct 12, 2026
…83 (Refs #9281) (#9303)

The W628 expected-failure ledger went over cap (77 > 75) and showed six
UNEXPECTED FAILURES on master (run 38290342182, identical on dbf1920 and
90fc25b -- standing, not caused by the #9299 bless).

Six ported specs, evidence from the run's own ratchet.log artifact:

- five W469 refusals, [N][]const u8 locals the ports must keep faithful to
  their sources: depin_rest #7014 (fields, line 60), tri_asm_base #9211
  (lines, 136), sweep #7070 (values, 139), trios-server main #9254 (types,
  325), trios-train-cpu main #9258 (args, 467)
- gen_lru_cache_impl #8923: ported identifiers lower to a bare Verilog
  keyword `end` (verilog-no-keyword-decl, generated line 779)

The over-cap state was left by #7689/#7795/#9176, which hand-ledgered three
W469 entries without raising the cap while the job was red at an earlier
step; the single raise 75 -> 83 covers both, one reviewable event.

Refs #9281.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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-cli/src/cmd/issue.rs (Rust, 2 functions) to specs/port/trios/crates/trios-cli/src/cmd/issue.t27

1 participant