-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Canonical supported commands and deployment flow:
README.md. Update this page whenever a release changes a failure or recovery path.
- Open
/api/healthdirectly. - Check the Worker deployment and Wrangler tail.
- Confirm
VITE_API_BASE_URLpoints to the expected Worker. - Confirm the browser origin is in
ALLOWED_ORIGINS. - Verify D1 migrations and binding name.
Check:
- repository is exactly the configured owner/name;
- branch matches Worker configuration;
- production and study URLs normalize to configured URLs;
-
darwin.target.jsonexists at the resolved commit; - all context paths exist and contain no unsafe path components;
- target HTML contains the ProjectFlow title;
- GitHub token can read the repository when required.
- Confirm ProjectFlow was opened with
?study=true. - Inspect browser Network for
POST /api/telemetry/events. - Verify event receipt is 202 and inspect accepted/rejected/duplicate counts.
- Confirm ProjectFlow origin is allowed by Worker CORS.
- Check the event study ID is
projectflow-baseline-study. - Wait for the two-second control-room poll or click the Live refresh control.
- Inspect local storage key
darwin:telemetry-outbox:*for queued events without exposing its contents in public logs.
- Ensure at least one current-cycle event exists with
real_userprovenance. - Complete or explicitly abandon a task attempt to create stronger task evidence.
- Check that the evidence cycle did not advance after a release.
- Do not try to use synthetic simulator events as measured evidence.
Check Worker secrets and variables:
npx wrangler secret list --config workers/api/wrangler.tomlVerify:
-
DARWIN_AI_MODE=live; -
OPENAI_API_KEYis present; - configured model is available;
- timeout is sufficient;
- repository snapshot can be captured;
- evidence contains at least one friction signal.
Darwin intentionally returns no recommendation on model, timeout, JSON, citation, or scope failure.
The controlled evolution call has two phases: manifest creation and GitHub workflow dispatch. Inspect the visible error band, Network responses, and execution panel. Confirm at least one candidate checkbox is selected.
- Open the workflow URL when available.
- Check ProjectFlow Actions permissions and concurrency.
- Verify
darwin-evolve.ymlexists on the tracked branch. - Verify callback URL is reachable from GitHub.
- Confirm matching
DARWIN_CALLBACK_TOKENvalues. - Compare workflow execution/manifest IDs with Darwin.
Expand each validation check. Darwin preserves actual command output. Fix the target workflow, infrastructure, or requested change and use Retry repository run. Do not edit the stored patch or mark the execution passed manually.
Confirm:
- execution is
preview_ready; - PR is open and its head SHA matches the callback;
- GitHub token can merge that repository;
- branch protection requirements are satisfied;
- another request did not already merge the PR.
Concurrent release hardening is tracked in issue #5.
Darwin marks reset complete only when ProjectFlow production reports the restored commit and matching app version. If reset remains queued, open the linked workflow and confirm its signed callbacks can reach Darwin. If it remains deploying, inspect Pages deployment health and the observed identity in the reset state. A failed reset preserves existing evidence and exposes Retry reset.
The current manual refresh does not reload every derived artifact. Reload the page as a temporary workaround. Full hydration is tracked in issue #17.
Current explanatory tooltips use a body-level portal and viewport clamping. If clipping recurs, record the view, element, viewport dimensions, zoom, theme, and screenshot, then extend the focused Playwright edge-position regression case.
Useful non-secret diagnostics:
- Worker health JSON;
- request route/status and request ID when available;
- execution/manifest/evidence IDs and hashes;
- short commit SHA;
- validation command name/status/duration;
- browser viewport/zoom/theme;
- sanitized console error.
Never paste API keys, GitHub tokens, callback tokens, full environment output, or raw participant traces into public issues.