Skip to content

Port gHashTag/BrowserOS:trios/agent-server/apps/server/src/lib/agents/adapter-health.ts (TypeScript, 3 functions) to spe - #7166

Merged
gHashTag merged 7 commits into
masterfrom
queen-5510
Oct 22, 2026
Merged

gHashTag merged 7 commits into
masterfrom
queen-5510

Conversation

@gHashTag

@gHashTag gHashTag commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Closes #5510

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

🤖 Generated with Claude Code

Trinity Bee and others added 5 commits October 2, 2026 04:15
Ports the three functions from trios/agent-server/apps/server/src/lib/agents/adapter-health.ts:
- AdapterHealthChecker_getHealth (with decision logic extracted to AdapterHealthChecker_getHealth_decision)
- runtimeSnapshotToHealth
- openclawFallback

Adds 9 test cases covering:
- openclawFallback for 'openclaw' and unknown adapters
- runtimeSnapshotToHealth for ready/unready snapshots, probedAt/lastErrorAt fallback logic
- AdapterHealthChecker_getHealth_decision for null runtime, host-process, and container runtimes

Closes #5510
The turn ended with these files edited and never committed. Uncommitted
work is invisible to the review - it reads the branch - so the attempt
would have been released as empty and the next bee would have started
beside this work rather than from it.

This commit is not a claim that the work is correct. It is the bee's
work, committed on its behalf, and it is judged exactly like any other:
the adversarial reviewer reads it, the compiler runs on it, and the
issue's own criteria are measured against it.

Issue: #5510
Turn: 6b034e5d-0a67-4415-a274-3b59fe55093d
Ending: finished (the turn closed)
Committed: 1 path(s)
Left uncommitted: 0 path(s) outside the declared boundary
The turn ended with these files edited and never committed. Uncommitted
work is invisible to the review - it reads the branch - so the attempt
would have been released as empty and the next bee would have started
beside this work rather than from it.

This commit is not a claim that the work is correct. It is the bee's
work, committed on its behalf, and it is judged exactly like any other:
the adversarial reviewer reads it, the compiler runs on it, and the
issue's own criteria are measured against it.

Issue: #5510
Turn: e06a1ef3-4a34-4e60-8e7f-c377d644fa90
Ending: finished (the turn closed)
Committed: 1 path(s)
Left uncommitted: 0 path(s) outside the declared boundary
- Add AdapterHealth struct with healthy, reason, and checkedAt fields
- Port runtimeSnapshotToHealth function to convert runtime snapshots to health status
- Port openclawFallback function for handling openclaw adapter specifically
- Port AdapterHealthChecker_getHealth function with undefined body (external call)
- Add 4 comprehensive tests covering all functions and edge cases

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

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 23:41:45 UTC

Summary

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

These columns do not partition: 1 + 45 + 0 + 0 = 46, 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 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-22 18:50:23 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 34
PRs with All Checks Green 16
READY 0
FAILING 34
PENDING 0
NO CHECKS YET 5

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

Seal Status

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

@gHashTag
gHashTag merged commit d61c23a into master Oct 22, 2026
34 of 42 checks passed
@gHashTag
gHashTag deleted the queen-5510 branch October 26, 2026 06:45
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