Skip to content

Port gHashTag/BrowserOS:trios/agent-server/apps/server/src/lib/db/queen-pool.ts (TypeScript, 3 functions) to specs/port/ - #7567

Open
gHashTag wants to merge 2 commits into
masterfrom
queen-7559
Open

gHashTag wants to merge 2 commits into
masterfrom
queen-7559

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Closes #7559

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

🤖 Generated with Claude Code

Trinity Bee and others added 2 commits October 7, 2026 15:30
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 #7559

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

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-07 17:00:58 UTC

Summary

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

These columns do not partition: 1 + 38 + 0 + 0 = 39, and there are 50 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=66b6e1375e37 != 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 7, 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 3287942396bca4323542bba9eda8ea49c97f8e38 (tools/bees/reviewer.py, zai glm-4.7-flash, 12 turns, 523 s).

BEE-VERDICT: REQUEST_CHANGES
summary: sslFor()checks for literal string 'neon-url' instead of checking if URL contains 'neon.tech';queenSchema() omits env var reading and validation criterion: t27c gen ... && grep -c 'not yet implemented' prints 0 -- met -- evidence: brief.md:508 prints 0 blocking-check: t27b-native-ratchet -- sslFor() uses wrong logic (checks 'neon-url' instead of 'neon.tech') and queenSchema() omits env validation

Evidence

Analysis

The port creates specs/port/browseros/trios/agent-server/apps/server/src/lib/db/queen-pool.t27 with the three required functions.

Acceptance criteria check:
All 7 criteria from the issue were verified by the runner as PASSED (lines 506-512 of brief.md):

  • File exists ✓
  • Contains 3 functions (queenSchema, sslFor, createQueenPool) ✓
  • Generated code has 0 "not yet implemented" ✓
  • Generated code has >12 lines ✓
  • File parses (not NOPARSE) ✓
  • At least 3 test blocks ✓
  • Tests run without BLOCKED status ✓

However, the ported logic is incorrect:

  1. queenSchema() (lines 12-14 of .t27) is hardcoded to return 'trios'. The original (brief.md line 361-369) reads process.env.QUEEN_DB_SCHEMA, trims it, and validates it's a proper identifier (^[A-Za-z_][A-Za-z0-9_]*$). This is a logic error - it omits environment variable reading and validation.

  2. sslFor(databaseUrl) (lines 16-23 of .t27) checks if (databaseUrl == 'neon-url') but the original (brief.md lines 372-376) checks databaseUrl.includes('neon.tech'). This will never match a real Neon database URL. The tests use 'neon-url' and 'regular-url' as hardcoded strings instead of real Neon URL patterns.

The core issue: The ported sslFor() uses a hardcoded string comparison instead of checking for the substring 'neon.tech' in the database URL. This is a logic error - the function will fail to identify real Neon database URLs.

The tests pass because they use the same simplified test strings ('neon-url', 'regular-url') that don't test the actual Neon URL detection logic. The ratchet failure reveals this logic defect.

This was referenced Oct 7, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants