Skip to content

Port fpga/vivado/gf16_mul.v (Verilog, 1 module) to specs/port/fpga/vivado/gf16_mul.t27 - #6929

Open
gHashTag wants to merge 2 commits into
masterfrom
queen-6783
Open

gHashTag wants to merge 2 commits into
masterfrom
queen-6783

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Closes #6783

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

🤖 Generated with Claude Code

Trinity Bee and others added 2 commits October 6, 2026 12:28
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: #6783
Turn: 6388bfad-0e9d-4172-9558-451daa9564bd
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 #6783

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@gHashTag
gHashTag enabled auto-merge (squash) October 6, 2026 15:30
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 16:05:17 UTC

Summary

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

These columns do not partition: 0 + 42 + 0 + 0 = 42, 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 df6d94b33fb49d2800a5f48a3078c99b8fb78f09 (tools/bees/reviewer.py, zai glm-4.7-flash, 3 turns, 33 s).

BEE-VERDICT: REQUEST_CHANGES
summary: Generated code fails to compile (BLOCKED=1) because spec uses invalid Rust-style syntax; only 5 of 6 acceptance criteria met
criterion: "test -f specs/port/fpga/vivado/gf16_mul.t27 && echo present" -- unmet -- evidence: brief:599 shows printed present criterion: "grep -cE '^\s*(pub )?module gf16_mul\b' specs/port/fpga/vivado/gf16_mul.t27' -- unmet -- evidence: brief:600 shows printed 1
criterion: "t27c gen-verilog specs/port/fpga/vivado/gf16_mul.t27 | grep -cE '^module gf16_mul ?(' specs/port/fpga/vivado/gf16_mul.t27'" -- unmet -- evidence: brief:601 shows printed 1 criterion: "t27c spec-status specs/port/fpga/vivado/gf16_mul.t27 does not print NOPARSE" -- unmet -- evidence: brief:602 shows printed IMPLEMENTED
criterion: "grep -cE '^[[:space:]]*test[[:space:]]+("|[A-Za-z_])' specs/port/fpga/vivado/gf16_mul.t27" prints at least 1" -- unmet -- evidence: brief:603 shows printed 11 criterion: "t27c test-report specs/port/fpga/vivado/gf16_mul.t27 2>&1 | grep -c BLOCKED" prints 0-- unmet -- evidence: brief:604 shows printed1
discounted-check: Check L1 TRACEABILITY -- failure existed on master before this PR (brief:495, 544-542)
blocking-check: t27c test-report specs/port/fpga/vivado/gf16_mul.t27 -- spec uses invalid Rust-style syntax (const with : u32, var with type annotations, invalid bool->int casts) causing generated code to fail compilation (diff:36,95-99,142-143,159,216-218, brief:604)

Evidence

Looking at the issue requirements and the code in the diff, I need to verify each acceptance criterion against the actual implementation.

Analysis:

The brief shows 6 acceptance criteria and 2 red checks. Let me evaluate them:

Acceptance criteria verification:

  1. ✓ File exists: test -f prints present (brief:line 599)
  2. ✓ Module name correct: grep prints 1 (brief:line 600)
  3. ✓ Generated Verilog has same module name: grep prints 1 (brief:line 601)
  4. ✓ Parses: spec-status prints IMPLEMENTED (brief:line 602)
  5. ✓ Tests exist: grep prints 11 (brief:line 603)
  6. ✗ FAILED - Tests compile and run: t27c test-report prints 1 for BLOCKED (brief:line 604)

The BLOCKED count is 1, not 0. This means the generated code has a compilation error.

Investigating the compilation failure:

The spec uses invalid syntax for the .t27 language:

  • Line 36: const BIAS: u32 = 31; - uses Rust-like type annotation : u32 which is not supported
  • Lines 95-99: var sign_a: bool = extract_sign(inputs.a); - uses Rust-style variable declaration
  • Lines 142-143: var full_mant_a: u32 = ... - Rust-style type annotations
  • Line 159: var final_result: u16 = 0; - Rust-style variable declarations
  • Lines 140-141, 166-167, 172-173, 178-179, 184-185, 190-195, 197-205: All use Rust-style syntax
  • Lines 216-218: ((if (result_sign) 1u32 else 0u32) << 15) - invalid type casting from bool to int in .t27

The core issue is that the bee used Rust syntax instead of .t27 syntax, which causes the generated code to fail compilation. Specifically:

  • The syntax var x: Type = value is invalid
  • The syntax const x: Type = value is invalid
  • The syntax if (bool) 1u32 else 0u32 is invalid (no cast syntax like as u32)

This is a fundamental correctness issue - the specification is not valid .t27 code that can be generated.

Red checks analysis:

  1. Check L1 TRACEABILITY - This is not about the code correctness. It's about the commits having issue references. The brief says "on master: not run on the last 6 commits of master", meaning this failure existed before this head. This check counts against the PR.

  2. spec-guards - The brief shows this failure is due to unrelated specs. The check fails because the ring specification drifted from the Rust implementation, but this is not caused by this PR. This check does NOT count against this head.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port fpga/vivado/gf16_mul.v (Verilog, 1 module) to specs/port/fpga/vivado/gf16_mul.t27

2 participants