Repository navigation
fix(dashboard): restore verified public item references - #1178
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 12:53 PM ET / 16:53 UTC. ClawSweeper reviewWhat this changesThe PR restores allowlisted public repository and issue/PR reference cards and search in Overview and OpenClaw Bay while filtering all other metadata from public responses. Merge readinessThe patch is technically coherent and has controlled current-head proof, but it intentionally changes the unauthenticated dashboard privacy contract. Keep it open for explicit maintainer confirmation from the public-data boundary owner; the contributor-authored approval claim is not that confirmation. Priority: P2 Review scores
Verification
How this fits togetherThe dashboard Worker turns internal queue and workflow state into unauthenticated status APIs used by Overview and OpenClaw Bay. This PR adds a deployment-allowlisted reference projection between internal records and those public UI consumers. flowchart LR
A[Internal queue and workflow data] --> B[Dashboard Worker]
C[Deployment public repository allowlist] --> B
B --> D[Validated reference projection]
D --> E[Public status response]
E --> F[Overview cards and search]
E --> G[OpenClaw Bay cards and search]
Decision needed
Why: The implementation deliberately relaxes the aggregate-only privacy boundary; source review can verify the containment mechanics but cannot authorize which public associations the product may disclose. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the fail-closed allowlist design, land it only after the public-data exception is explicitly recorded by the responsible maintainer, and treat future allowlist edits as privacy-boundary changes. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR introduces a dashboard capability rather than repairing a reported failing behavior; its current-head controlled proof exercises the intended projection and UI paths. Is this the best way to solve the issue? Yes technically: a deployment-owned allowlist plus repeated response projection is the narrowest maintainable way to expose only canonical public coordinates, pending the required policy decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7162f1bb431c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Maintainer decision: approved for merge. The unauthenticated dashboard may expose only the deployment-allowlisted public repository name and positive bounded issue or pull-request number needed by Overview and OpenClaw Bay. Credentials, tokens, secrets, private or unlisted repositories, internal opaque keys, workflow/job identifiers, raw failure payloads, titles, arbitrary URLs/query strings, and other untrusted text remain excluded. The deployment-owned allowlist and fail-closed behavior are accepted as the durable boundary. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
Problem
The emergency worker-status privacy containment intentionally reduced the public Bay contract to aggregates. That removed the unsafe raw metadata, but it also left every visible work card with the generic
ALLlabel and removed the useful item finder.Public GitHub issue and pull-request coordinates are intentionally public product data. The desired boundary is therefore narrower than aggregate-only: Bay may expose a verified public repository plus issue/PR number, while every other identifying or unbounded field remains private.
Implementation
PUBLIC_BAY_REPOSallowlist for verified public repositoriesrepository,item_number,stage, andsourceowner/repo#numberin OpenClaw BayPrivacy and security boundary
Allowed publicly:
PUBLIC_BAY_REPOSStill excluded:
An absent, empty, oversized, or malformed allowlist produces no public references. Removing the allowlist value is the immediate containment switch; reverting this commit restores the prior aggregate-only contract.
Validation
Focused and expanded tests:
The native Windows full-format gate remains affected by the repository's known system
core.autocrlfcheckout noise on untouched files. Changed-file formatting is clean, and the controlled Linux proof below passed.Real Behavior Proof
Claim: Fresh and cached public status projections retain only verified public repository/item coordinates; both Overview and OpenClaw Bay render and search those references without exposing injected private or arbitrary fields.
Exercised surface: Worker public projection and cache re-projection, Overview rendering/search, OpenClaw Bay rendering/search, anonymous terminal outcomes, malformed/private-reference rejection, docs and queue-boundary checks.
Scenario: Deterministic fixtures mixed allowlisted public coordinates with an unlisted repository and synthetic title, URL/query, failure, key, and nested fields. Assertions required the public coordinates and aggregate counts to survive while every injected untrusted field was absent.
Environment and command: Docker-backed Crabbox
local-container, imagemcr.microsoft.com/playwright:v1.60.0-noble, leasecbx_55bb7510ab8d, runrun_db1fe6932736, exact dirty-workspace content later committed unchanged as6d53f2ee7d30d612b357b9e0a7b268306e2e5baf. The proof ranbuild:all, the 113-test focused matrix, docs, dashboard lint, and dashboard queue-boundary checks.Observed result: Exit 0; 113/113 focused tests passed; build, docs, lint, and boundary checks passed;
bay_reference_proof=pass; lease stopped cleanly.Limits: This was a deterministic local-container proof with no production calls or mutations. Hosted CI and deployment smoke remain pending on this draft.
Review closeout
origin/main: clean, no actionable findingsRisk and rollout
The user-visible compatibility change is intentional: unauthenticated dashboard consumers can again see allowlisted public repository/item coordinates. The primary risk is allowlist ownership drift. The Worker therefore treats deployment configuration as the authority and fails closed rather than inferring public status from GitHub-shaped input.
No queue, credential, schedule, admission, capacity, or Phase 1 behavior changes. Deployment should use the ordinary dashboard workflow and verify both Overview and OpenClaw Bay after merge.