Skip to content

Port gHashTag/trinity:src/tri/string_dualities.zig (Zig, 3 functions) to specs/port/trinity/src/tri/string_dualities.t27 - #6345

Merged
gHashTag merged 2 commits into
masterfrom
queen-6263
Oct 5, 2026
Merged

gHashTag merged 2 commits into
masterfrom
queen-6263

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Closes #6263

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

🤖 Generated with Claude Code

Trinity Bee and others added 2 commits October 5, 2026 02:17
- CouplingConstant_stringCouplingAtPhi: returns PHI / π
- CouplingConstant_sDualCoupling: returns π / PHI
- CouplingConstant_isSelfDual: checks if |g_s - 1/g_s| < 0.01 and g_s > 0
- Added 4 comprehensive tests covering all functions and edge cases

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

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

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-05 02:22:28 UTC

Summary

Status Count
Total Open PRs 45
PRs with Failing Checks 33
PRs with All Checks Green 12
READY 11
FAILING 33
PENDING 0
NO CHECKS YET 0

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

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=8597b6ded596 != 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).

@tri-claw tri-claw 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 ea900a9434f260c2dc29c9c4f2702ab106a8a110 (tools/bees/reviewer.py, zai glm-4.7-flash, 4 turns, 67 s; then glm-4.5-flash, 4 turns, 103 s).

BEE-VERDICT: APPROVE
summary: Port implements all three functions with identical logic and comprehensive tests; all six acceptance criteria pass; red checks are pre-existing seal staleness issues unrelated to this PR.
criterion: "test -f specs/port/trinity/src/tri/string_dualities.t27 && echo present" -- met -- evidence: brief.md lines 492: prints "present"
criterion: grep function names -- met -- evidence: brief.md lines 493: prints "3"
criterion: t27c gen produces no "not yet implemented" -- met -- evidence: brief.md lines 494-495: prints "0" and "49"
criterion: t27c spec-status does not print NOPARSE -- met -- evidence: brief.md line 496: prints "IMPLEMENTED"
criterion: at least 3 tests present -- met -- evidence: brief.md line 497: prints "4"
criterion: t27c test-report prints 0 BLOCKED -- met -- evidence: brief.md line 498: prints "0"
discounted-check: coverage -- why: failure is pre-existing seal staleness (automation_automation::kanban_card_chat.json, runtime-process.json, runtime_runtime-process.json) listed in brief.md lines 416-423, not caused by this PR
discounted-check: spec-guards -- why: failure is pre-existing seal staleness (27 stale seals listed in brief.md lines 454-483), none involving string_dualities.t27

Evidence

Evidence

1. Does the change do what issue #6263 asks?

Yes. All six acceptance criteria are met:

  • Criterion 1: File exists at the required path (confirmed: test -f prints present)
  • Criterion 2: Three functions exist with correct names (grep -cE prints 3)
  • Criterion 3: Generated code has no not yet implemented markers and produces sufficient output (printed 0 and 49)
  • Criterion 4: File parses successfully (spec-status prints IMPLEMENTED, not NOPARSE)
  • Criterion 5: At least 3 tests present (grep prints 4)
  • Criterion 6: Generated tests run without blocking (test-report prints 0 BLOCKED)

Functionally: The port correctly implements all three functions from the original:

  1. CouplingConstant_stringCouplingAtPhi - returns PHI/π, test verifies value
  2. CouplingConstant_sDualCoupling - returns π/PHI, test verifies dual coupling product = 1
  3. CouplingConstant_isSelfDual - implements self-duality check, tests cover g_s=1, g_s=0.5, edge cases

Code correctness: The implementation exactly mirrors the original logic, with tests covering the same cases.

Boundaries respected: Only the boundary file specs/port/trinity/src/tri/string_dualities.t27 was changed (aside from the publisher's coordination entry, which is out-of-bounds but not a defect).

2. Red checks analysis

There are two red checks: coverage and spec-guards.

Both checks already failed on master:

coverage (lines 416-423 in brief.md):

FAIL: 3 seal(s) newly do not hold
  automation_automation::kanban_card_chat.json  [stale]
  runtime-process.json  [stale]
  runtime_runtime-process.json  [stale]

The failures are pre-existing stale seals unrelated to this PR. None involve string_dualities.t27.

spec-guards (lines 445-483 in brief.md):

known stale (each needs its spec fixed, then `t27c seal <spec> --save`):
  BuildVerify.json
  HuberLoss.json
  ...
  TriTerminal.json
  encoding_TriHtml.json
  encoding_TriXml.json
  ...
  27 files total

Again, 27 pre-existing stale seals, none for string_dualities.t27.

Neither check counts against this head because the failures existed on master and are ledger/corpus issues (stale seals), not defects introduced by this PR.


Second, independent review (glm-4.5-flash): APPROVE -- Successfully ported 3 functions from string_dualities.zig to string_dualities.t27 with comprehensive test coverage

@tri-claw tri-claw Bot added the bee-reviewed A reviewer bee reviewed and verified this PR at its current head; the only merge signal (#5525) label Oct 5, 2026
This was referenced Oct 5, 2026
This was referenced Oct 5, 2026
@gHashTag
gHashTag merged commit 861de60 into master Oct 5, 2026
23 of 25 checks passed
@gHashTag
gHashTag deleted the queen-6263 branch October 26, 2026 05:17
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/string_dualities.zig (Zig, 3 functions) to specs/port/trinity/src/tri/string_dualities.t27

2 participants