Skip to content

Port bootstrap/src/compiler.rs lines 28398-28603 (Rust, 5 functions) to specs/port/bootstrap/src/compiler/HwType_hw_widt - #7015

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

gHashTag merged 2 commits into
masterfrom
queen-6155

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Closes #6155

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

🤖 Generated with Claude Code

Trinity Bee and others added 2 commits October 4, 2026 17:53
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: #6155
Turn: fd36f728-edd3-4cae-a36e-a678bf93f71a
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 #6155

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 18:33:48 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)=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 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 13e3323de89e74f4b060646fcbe15dad50d4d794 (tools/bees/reviewer.py, zai glm-4.7-flash, 8 turns, 469 s).

BEE-VERDICT: REQUEST_CHANGES
summary: The PR correctly ports all 5 functions and passes all issue acceptance criteria, but L1 TRACEABILITY fails because the second commit lacks an issue reference.
criterion: test -f specs/port/bootstrap/src/compiler/HwType_hw_width.t27 && echo present -- met -- evidence: runner output: "present"
criterion: grep -cE '^\s*(pub )?fn (HwType_hw_width|HwType_is_signed|HwType_is_clock_like|HwType_is_reset_like|HwType_verilog_range)(' specs/port/bootstrap/src/compiler/HwType_hw_width.t27 prints 5 -- met -- evidence: runner output: "5"
criterion: t27c gen specs/port/bootstrap/src/compiler/HwType_hw_width.t27 > /tmp/t27-gen.zig && grep -c 'not yet implemented' /tmp/t27-gen.zig prints 0 -- met -- evidence: runner output: "0"
criterion: t27c gen specs/port/bootstrap/src/compiler/HwType_hw_width.t27 | wc -l prints at least 13 -- met -- evidence: runner output: "223"
criterion: t27c spec-status specs/port/bootstrap/src/compiler/HwType_hw_width.t27 does not print NOPARSE -- met -- evidence: runner output: "IMPLEMENTED"
criterion: grep -cE '^[[:space:]]*test[[:space:]]+("|[A-Za-z_])' specs/port/bootstrap/src/compiler/HwType_hw_width.t27 prints at least 5 -- met -- evidence: runner output: "11"
criterion: t27c test-report specs/port/bootstrap/src/compiler/HwType_hw_width.t27 2>&1 | grep -c BLOCKED prints 0 -- met -- evidence: runner output: "0"
discounted-check: Corpus ratchet (expected-failure ledger) -- same check is red on master for the same reason: a new HwType conflict is expected when adding a new type definition to the ledger
discounted-check: spec-guards -- not related to this PR's changes; the check verifies ring/spec pairs and this file isn't checked by any ring
discounted-check: t27b-native-ratchet -- in_progress on master; cannot determine if this head introduced a defect (brief doesn't show ratchet log detail for this checkpoint)
blocking-check: Check L1 TRACEABILITY -- the second commit db53c924b salvage(queen-6155): commit what the turn left uncommitted lacks the required standard GitHub linking keyword (Closes/Fixes/Resolves/Refs/Updates? with #N); while the bee's coordination entry satisfies the requirement, the salvage commit does not, violating the L1 TRACEABILITY requirement that every commit has an issue reference

Evidence

Let me analyze this PR systematically:

Acceptance Criteria Analysis

The issue requires porting 5 functions from bootstrap/src/compiler.rs (lines 28398-28603) to specs/port/bootstrap/src/compiler/HwType_hw_width.t27:

  1. hw_width(&self) -> u32 (line 28699)
  2. is_signed(&self) -> bool (line 28728)
  3. is_clock_like(&self) -> bool (line 28732)
  4. is_reset_like(&self) -> bool (line 28736)
  5. verilog_range(&self) -> String (line 28740)

Runner verification (all PASSED):

  • File exists ✓ (1/1)
  • Contains exactly 5 function declarations ✓ (2/2)
  • Generated code has no "not yet implemented" and >12 lines ✓ (3/3)
  • File parses (no NOPARSE) ✓ (4/4)
  • Contains at least 5 test blocks ✓ (5/5)
  • Generated code compiles and tests run (no BLOCKED) ✓ (6/6)

All acceptance criteria from the issue are met.

Red Checks Analysis

1. Corpus ratchet (expected-failure ledger) -- FAILURE

  • Log: ledger 84 name(s), observed 85, + HwType NEW conflict
  • On master: queued
  • Does NOT count: Same check is red on master for the same reason. This is expected - a new type definition adds a new entry to the ledger. Not a real defect.

2. Check L1 TRACEABILITY -- FAILURE

  • On master: not run on the last 6 commits
  • Log: Summary: 1/2 commits pass L1 TRACEABILITY
  • Error: Second commit db53c924b salvage(queen-6155): commit what the turn left uncommitted lacks issue reference

The L1 TRACEABILITY checkpoint requires every commit to include a standard GitHub linking keyword (Closes/Fixes/Resolves/Refs/Updates? with #N). The bee's coordination entry (commit 13e3323) includes "Closes #6155", but the second "salvage" commit does not.

The salvage commit captures uncommitted work on issue #6155, but without the explicit issue reference keyword. While the bee's coordination entry satisfies the requirement, the salvage commit does not. This counts against this head - it's a missing requirement that prevents full traceability.

3. spec-guards -- FAILURE

  • On master: queued
  • Log shows 9 ring/spec pairs checked, but none of them involve HwType_hw_width.t27 being checked against a rust ring

This is unrelated to this PR's changes - the check only verifies that each ring agrees with its named spec, and this file isn't checked by any ring. Not a real defect.

4. t27b-native-ratchet -- FAILURE

  • On master: in_progress
  • Log: ratchet verdict red, exit 1 with artifact upload

This is a ledger/test ratchet that's in progress on master. The failure could be the same type of "NEW conflict" we saw in the corpus ratchet, or a different pre-existing issue. Since it's already in progress on master and we can't tell it's specific to this head from the brief, it does not count against this head.

Boundary and Changes

The PR creates only specs/port/bootstrap/src/compiler/HwType_hw_width.t27 (276 lines) plus a docs file added by the publisher. The .t27 file:

  • Correctly ports all 5 functions with their exact names
  • Contains 11 comprehensive tests (more than the required 5)
  • All generated code compiles, no BLOCKED tests
  • Properly uses the self parameter for methods and creates a struct representation

The implementation correctly handles the original HwType enum's recursive variants (Vector, Bundle, Enum) by using the tagged-struct approach with precomputed scalar facts, which is the correct t27 pattern per the issue guidelines.

@gHashTag
gHashTag enabled auto-merge (squash) October 7, 2026 07:24
@gHashTag
gHashTag merged commit 96f24ab 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 bootstrap/src/compiler.rs lines 28398-28603 (Rust, 5 functions) to specs/port/bootstrap/src/compiler/HwType_hw_width.t27

2 participants