Repository navigation
Restore public Bay job and step details - #1180
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 2:59 AM ET / 06:59 UTC. ClawSweeper reviewWhat this changesThe PR adds validated public workflow/job references and fixed step states to the Overview and OpenClaw Bay, while restoring bounded lifecycle cards and tide sampling. Merge readinessKeep open: current main does not implement the public action projection, and this PR supplies a bounded, proof-backed implementation with no supported correctness finding. Priority: P2 Review scores
Verification
How this fits togetherThe dashboard Worker reduces private workflow and lifecycle records to a public observer-only status API. Overview and OpenClaw Bay consume that projection to show read-only status and canonical GitHub references. flowchart LR
A[Workflow and lifecycle records] --> B[Dashboard Worker]
B --> C[Allowlist and shape validation]
C --> D[Public status APIs]
D --> E[Overview]
D --> F[OpenClaw Bay]
E --> G[Canonical read-only GitHub links]
F --> G
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the bounded projection only with its negative privacy tests and canonical locally constructed links intact. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction; the PR provides a high-confidence exact-head Worker/SQLite behavior proof with public and forbidden-data fixtures. Is this the best way to solve the issue? Yes. Validating closed fields and reconstructing canonical GitHub URLs is safer and narrower than publishing source URLs or raw workflow metadata. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c06a897aadd7. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer boundary decision: approved. I explicitly approve the documented public Bay and Overview contract in this
These links are observer-only navigation to already-public GitHub pages, not Authority check: GitHub's live collaborator-permission API reports this account Ownership check: the repository does not designate an individual Bay policy |
…views (#1181) * feat(review): classify deterministic live-proof plans in review decisions Reviews now always fill a liveProofPlan: a typed, machine-replayable demonstration plan (browser or terminal surface, entry point, up to ten structured steps) emitted only for user-visible changes, with a declined_suspicious status for diffs that touch credentials or look like they could exfiltrate or display sensitive data in a public recording. Report and comment rendering gain a Live Proof section that renders publicly only once a validated recording block exists, and repository profiles accept a strictly validated optional live_test block. * feat(live-proof): record and attach live PR proof videos from a secretless lane Add the live-proof execution lane: a permissions-empty ubuntu job checks out the public PR head, replays the review's typed plan deterministically (Playwright recordVideo for browser surfaces, tmux + xvfb + ffmpeg x11grab for terminal surfaces), and emits an mp4, poster, and metadata-only manifest as a workflow artifact with no secrets and no inference in the job. A trusted attach job re-validates the bundle as untrusted data, refuses stale heads, uploads to R2 itself, constructs public URLs only from its own upload, and edits the recording into the marker-backed review comment. The sweep publication job dispatches recommended live proofs for repositories that enable live_test. Live-testing the lane against #1180 caught and fixed a config-validation temporal dead zone, generated-driver module resolution that depended on bundle placement, headed browser launches on display-less runners, clicks on continuously animated targets, and launcher-only server teardown that orphaned the dev server. * feat(live-proof): enable ClawSweeper bay demo live tests in production Port the seeded Bay demo into scripts/live-proof/bay-demo (random runtime-only secret, isolated wrangler state, no external API calls), enable live_test for openclaw/clawsweeper, and define the GitHub App client id the attach job's write-token mint requires.
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 Reason: re-review requires an open issue or PR. |
|
@clawsweeper re-review |
Keep OpenClaw Bay's lifecycle inventory available after retained history passes 10,000 records. Use SQL counts and stream the existing validator, retaining bounded lane samples instead of history-sized identity arrays. Malformed historical facts still make the entire projection unavailable. Share sanitized public responses through the native 20-second cache while preserving repository scope and the original 60-second freshness allowance. This reduces repeated viewer scans without another stored summary or recovery path. Full validation on cache misses remains an explicitly accepted linear cost on the shared Durable Object. Native Worker/SQLite/Cache API proof covers 10,001-row inventory, 24-card sampling, current-revision flags, scope isolation, real expiry, corruption, and restoration. Connected Chrome before/after proof covers the renderer. Current-head CI passed and the current Codex review found no code findings. Related: #1180
Summary
Restore the useful public-reference behavior that OpenClaw Bay and the Overview
page had before the privacy-containment change, while keeping the sensitive
boundary closed.
generic
ALLlabel;corresponding bounded identifiers are available;
+N moreaffordance opens a bounded list of references omitted from theboard layout;
present;
Maintainer boundary decision
Martin explicitly approved the restored public-reference contract for this
exact PR: canonical GET navigation to verified-public repository, issue,
pull-request, workflow-run, and job pages, together with closed action/step
state categories. These are observer-only references to already-public GitHub
pages, not workflow actions.
The approval continues to exclude credentials and tokens, private-repository
data, opaque internal keys, raw failure payloads, arbitrary upstream titles or
text, untrusted URLs/query strings, and every mutation control including
dispatch, rerun, queue, recovery, deploy, and rollback. The same decision is
recorded in an approval comment from
brokemac79. GitHub's live collaboratorpermission API reports that account with repository role
maintain, includingmaintain and push permission; the comment's generic
CONTRIBUTORassociation istherefore not its effective repository authority.
There is no documented individual Bay policy owner. Current-main blame
attributes the observer-only Bay policy to Martin's
80720568fa8change, whilethe Peter-authored
583947dc092cchange cited by the latest hosted review didnot modify
AGENTS.md.docs/README.mdsays that an owner is a responsibilityrole until maintainers establish stable
CODEOWNERS, and the repository'sCODEOWNERSfile has no Bay entry. Martin's explicit decision under the livemaintainrole is therefore the documented maintainer approval for thiscontract; no repository rule assigns that decision specifically to Peter.
Problem
The emergency privacy containment correctly removed unbounded workflow titles,
failure keys, raw URLs, and opaque identifiers, but it also removed the bounded
public identity and action-state data that these interfaces need. The clients
therefore had counts without references, could not rebuild the old blades or
search results, and had too little recent completion evidence to advance a tide
reliably.
The lifecycle reader also applied its 10,000-row safety cap before filtering to
the configured public repositories. A large unrelated/private history could
therefore force the public lifecycle view to
over_capeven when its selectedpublic slice was small. The first indexed repair still combined multiple
repositories before the global sort, so it did not fully bound a cold read.
Implementation
Public reference boundary
The Worker admits only repositories from
PUBLIC_BAY_REPOS, positive boundedissue/PR numbers, positive bounded workflow-run/job identifiers, closed action
statuses/conclusions, strict timestamps, and a maximum of 100 closed step
records. GitHub links are constructed from those validated components rather
than copied from upstream payloads.
Still excluded: credentials and tokens, repositories outside the verified
public allowlist, internal queue/failure keys, raw failure payloads, arbitrary
workflow/step titles, untrusted URLs and query strings, and malformed or
oversized timelines. Unknown action shapes fail closed while retaining the
safe item reference where possible.
Overview and OpenClaw Bay
Both clients validate the same closed public-reference/action schema before
rendering. Both restore reference search and detail blades. Bay also restores
the bounded overflow drawer and elapsed-time crab chat. Step labels are fixed
non-identifying categories derived server-side; completed and current states
remain visible without publishing upstream step text.
Lifecycle and tide
The lifecycle source performs one parameterized, index-ordered read per verified
public repository. Each seek is bounded by the remaining global row budget, so
no multi-repository global sort can scan an unbounded history. A versioned index
is provisioned through the Durable Object constructor barrier, including over a
pre-change schema, while ordinary queue initialization remains deferred. A
selected slice over 10,000 rows still fails closed.
Recent terminal sampling was increased from 20 to 40 completed runs and its
section timeout is capped at 12 seconds in production and may only be lowered by
configuration. The runtime default and deployed fetch concurrency are both 20,
and overrides are clamped to that proven maximum, so the larger sample keeps the
former two-wave shape. This gives the tide enough evidence to collect 20 distinct
completed items despite repeated targets, support/fallback jobs, and still-active
work without making a cold status response wait for every stalled job request.
Validation
node --test test/dashboard-worker-status-privacy.test.ts test/dashboard-worker-dashboard-status.test.ts test/dashboard-worker-observability.test.ts test/dashboard-worker-bay-records-routes.test.ts— 138/138 passed, includingmulti-repository query-plan, legacy-index upgrade, selected-slice cap, cold
status timeout, action-detail, search, overflow, tide, and elapsed-chat cases.
pnpm run build:dashboard— passed.pnpm run lint:dashboardand targetedoxfmt --check— passed.git diff --check— passed.findings.
regressions.
origin/main— no actionableregressions; the public projection, bounded lifecycle reads, rendered clients,
production concurrency, and tests are consistent.
pnpm checkat the runtime head in Crabbox — 3,542 tests,3,534 passed, zero failed/cancelled/todo, eight expected skips.
pnpm run check:docsand exact-file formatting at the final documentation-onlyhead — passed; dirty and committed Codex reviews found no actionable issue.
Real Behavior Proof
Claim: At exact committed head
c4fb1e974fb0babb888d072c1a79d5c136b72b42and tree5a901910797636fbb5037dff2099823bbd7739a4, the real Worker and SQLite-backedDurable Objects preserve verified-public references, action links and bounded
step state across persistence/restart, while forbidden private/unbounded data
does not reach the public API or rendered clients.
Exercised surface: fresh
/api/status; public cache; durable status store;ExactReviewQueue lifecycle persistence; Worker restart; Overview and Bay HTML;
search, cards, overflow and detail-blade contracts; elapsed-time speech; terminal
tide state.
Scenario: A loopback-only synthetic GitHub source supplies one verified
public item with active action/job state, ordered completed/current steps,
terminal history, and lifecycle rows. Marker-bearing private repositories,
opaque keys, arbitrary workflow/step text, URLs/query strings, failure details,
and credential-shaped values are injected only as negative fixtures.
Command/environment: Docker-backed Crabbox provider
local-container, imagemcr.microsoft.com/playwright:v1.60.0-nobleat digestsha256:9bd26ad900bb5e0f4dee75839e957a89ae89c2b7ab1e76050e559790e946b948;exact Git bundle SHA-256
d6eae2c3e77092175086083ba7dd027a88a168ac3933927e39182e39e9140216(50,481,132 bytes). The bundle contained the exact head and current
origin/main; the proof made no production calls.The exact head includes a reconciliation merge with current main
682ef3ab4abcbc0922b45c42be2f0e3cf744647e. Main's two interveningstate-repository commits add and then remove the same generated inbox record,
leaving the main tree unchanged from the prior base and overlapping none of
this PR's files. The reconciliation did not change this PR's tree.
Observed result: lease
cbx_8c9892950baa, runrun_f4338cfa4020, exit 0.All 33 assertions passed before restart and all 32 after restart. The responses
retained three public references, three action references, three current steps,
one completed step, one lifecycle card, and tide generation 2. Six SQLite files
were observed. Forbidden-key count, forbidden-value count, assertion failures,
and production-call count were all zero. Both generated HTML responses passed
all 16 Overview/Bay interaction contracts. The bounded stdout trace is 813 bytes
with SHA-256
bf4e90336d3bc442a20b458a541a3b595cefcd618a6fe2b855f8f0e0b7c61e6b;the 246-byte stderr trace contains only build commands and the expected first
loopback-readiness retry, with SHA-256
ba45d587cfb9fbfdbbdaf0585328b52880d312cef2c0311c3b7599c25cb1551c.The one-shot container and lease were automatically removed.
Broad gate: At runtime head
90d19cb9de81551a987745fe88cd30eab0ea3fbf,Crabbox resolved provider
aws, Linuxc7a.8xlarge, leasecbx_9f18c03a17e6, runrun_bbac1102f8ed, exit 0. The tracked checkout wasclean and
pnpm checkpassed with 3,542 tests, 3,534 passed, zerofailed/cancelled/todo, and eight expected skips. The bounded stdout log is
647,730 bytes with SHA-256
94b90490d911833399ce674ebdef15824f39fb346ec32d379ee4ed5de559f126;the command-only stderr log is 1,063 bytes with SHA-256
c7b88841c088d807e6087f5e958697f59162f0ec1ef9fd0eb50d47e88e6361f3.The one-shot lease was automatically stopped.
The only later tracked change is the documentation correction from “ten-way”
to “twenty-way” fanout. The exact final head passed
check:docs, formatting,dirty Codex review, committed Codex review, and the complete real Worker/SQLite
proof above; it does not alter the runtime code covered by the broad gate.
Limits: The proof does not click through to GitHub or mutate production.
Queue-only references may lack action detail when no active job is associated.
The public timeline deliberately uses closed labels rather than raw upstream
step names.
Review finding disposition
The source filters with bound SQL parameters before enforcing the cap. A
regression creates more than 10,000 unrelated rows and proves a one-row
allowlisted slice remains complete; it separately proves an allowlisted slice
above the cap still returns the closed
over_capstate.The constructor barrier now provisions only the lifecycle table/index; the
route stays read-only and ordinary queue migration remains deferred.
(P2): accepted. The production cap is now 12 seconds and the real route test
proves a stalled 40-run sample returns promptly with one bounded concurrency
wave.
reader now performs bounded per-repository equality seeks against the
ordering-compatible versioned index. The regression checks two query plans,
no table scan or temporary sort, decreasing remaining limits, and successful
provisioning over the pre-change index schema.
IF NOT EXISTS(Codex P2): accepted. The corrected ordering uses a new versioned index name,
leaving any older index harmless and unused.
The exact committed tree was rerun through Crabbox
local-containerwith apinned image digest, real Worker, SQLite persistence, restart, rendered-client
contracts, and zero forbidden-output counts as recorded above.
(security review): confirmed. Martin explicitly authorized verified-public
repository, issue, pull-request, action-run and job references for Bay and the
Overview. The approval continues to exclude credentials, tokens,
private-repository data, opaque internal keys, raw failure payloads, and
arbitrary upstream text; this patch enforces that exact distinction.
a policy-terminology ambiguity and resolved at the root.
AGENTS.mdand theBay contract now explicitly distinguish canonical GET navigation to verified
public GitHub item/run/job pages from mutation controls. The former is
observer-only reference navigation; dispatch, rerun, queue, recovery, deploy,
rollback, forms, credentials, direct browser GitHub API calls, and all other
mutation controls remain forbidden. This matches the existing live-dashboard
contract, the historical Bay proof, and Martin's explicit authorization.
P2): accepted. The default health-fetch concurrency is now 20, so the
40-run terminal sample retains the former two-wave shape instead of requiring
four waves inside the 12-second optional-section cap. The cold-cache
regression asserts that only one bounded 20-request wave starts when reads
stall.
(Codex P1): accepted.
dashboard/wrangler.tomlnow deploys the sameconcurrency of 20, and the tide regression pins the committed production
setting so the runtime and deployment contract cannot silently diverge.
ClawSweeper P2): accepted. Runtime configuration is now clamped to 20. The
cold-cache regression supplies an override of 40 and proves that only one
bounded 20-request wave starts.
The guide now says twenty-way, matching the runtime default, deployment
configuration, hard maximum, and cold-cache regression. Documentation checks
and both Codex review passes are clean.
resolved with source evidence and explicit maintainer approval. No document
or
CODEOWNERSentry assigns Bay policy ownership to Peter. Current-mainblame attributes the relevant policy to Martin's
80720568fa8change; thePeter-authored
583947dc092cchange cited by the review does not touchAGENTS.md. Martin has repository rolemaintainand explicitly approves theexact allowlisted GET-only contract above. The technical security boundary,
exclusions, and proof remain unchanged.
90d19cb9de81551a987745fe88cd30eab0ea3fbf; artifact SHA-25648300fc9ce86802859e9240b238367ffd2131904aaabf1112b61f908560f4ab2.It found no actionable correctness or security defect, marked the patch
correct, security cleared, and real-behavior proof sufficient. Its only
maintainer question was approval of the intentional allowlisted public
run/job/step contract. Martin explicitly supplied it, and GitHub's live
collaborator endpoint independently reports his commenting account with the
repository's
maintainrole.c4fb1e974fb0babb888d072c1a79d5c136b72b42; artifact SHA-2562f76bdbe0a436529da14f27a5c74bd097a08d59dde5ecaef4cd657d0e33fbe58.It found no discrete correctness or security defect, marked the patch
correct, cleared security with no concerns, and required no maintainer
decision. Its isolated range context could not see the external exact-head
runtime receipt, which is supplied in full in the Real Behavior Proof section
above.
Risk and rollout
This intentionally restores public identity for repositories that maintainers
have explicitly verified and configured as public. Adding a repository to the
allowlist remains a deployment/configuration decision. Martin explicitly
approved this restored public contract for the verified repositories and their
issue, pull-request, action-run and job references. All higher-cardinality and
sensitive categories remain excluded, and cache/store reads are reprojected
through the same validator.
The action-run and job anchors are view-only navigation to already-public GitHub
pages. They do not call GitHub APIs or offer workflow execution, queue, rerun,
recovery, deploy, rollback, or other mutation controls.
Deployment uses the existing automatic dashboard workflow after merge. No queue,
schedule, credential, gate, admission, or Phase 1 behavior changes in this PR.