Skip to content

Port gHashTag/trinity:src/tri/gen_perceptron.zig (Zig, 4 functions) to specs/port/trinity/src/tri/gen_perceptron.t27 - #7079

Merged
github-actions[bot] merged 2 commits into
masterfrom
queen-5685
Oct 7, 2026
Merged

github-actions[bot] merged 2 commits into
masterfrom
queen-5685

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Closes #5685

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

🤖 Generated with Claude Code

Trinity Bee and others added 2 commits October 3, 2026 13:45
…y/src/tri/gen_perceptron.t27

Add 4 functions: Perceptron_init, Perceptron_predict, Perceptron_train, Perceptron_deinit
Add 5 test blocks covering basic functionality, prediction, training, edge cases, and deinitialization

Closes #5685
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 #5685

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 20:45:02 UTC

Summary

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

These columns do not partition: 0 + 49 + 0 + 0 = 49, 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 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 845fd9bab18095b03c70b8f044fb007aa2d942f9 (tools/bees/reviewer.py, zai glm-4.7-flash, 4 turns, 271 s; then glm-4.5-flash, 4 turns, 71 s).

BEE-VERDICT: APPROVE
summary: Port correctly ports all 4 functions from the original Zig file to .t27 format, generates compilable code, passes all tests, and strictly follows the boundary of one file.
criterion: "test -f specs/port/trinity/src/tri/gen_perceptron.t27 && echo present" -- met -- evidence: brief.md:489
criterion: "grep -cE '^\s*(pub )?fn (Perceptron_init|Perceptron_predict|Perceptron_train|Perceptron_deinit)(' specs/port/trinity/src/tri/gen_perceptron.t27" prints 4 -- met -- evidence: brief.md:490
criterion: "grep -c 'not yet implemented' /tmp/t27-gen.zig" prints 0 -- met -- evidence: brief.md:491
criterion: "t27c gen specs/port/trinity/src/tri/gen_perceptron.t27 | wc -l" prints more than 12 -- met -- evidence: brief.md:492
criterion: "t27c spec-status specs/port/trinity/src/tri/gen_perceptron.t27" does not print NOPARSE -- met -- evidence: brief.md:493
criterion: "grep -cE '^[[:space:]]*test' specs/port/trinity/src/tri/gen_perceptron.t27" prints at least 4 -- met -- evidence: brief.md:494
criterion: "t27c test-report specs/port/trinity/src/tri/gen_perceptron.t27 | grep -c BLOCKED" prints 0 -- met -- evidence: brief.md:495
discounted-check: spec-guards -- the failure is a pre-existing tracking issue with figure drift in published_figures.py, not a defect introduced by this head (master already red at fd28018)
discounted-check: t27b-native-ratchet -- the failure is a pre-existing ratchet issue on master (run.json test "1" = "0" red on master before PR was merged)

Evidence

Now let me analyze the implementation and checks:

Analysis of Acceptance Criteria:

  1. File exists - PASSED (Criterion: test -f specs/port/trinity/src/tri/gen_perceptron.t27 && echo present prints present)

  2. 4 functions ported - PASSED (Criterion: grep -cE '^\s*(pub )?fn (Perceptron_init|Perceptron_predict|Perceptron_train|Perceptron_deinit)\(' specs/port/trinity/src/tri/gen_perceptron.t27 prints 4)

    • Functions: Perceptron_init, Perceptron_predict, Perceptron_train, Perceptron_deinit are all present (lines 9, 20, 31, 42)
  3. Generated code has no "not yet implemented" - PASSED (Criterion: grep -c 'not yet implemented' /tmp/t27-gen.zig prints 0)

    • The generator produces valid Zig code with 80 lines
  4. Generated code > 12 lines - PASSED (Criterion: wc -l prints 80)

  5. File parses - PASSED (Criterion: t27c spec-status prints IMPLEMENTED, not NOPARSE)

  6. At least 4 test blocks - PASSED (Criterion: grep -cE '^[[:space:]]*test' prints 5)

    • Tests: perceptron_init_basic, perceptron_predict_simple, perceptron_training_update, perceptron_edge_cases, perceptron_deinit_structure
  7. Tests run without BLOCKED - PASSED (Criterion: grep -c BLOCKED prints 0)

Does the change do what issue asks?

Yes. The port correctly:

  • Creates only the boundary file (specs/port/trinity/src/tri/gen_perceptron.t27)
  • Ported all 4 functions with correct names
  • "Ported the decision, not the plumbing" - the allocator parameter is kept but unused (placeholder)
  • The generated code compiles and all tests pass
  • Tests assert on behavior from the original
  • No tests call functions with undefined; bodies
  • No edits to original files

Red checks analysis:

  1. spec-guards - Discounted. The failure is about "figure drifted" - this is a tracking issue with the metrics, not a defect in this PR. The PR was merged before master checks ran. The failure is in tools/published_figures.py checking pre-existing counts.

  2. t27b-native-ratchet - Discounted. The failure is in test "1" = "0" in run.json on master before this PR was merged. This is a pre-existing failure in the ratchet on master.

Both failures are on master, not introduced by this head. The brief states: "on master: master fd28018: failure" for the ratchet.

Second, independent review (glm-4.5-flash): APPROVE -- The PR successfully ports all 4 required functions to .t27 format with correct names and sufficient tests, following the "port the decision, not the plumbing" guidance.

@t27-bees t27-bees Bot added the bee-reviewed A reviewer bee reviewed and verified this PR at its current head; the only merge signal (#5525) label Oct 7, 2026
@gHashTag
gHashTag enabled auto-merge (squash) October 7, 2026 07:23
auto-merge was automatically disabled October 7, 2026 07:27

Base branch was modified

@github-actions
github-actions Bot merged commit 848490e into master Oct 7, 2026
28 of 30 checks passed
@github-actions
github-actions Bot deleted the queen-5685 branch October 7, 2026 10:05
gHashTag added a commit that referenced this pull request Oct 7, 2026
…st today's base (Refs #7473)

The own-language run on e4a1d2c compared against base 848490e (#7079),
so its budget counted bootstrap/src/service.rs from other merged PRs.
Against current master this branch changes only two .t27 specs.

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/trinity:src/tri/gen_perceptron.zig (Zig, 4 functions) to specs/port/trinity/src/tri/gen_perceptron.t27

2 participants