Skip to content

Port gHashTag/BrowserOS:trios/agent-server/apps/server/src/api/routes/queen-public-credits.ts (TypeScript, 1 function) t - #7066

Open
gHashTag wants to merge 3 commits into
masterfrom
queen-5761
Open

gHashTag wants to merge 3 commits into
masterfrom
queen-5761

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Closes #5761

Written by a bee on queen-5761 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 18:58
…de, `err` not `error` (#5761)

Port of trios/agent-server/apps/server/src/api/routes/queen-public-credits.ts
(gHashTag/BrowserOS at 928e1624a50e) to
specs/port/browseros/trios/agent-server/apps/server/src/api/routes/queen-public-credits.t27.

The route's handler reads process.env.DATABASE_URL, opens the queen pool with
createQueenPool and awaits laneCredits. Hono, the pool, the await and the env
read are plumbing and cannot be expressed in t27; the response the handler
decides on is. url_present stands for DATABASE_URL being set, read_ok for the
await resolving rather than throwing, and the payload stays an opaque string
the route passes through. The missing-env 503, the failed-read 503 after the
logger.warn and the 200 with Cache-Control: public, max-age=300 are the three
paths, each with its own test. warn_error_field ports the
`error instanceof Error ? error.message : String(error)` selection whole.

An earlier attempt gave createQueenPublicCreditsRoute an `undefined;` body and
the generated Zig did not compile; here the function carries the status
verdict itself and its body is generated, so no `undefined` survives in
spec.zig and nothing is left for a Zig version to reject. The response field
is named `err` rather than `error` -- a keyword of the Zig this compiles to,
whose name breaks the generated struct literals.

t27c parse, typecheck, test-report and gen all pass; 0 BLOCKED.

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

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:09:21 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
@gHashTag
gHashTag enabled auto-merge (squash) October 7, 2026 07:23
@gHashTag
gHashTag disabled auto-merge October 7, 2026 07:32
…5761, #7573)

Co-Authored-By: Claude Opus 5.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 18:40:02 UTC

Summary

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

These columns do not partition: 1 + 48 + 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)=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 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