Repository navigation
Port scripts/gen_w377.py (Python, 1 function) to specs/port/scripts/gen_w377.t27 - #7236
Merged
Merged
Conversation
The previous port returned ?bool -- an Option, against the port constraints -- and reduced the five literal substitutions to a new_block_len delta whose arithmetic was wrong (12 for a 13-char "Wave Loop 377", 20 for a 22-char "W376 seal regeneration", i += 4 after matching five chars of "w376_", i += 32 for a 28-char "WAVE_LOOP_375_COOPERATION.md"), and never produced the renumbered block the caller is supposed to write. Its matcher also ended blocks at a blank line instead of the invariant line's newline and never checked for "true". This re-authors the port so the decision inside append_w377 is code: the file text arrives as a parameter, the scan mirrors the regex (left to right, non-overlapping, the first newline+invariant whose continuation reaches a true newline), `if not m` and `if wave != 376` skip with the original's reasons, and build_new_block performs the five substitutions in the original's order -- each changes exactly one digit, so the port copies the block and patches those digits. The result is a W377Plan: appended, skip_reason, last_wave, insert_pos (last.end()) and the renumbered block. 8 tests assert the skip decisions, the renumbered bytes, the last-match rule and the matcher edges. Closes #5202
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 #5202 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Oct 7, 2026
Merged
Contributor
This was referenced Oct 7, 2026
Merged
Merged
This was referenced Oct 7, 2026
verified: R2-5 capstone -- ternary_link run citation, silicon-proven end to end (Closes #7177)
#7293
Merged
Merged
Merged
gHashTag
enabled auto-merge (squash)
October 7, 2026 07:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5202
Written by a bee on
queen-5202and published bytools/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.🤖 Generated with Claude Code