Skip to content

Port scripts/tri_loop/claims.py (Python, 1 function) to specs/port/scripts/tri_loop/claims.t27 - #6842

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

gHashTag merged 2 commits into
masterfrom
queen-6588

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Closes #6588

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

🤖 Generated with Claude Code

Trinity Bee and others added 2 commits October 5, 2026 22:41
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 #6588

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 13:25:12 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)=3c78f3c7ffb7 != 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 6ffe8f692d5d6056d376e6a65a1ea8ca3340a23e (tools/bees/reviewer.py, zai glm-4.7-flash, 3 turns, 115 s).

BEE-VERDICT: REQUEST_CHANGES
summary: Boundary violation - added docs/now/ file outside the boundary; scan red due to path in auto-generated file; function count criterion technically passes but port is incomplete
criterion: "Write this one file and nothing else" -- unmet -- evidence: diff shows 2 files changed (docs/now/ file + boundary file), issue explicitly states "Write this one file and nothing else"
discounted-check: coverage -- dangling seals were committed and later deleted (seal maintenance issue)
discounted-check: duplicate-bodies -- PR's file is new, cannot be a duplicate (fails on other files)
discounted-check: emit-bitexact -- failure in orbitofrontal_value.t27, pre-existing broken file on master
discounted-check: spec-guards -- failures in other specs (gf16.t27, attention.t27, unified_state.t27), pre-existing drift
blocking-check: scan -- PR introduced docs/now/ file at root with hardcoded path, violating boundary and triggering scanner

Evidence

Let me analyze this PR systematically.

Criteria Analysis

All 6 acceptance criteria from the issue are met:

    1. File exists: PASSED (brief line 764)
    1. Main function declared: PASSED (brief line 765)
    1. Generates without "not yet implemented": PASSED (brief line 766)
    1. Generates code (≥13 lines): PASSED (brief line 767)
    1. Parses (no NOPARSE): PASSED (brief line 768)
    1. Tests run without BLOCKED: PASSED (brief line 770)

However, the acceptance criterion #2 has a partial finding:

"grep -cE '^\s*(pub )?fn (main)(' specs/port/scripts/tri_loop/claims.t27 prints 1"

The has_strong_claim and mentions_limits helper functions are not listed in the issue's "What to write" section, which only mentions porting def main(argv). These helpers are "port the decision, not the plumbing" functions, but the issue specifically says: "Add at least 1 test blocks, asserting on the behaviour you read in the original: the values it returns for inputs you choose, and the edge cases it handles."

The helpers are declared without pub in the generated code (specs/port/scripts/tri_loop/claims.t27:32), so they're not counted by the grep. This is not a test calling them, so it doesn't violate FR-004 ("a test that asserts true ports nothing").

Boundary Check

The issue states: "Write this one file and nothing else."

The diff shows 2 files changed:

  • docs/now/2026-10-06-published-port-scripts-tri-loop-claims-py-python-1-function-to-specs-p.md (new)
  • specs/port/scripts/tri_loop/claims.t27 (new)

The docs/now/ file is NOT in the boundary. It was automatically added by the publish script per brief line 15. The PR author did not write this file.

This violates the boundary.

Red Checks Analysis

6 checks are red. Do they count against THIS head?

  1. Corpus ratchet - NOT discounted (blocking check). The ledger shows 1 UNEXPECTED FAILURE: specs/port/trinity/src/brain/orbitofrontal_value.t27. This file has a parse error mentioned in the brief (line 595). This file exists on master and has nothing to do with the PR. This is NOT the PR's fault. However, the criterion says "red on master for the same reason" - this check is red for a different reason. The PR did not introduce this failure.

  2. duplicate-bodies - DISCOUNTED. This check reports bodies that are byte-identical copies. The PR's file is new, so it cannot be a duplicate. The failing bodies are in different files.

  3. emit-bitexact - DISCOUNTED. The failure is in specs/port/trinity/src/brain/orbitofrontal_value.t27, which is a completely different file. The brief says this file "does not generate" with any backend. This existed on master (brief line 465: "UNEXPECTED FAILURES: 1 + specs/port/trinity/src/brain/orbitofrontal_value.t27 [parse]"). The PR did not introduce this.

  4. coverage - DISCOUNTED. The dangling seals were committed and later deleted. This is a seal maintenance issue, not a PR defect. The seals exist in the repository root.

  5. spec-guards - DISCOUNTED. The failures are in other specs:

    • ring-088-rust vs gf16.t27 (hand fns: 2 vs 54, shared: 0, differing: 0)
    • ring-092-rust vs attention.t27 (hand fns: 1 vs 18, shared: 0, differing: 0)
    • ring-098-rust vs unified_state.t27 (hand fns: 2 vs 2, shared: 0, differing: 0)
      These are pre-existing drift issues, not caused by this PR.
  6. scan - NOT discounted (blocking check). The scan failed to find hardcoded /Users/playra/ paths. The brief shows the PR introduced the new docs/now/ file at the root level (brief line 438), which contains a path to the author's home directory. The scanner detected this path in the new file.

Blocking check: scan is red because the PR introduced a file outside the boundary that contains a hardcoded developer path.

BUT - this is a fundamental boundary violation that makes the PR invalid regardless of the scan check.

Conclusion

The PR violates the boundary by adding docs/now/ file.

Even if we look at what the PR actually wrote (ignoring the auto-generated file), the port is incomplete:

  1. Acceptance criterion #2 is partially met but not fully verified: The grep passes, but this is because the helper functions are pub fn only in the generated code (brief line 765), not in the source .t27 file (lines 32, 53 in the diff). The grep command only counts pub fn main. The criterion says "every function above is ported under its own name" - it does not specify pub, so both helper functions SHOULD be counted. However, they're not being called by any tests, so this doesn't violate FR-004.

  2. The real issue: The PR should NOT include the docs/now/ file. This file is auto-generated by the publisher (brief line 15). The PR author had no control over it, but its presence violates the boundary.

  3. Scan check is red but is a symptom: The scan found the path because the PR added a file outside the boundary. This is a proxy for the real defect (boundary violation).

Given the boundary violation and the scan red check, I must reject this PR.

@gHashTag
gHashTag enabled auto-merge (squash) October 7, 2026 07:25
@gHashTag
gHashTag merged commit 45728ef into master Oct 7, 2026
20 of 26 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 scripts/tri_loop/claims.py (Python, 1 function) to specs/port/scripts/tri_loop/claims.t27

2 participants