Skip to content

Port gHashTag/trinity:fpga/uart_loopback.v (Verilog, 1 module) to specs/port/trinity/fpga/uart_loopback.t27 - #7156

Merged
gHashTag merged 2 commits into
masterfrom
queen-5603
Oct 7, 2026
Merged

gHashTag merged 2 commits into
masterfrom
queen-5603

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Closes #5603

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

🤖 Generated with Claude Code

Trinity Bee and others added 2 commits October 2, 2026 14:59
The turn ended with these files edited and never committed. Uncommitted
work is invisible to the review - it reads the branch - so the attempt
would have been released as empty and the next bee would have started
beside this work rather than from it.

This commit is not a claim that the work is correct. It is the bee's
work, committed on its behalf, and it is judged exactly like any other:
the adversarial reviewer reads it, the compiler runs on it, and the
issue's own criteria are measured against it.

Issue: #5603
Turn: 61761eb9-39fe-4d31-a86f-d10c29c41d71
Ending: finished (the turn closed)
Committed: 1 path(s)
Left uncommitted: 0 path(s) outside the declared boundary
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 #5603

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

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-06 23:06:28 UTC

Summary

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

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

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=b23641f01baa != 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
This was referenced Oct 7, 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 62cfbd28f8338669a98f32c0ae282f466c8c4a6c (tools/bees/reviewer.py, zai glm-4.7-flash, glm-4.5-flash, 14 turns, 344 s).

BEE-VERDICT: REQUEST_CHANGES
summary: The t27 file contains only data structures and tests, not actual hardware description. It fails to implement the UART loopback functionality that would generate equivalent Verilog to the original module.
criterion: "1. test -f specs/port/trinity/fpga/uart_loopback.t27 && echo present prints present" -- met -- brief.md:560
criterion: "2. grep -cE '^\s*(pub )?module uart_loopback\b' specs/port/trinity/fpga/uart_loopback.t27 prints 1" -- met -- brief.md:561
criterion: "3. t27c gen-verilog specs/port/trinity/fpga/uart_loopback.t27 | grep -cE '^module uart_loopback ?\(' prints 1" -- met -- brief.md:562 (but generates empty module)
criterion: "4. t27c spec-status specs/port/trinity/fpga/uart_loopback.t27 does not print NOPARSE" -- met -- brief.md:563
criterion: "5. grep -cE '^[[:space:]]*test[[:space:]]+("|[A-Za-z_])' specs/port/trinity/fpga/uart_loopback.t27 prints at least 1" -- met -- brief.md:564
criterion: "6. t27c test-report specs/port/trinity/fpga/uart_loopback.t27 2>&1 | grep -c BLOCKED prints 0" -- met -- brief.md:565
blocking-check: Implementation correctness -- The t27 file contains only data structures and tests, not actual hardware description. It fails to implement the UART loopback module functionality, missing input/output port declarations and actual logic that would generate equivalent Verilog to the original module.

Evidence

Now I see the issue! The file only has a single var declaration in the validate_core_instance function, and it's a local variable that gets returned. There's no module-level state that would generate Verilog signals or registers.

The fact that the acceptance criteria #3 passed (t27c gen-verilog specs/port/trinity/fpga/uart_loopback.t27 | grep -cE '^module uart_loopback ?\(' prints 1) suggests that t27 does generate a module from this file. But the module would be completely empty - no ports, no logic, just an empty module declaration.

This means the implementation is fundamentally wrong. The issue asks to port the original Verilog module, which:

  1. Has input/output ports (clk, uart_rx, uart_tx, led)
  2. Instantiates another module (uart_loopback_core)
  3. Connects the ports between the wrapper and the core

The t27 version should describe the same hardware structure, not just data structures that represent the module's configuration.

Looking at the examples in specs/fpga/, I can see that proper FPGA t27 specs:

  1. Declare input/output ports
  2. Use var for module-level state
  3. Implement actual logic functions
  4. May instantiate other modules

The current uart_loopback.t27 file fails to do any of this. It doesn't even declare the input/output ports that the original Verilog module has.

This is a clear violation of the requirements. The acceptance criteria are misleading because they only check superficial properties (file exists, has a module declaration, parses, has tests) but don't verify that the actual functionality is correct.

The original issue specifically states:

"Re-author it as specs/port/trinity/fpga/uart_loopback.t27, so that the code is generated from .t27 instead of written by hand."

The current implementation doesn't generate the equivalent Verilog code - it generates an empty module with no logic, which is not equivalent to the original.

This PR should be rejected because it doesn't actually implement the requested functionality, even though it passes the superficial acceptance criteria.

@gHashTag
gHashTag enabled auto-merge (squash) October 7, 2026 07:22
@gHashTag
gHashTag merged commit 7962b8e into master Oct 7, 2026
25 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port gHashTag/trinity:fpga/uart_loopback.v (Verilog, 1 module) to specs/port/trinity/fpga/uart_loopback.t27

2 participants