Skip to content

feat: report update outcomes by default without identifiers - #154067

Merged
fuller-stack-dev merged 1 commit into
mainfrom
openclaw/update-outcome-pings-pr-20260919
Oct 26, 2026
Merged

fuller-stack-dev merged 1 commit into
mainfrom
openclaw/update-outcome-pings-pr-20260919

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Daily version checks do not tell maintainers whether an update succeeded, failed, or rolled back, or whether the resulting version was verified running.

User Impact

Update-outcome pings are on by default, like the existing update check, under the current default-on update-check policy. No feature-statistics opt-in is required; optional feature statistics remain off by default.

Set update.checkOnStart: false or OPENCLAW_NO_AUTO_UPDATE=1 to stop automatic checks and outcomes. Nix and CI suppress outcomes too, including CI with a custom endpoint. telemetry.enabled: false, openclaw telemetry off, and DO_NOT_TRACK affect feature statistics, not default update checks/outcomes. Invalid/unreadable current configuration fails closed.

Maintainer privacy decision — approved: Jason (@fuller-stack-dev) approved Option A on 2026-10-26: default-on update outcomes may be sent even with DO_NOT_TRACK or telemetry.enabled: false, using the existing automatic-update-check opt-outs. See the explicit decision. Production rollout and delivery verification of the compatible receiver and separate outcome dataset (openclaw/telemetry#23, merged) are separately authorized work, not proved here. The client sends no outcome POST unless the receiver advertises the required capability.

Why This Change Was Made

The existing update ledger owns the result. A closed schema-2 projection includes release-format before/target/resulting/running versions, fixed platform/install/channel/outcome categories, coarse duration, observed verification, rollback and allowlisted failure codes: exactly 18 fields, no run/install/user identifiers, raw diagnostic text, logs, paths or config. PATCH is a sequential release-train number (2026.8.33, 2026.8.123), canonical 0–999999; private labels, metadata and leading zeros map to unknown.

Before any outcome body is sent, the client makes a body-free HEAD request to the exact configured endpoint. Only HTTP 204 with OpenClaw-Update-Results: 2 permits the POST; legacy 405 and unconfigured 503 suppress it. Both requests share one three-second deadline, refuse redirects, and use the fixed User-Agent: openclaw-update-result/1. Custom endpoints never fall back to the Foundation endpoint.

Bounded local bookkeeping claims an attempt before network dispatch: one attempt per hour, no historical scan/backfill, no durable retry outbox or exactly-once guarantee. Reporting cannot fail or roll back an update. The first upgrade from an older updater has no admission marker and does not report.

Refreshed design on current main (this head)

The previous head was ~20k commits behind and conflicted with main's worker-owned update writers. This head re-applies the feature to current main's owners as one commit:

  • Worker-safe storage (src/infra/update-result-claim.ts): eligibility admission and the hourly claim live in the existing config_machine_state table and run inside the same state-database transaction (SQLite or PostgreSQL) as run creation / terminal settlement, in a nested savepoint. This module never imports host configuration, fixing the prior P2 (update-run-interruption-store.ts → telemetry → config/io).
  • Host policy and dispatch (src/infra/update-result-telemetry.ts): reads current update-request policy (lazily loading the config reader) and sends HEAD/POST. It is not in the shared-state worker graph.
  • Owners wired: worker updateRuns.create admits from a host-read reportResult flag; worker updateRuns.finish and the interrupted-completion settlement return a claimed payload that the host dispatches only after commit; sync CLI terminal writers (openclaw update, finalize/repair, Windows task recovery, pre-activation signal interruption) and the shipped dist/cli/daemon-cli.js finishUpdateRun recovery entry pass a host reporter to the existing ledger finish. Main's asynchronous reconciliation and worker-owned writers are preserved; no retired synchronous API is restored.
  • Policy check points: admission (new runs only) and immediately before the HEAD and again before the POST. The separate settlement-time check from the old head was dropped as redundant: a revoked policy still sends nothing; it only consumes that hour's local attempt slot.
  • Bookkeeping cannot fail the update write: admission and claim run in the existing nested savepoint (runSqliteImmediateTransactionSync, both engines). A failed bookkeeping statement rolls back only the bookkeeping; on PostgreSQL it previously aborted the whole transaction (PostgreSQL transaction rolled back instead of committing). Dispatch still happens only after the outer commit.
  • Never-attempted chat refusals (owner_required, including a revoked requester) are excluded like abandoned/superseded: not reported and not counted against the hourly attempt.
  • Tests cannot reach the production receiver: the shared test environment (test/test-env.ts) points OPENCLAW_TELEMETRY_ENDPOINT at a refused loopback port, which spawned CLI/Gateway children inherit.
  • The old head's madge cycle (update-result-payload ↔ interruption contract) is gone.

Contributor credit: Json (@fuller-stack-dev), Peter (@steipete), and Vincent (@vincentkoc).

Work sessions

Evidence

The focused suites and CI recorded below target head e212c8cbd152ca30ef2b81c91b801d328fab601f (base 592df0b4c67). The earlier focused local runs used a sanitized environment with inherited service variables, HOME and CI unset and a private TMPDIR. The new receiver proof uses an explicit private HOME as described below. Shared managed-update handoff stores were snapshotted before/after the local proofs and were unchanged. Historical failures are identified separately; no prior-head upgrade proof is claimed for this candidate.

Check Result
Focused suites: all src/infra/update-run-*.test.ts, update-run watcher, shared-state worker import boundary, update-result-telemetry.test.ts, affected CLI (update-command-run, finalize lifecycle/refusal, Windows task, mutable signals, lifecycle, admission ledger), gateway (update, restart, host-owned, campaign), startup campaign/apply-error/startup, migrated finalize worker, doctor settlement, eager import closure, daily-check telemetry/telemetry.async/telemetry-cli, shell-env, test/setup-home-isolation.test.ts 50 files: 888 passed, 1 skipped, 333 s
PostgreSQL conformance (update-run-admission.conformance.test.ts, pinned pgvector/pgvector:pg17 locally) 5 passed, 1 skipped (the new case is PostgreSQL-only)
pnpm check:changed Every lane passes (format, core + core-test + test-root typecheck, core/scripts/test-root lint, SQLite worker/dialect ratchets, mock-export ratchet, import cycles, …) except the dead-export scan, whose findings are a subset of the same scan on current main 56d940f529c and touch no file in this PR
pnpm check:architecture Passed, 2 m 08 s: 0 runtime cycles, 0 madge cycles

Bookkeeping failures (review P2 #1). A trigger rejects every telemetry.updateResults write after the run was admitted:

  • PostgreSQL conformance: worker run creation and terminal settlement both commit and nothing is sent. Against the previous claim module the same case fails with PostgreSQL transaction rolled back instead of committing.
  • SQLite (update-result-telemetry.test.ts): sync admission + settlement, worker settlement and verified interrupted completion all commit with nothing sent. These also pass against the previous claim module, because SQLite's RAISE(ABORT) only backs out the failing statement; they guard the contract rather than prove the regression. Worker creation can't take this trigger (its full schema verification refuses unexpected triggers); it runs the same admission function as the sync case.

Test network leak (review P2 #2). A fetch probe in update-startup.campaign-apply-error.test.ts, run without CI: the previous code made three outcome HEAD requests to https://telemetry.openclaw.ai/api/latest-version (intercepted by the probe). With only the new shared test default they go to http://127.0.0.1:9/…. With the full change (shared default + the file's sender mock) there are none. test/setup-home-isolation.test.ts now asserts that a case emulating production (VITEST cleared, NODE_ENV=production) only reaches loopback. Other suites that clear the runner markers and can settle runs (update-startup.test.ts, client-credential-update.test.ts, gateway-external-state-ownership.e2e.test.ts via child processes) are covered by the shared default.

Mutation checks on update-result-telemetry.test.ts, each caught: a per-request POST deadline (stalled-POST case), owner_required reported, plus the earlier four (post-HEAD recheck, capability header, eligibility gate, hourly limit).

Other review items

  • Activation admission: openclaw update now reads reporting policy before its final package-activation admission check, so nothing yields between that check and run creation.
  • Transport tests: a capable HEAD followed by a stalled POST settles at the original deadline (only the first deadline is shortened; a per-request deadline would hold the POST for 10 s). POST redirects are refused. Endpoints with URL credentials or a non-HTTP scheme send nothing. The assertion that mirrored the 3000 ms constant was removed.
  • Not excluded: an automatic campaign retired after its run was recorded but before the updater started settles as failed with unexpected-error (or the error's code). Main records the same reasons when the updater actually ran and threw, so excluding them by reason would drop real failures; doing it properly needs a distinct ledger reason, which is a separate user-visible change. Documented in docs/gateway/telemetry.md. Ctrl-C before activation settles as failed and is reported (also documented), as is the up-to-three-second CLI exit delay while a report is in flight.

Exact-head CI

CI on e212c8cb: all 96 checks pass, including openclaw/ci-gate and all three PostgreSQL conformance shards; the new PostgreSQL bookkeeping-failure case ran and passed there. The two earlier main-owned failures are gone on this base: checks-node-changed-2 (fixed on main by #184188) and checks-node-changed-compact-large-22 (the settle-replay harness test passes on this run).

Old-head CI failures, diagnosed

  • check-additional-runtime-topology-architecture (log): madge cycle introduced by the original head. Fixed; check:architecture passes on this head.
  • checks-node-compact-large-6 (log): src/state/openclaw-state.worker.imports.test.ts failed because the shared-state worker reached config/io through the telemetry module. Fixed; that test also covers the lazily loaded update-run-dispatch.worker.ts and forbids update-result-telemetry.ts.

Exact-head ledger → real HTTP → receiver Worker proof (2026-10-26)

Passed on client e212c8cbd152ca30ef2b81c91b801d328fab601f, tree 948cdc04203ca7919f24bd20d548ada92282f8db, against unmodified openclaw/telemetry main e4954d7b90c20808646c6f43e698d2359cdc1799, tree 7512c1fd89345d65aa104fdaf881237f5308a4c6 (includes merged #23). Native Node 26.12.1 on macOS arm64; real workerd 1.20260926.1 via Miniflare 5.20260926.1-alpha. 46.996 seconds; all five cases passed. This replaces the prior 424228e6 receiver claim for the current candidate.

The harness uses the actual async ledger owners: createUpdateRunAsync → state-worker admission → recordUpdateRunVerificationAsync → finishUpdateRunAsync → committed terminal result/claim → real host configuration reader → unmodified default fetch. It asserts durable settlement and admission/attempt bookkeeping. The receiver is the actual bundled source running under workerd, not a synthetic response handler. A transparent loopback proxy holds the real HEAD response while the opt-out is written to disk, then releases it. Negative cases are observed beyond the complete three-second request deadline.

Case Observed HTTP Outcome writes Daily writes POST body
Newly admitted, settled success HEAD 204, capability 2 → POST 200 1 0 18 fields, 407 bytes
update.checkOnStart:false written while HEAD is held HEAD 204 only; no POST 0 0 none
Outcome binding absent HEAD 503 only; no POST 0 0 none
Admitted with policy disabled/no marker, then policy enabled No requests; no attempt claimed 0 0 none
DO_NOT_TRACK=1 and telemetry.enabled:false HEAD 204, capability 2 → POST 200 1 0 18 fields, 407 bytes

Both POSTs carried User-Agent: openclaw-update-result/1; wire traces assert no cookie, authorization, referer/referrer and no run ID or path in the exact closed 18-key body. The only external response stub is the receiver's npm lookup; any other Worker outbound URL is rejected. Count instrumentation delegates each observed write to Miniflare's real local Analytics Engine binding. The local AE simulator is not production ingestion: this proves receiver write routing, not deployed dataset delivery.

Isolation: host-native loopback-only listeners (not a network-none container), private HOME/state/config/TMPDIR, resolved handoff path asserted private before running. Shared handoff SQLite/WAL/SHM hashes, sizes and mtimes unchanged before/after. All listeners/workerd processes disposed, state workers/databases closed, per-case homes and downloaded receiver runtime removed. No production telemetry request or Cloudflare deploy.

Reproduction command after the pinned receiver and dependency setup:
env -i PATH="$PATH" HOME="$PWD/.artifacts/exact-head-20261026/runtime-home" TMPDIR="$PWD/.artifacts/exact-head-20261026/tmp" NODE_ENV=production node --import ./scripts/tsx.mjs .artifacts/exact-head-20261026/receiver-proof.mts.
Scripts, sanitized HTTP/write traces, results and source/artifact digests are retained locally under .artifacts/exact-head-20261026/ (not committed). Both harness files audited in full; no product source/test changes, no test pruning and no product defect found.

Observed allowed-case payload (407 bytes; same shape in case e)
{"schema":2,"event":"update_result","outcome":"succeeded","fromVersion":"2026.10.6","targetVersion":"2026.10.7","resultingVersion":"2026.10.7","runningVersion":"2026.10.7","platform":"darwin","arch":"arm64","installMethod":"npm-global","channel":"stable","duration":"under-10s","postCheck":"passed","failedStage":"none","errorCategory":"none","errorCode":"none","rollback":"not-needed","recovery":"unknown"}
a: HEAD 204 OpenClaw-Update-Results: 2; POST 200; UPDATE_RESULTS=1 TELEMETRY=0
b: HEAD 204; on-disk policy revoked before HEAD release; POST absent; UPDATE_RESULTS=0 TELEMETRY=0
c: HEAD 503; POST absent; UPDATE_RESULTS=0 TELEMETRY=0
d: admission marker absent; policy then enabled; HTTP requests=0; UPDATE_RESULTS=0 TELEMETRY=0
e: DO_NOT_TRACK=1 + telemetry.enabled:false; HEAD 204; POST 200; UPDATE_RESULTS=1 TELEMETRY=0

Exact-head fresh install, published-updater upgrade, and full backup/restore (2026-10-26)

Passed using the task-authorized local Docker fallback, Linux arm64, Node 24.22.1, Docker 29.8.2, 4 CPUs / 12 GiB. This replaces the prior 424228e6 upgrade proof for this candidate. The final runtime completed in 466 seconds (7m46s) with 51 successful managed commands; the published updater itself took 271.603 seconds, persisted a finished/succeeded run, and replaced the managed Gateway PID.

Source was exported with git archive e212c8cbd152ca30ef2b81c91b801d328fab601f, tree 948cdc04203ca7919f24bd20d548ada92282f8db, into a task-owned Docker source volume. The repository's frozen dependency install and supported scripts/package-openclaw-for-docker.mjs packer produced the candidate. Package SHA-256: f9296d7e94cb322b4d46ef87476aaf82779f34824427b4959aa6313e311d00e2.

  • Published baseline: npm [email protected], verified as npm latest on 2026-10-26; actual serving build 2026.10.7-release-157d8c2bc3ea-2026-10-24T02-45-17.235Z.
  • Installed and serving candidate: version 2026.10.7, commit e212c8cbd152ca30ef2b81c91b801d328fab601f, build ID 2026.10.7-e212c8cbd152-2026-10-26T16-32-03.664Z. The equal package version does not hide an identity mismatch: the full installed build metadata and serving Gateway build ID were asserted. No candidate relabeling.
Cell / assertion Observed result
Separate fresh candidate npm installation Doctor repair/config validation exited 0; installed and serving build ID matched the exact candidate; /healthz 200, /readyz 200
Published 2026.10.7 updater → candidate tarball Real packaged updater completed, durable status finished/succeeded, installed candidate metadata matched, actual managed-service PID changed, serving build matched; health/readiness 200/200
Existing settings and data Gateway/plugin/agent/update/telemetry settings preserved, except the verified heartbeat representation migration below; state marker and both workspace markers preserved; original durable session ID and content returned by real chat.history; incognito content absent after restart
Baseline full backup backup create --verify and independent backup verify passed; 25 entries, sqliteInventoryVerified=true
Baseline backup restored into fresh staging Guarded backup restore passed; exact archived config bytes and state/workspace markers preserved; restored candidate served 200/200 and returned original durable session ID/content
Candidate full backup Create/verify passed; 46 entries, sqliteInventoryVerified=true
Candidate backup restored into fresh staging Restore passed; exact archived config bytes and data markers preserved; restored candidate served 200/200 and returned original durable session ID/content
Candidate and both restored states: Doctor error-level lint Each returned ok=true, findings=[], 41 checks run / 30 skipped with --severity-min error

Preservation assertion correction, not a product fix: the first runtime failed a newly added format-level equality check because candidate Doctor intentionally retired seeded agents.defaults.heartbeat.every="0m". The narrow replacement assertion requires exactly one heartbeat automation per configured agent, both disabled and not running, observed through real cron.list; every other selected setting still deep-equals. The same package bytes were reused in a fresh container for the necessary assertion/backup-restore rerun. Original failed evidence is retained and classified in migration-classification.md. Baseline restore verifies the archived config bytes before applying candidate Doctor migration and remapping isolated workspace paths/port.

Commands exercised through the repository's bare Docker E2E and published-driver harness (artifact-local adapter adds fresh-install and full restore assertions):

npm install -g [email protected] --no-fund --no-audit
openclaw gateway install --force --json
openclaw update --tag /tmp/openclaw-current.tgz --yes --json
openclaw update status --json
openclaw doctor --non-interactive
openclaw doctor --lint --json --severity-min error
openclaw config validate --json
openclaw backup create --output <private-archive> --verify --json
openclaw backup verify <private-archive> --json
openclaw backup restore <private-archive> --target <fresh-private-staging> --json

The baseline and candidate are real installed packages; real CLI, updater, Gateway, SQLite, HTTP and backup/restore execute. The service manager is the upstream synthetic systemd fixture, not native host-service qualification. Doctor is error-clean, not warning-free: synthetic absent-provider/plugin, token and container process-visibility diagnostics remain in the logs; the read-scope-limited probe still supplies the asserted serving build identity, while separate authorized Gateway calls prove session preservation. No model inference or production telemetry was used.

Testbox routing: the requested current-main workflow run 40357395000 stayed queued and did not execute this proof. Its admission-bound lease tbx_01m5wfy22v4ex39j2v9c5fa81t was stopped; independent readback shows lease completed and workflow completed/cancelled. It is not presented as a passing Testbox run. Runtime proof above is the explicitly authorized local Docker fallback.

Cleanup: exact owned Docker containers, source/tmp volumes, tagged proof images, newly pulled base image, consumed tarball and wrapper source mirror were removed; absence read back independently after child completion. Host shared-handoff snapshots unchanged; actual runtime handoff database was inside the private container fixture, never the host store. All receiver-proof-created local dependency links were removed; pre-existing build/dependency directories remain with the existing PR owner. One small tooling bookkeeping item remains: Crabbox retains its claim/key because its native record lacks the GitHub-run association, despite independently confirmed lease and workflow termination. No claim/key was manually deleted; the existing tooling/cleanup owner can reconcile that exact completed lease.

Audited harness/scripts and compact evidence are retained under .artifacts/upgrade-proof-20261026/: RESULT.json, README.md, proof.mjs, audit.md, migration-classification.md, final passing evidence-r2/, and cleanup readbacks. No product defect found, no tracked source/test changes, no new commit pushed.

Remaining proof / rollout limits

  • Receiver deployment, dataset provisioning and delivery verification (separately authorized rollout work).
  • Historical AutoReview attempt used the old direct OpenAI credential and failed with 401 invalid_api_key; no subscription fallback was used. The configured review route has since changed to ClawRouter on 2026-10-26; this proof run does not claim a new AutoReview result. An independent Opus + Astra review of e0149cff found no P0/P1; its P2s are addressed above.

@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: L maintainer Maintainer-authored PR labels Sep 20, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Sep 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds default-on, identifier-free update-outcome reports using existing update-request controls.

Example: An eligible update from 2026.10.6 to 2026.10.7 succeeds and its running version is verified.

  • Before: Daily update checks provide no terminal outcome report.
  • After: A capable receiver receives an 18-field success report without installation, run, or user identifiers.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, approved implementation with real receiver authority proof, packaged upgrade evidence, green exact-head gates, and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Exact-head production ledger, worker, configuration, and HTTP owners exercised the actual receiver under workerd: allowed reports reached its separate binding, policy revocation during HEAD prevented POST, and unsupported or ineligible cases sent no outcome. Real installed CLI/Gateway evidence additionally covers fresh installation, the published v2026.10.7 updater, preserved sessions/settings, and full backup/restore. Production dataset delivery is explicitly excluded from these claims.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Maintainers cannot determine update success, failure, rollback, or verified running-version outcomes from daily version checks.
Reason: The maintainer explicitly approved the default-on privacy direction, and the implementation provides bounded outcome visibility without identifiers or new configuration.

Merge readiness

✅ Ready for maintainer review

This PR remains useful, maintainer-approved work absent from current main; no actionable correctness or security findings remain.

Priority: P2
Reviewed head: e212c8cbd152ca30ef2b81c91b801d328fab601f

Before merge

None.

Findings

None.

Agent review details

How this fits together

Update ledger owners settle outcomes and claim bounded local attempts; the host checks current policy and receiver capability before sending a closed payload to the telemetry receiver.

flowchart LR
  A[CLI or Gateway updater] --> B[Existing update ledger]
  B --> C[Transactional attempt claim]
  C --> D[Host policy check]
  D --> E[Receiver capability probe]
  E --> F[Policy recheck and outcome POST]
  F --> G[Separate outcome dataset]
Loading

Technical review

Best possible solution:

Merge the approved client implementation while preserving the receiver's separate deployment and release-activation requirements.

Do we have a high-confidence way to reproduce the issue?

This is a feature addition; source inspection confirms current main lacks outcome reporting, and supplied exact-head traces exercise its intended behavior.

Is this the best way to solve the issue?

The implementation uses the existing ledger and machine-state owners, separates worker bookkeeping from host policy and networking, and needs no additional architecture.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9ca1643decad.

Provenance checked

  • Default update requests versus opt-in feature statistics changes intended behavior with a stated reason (4d617f4: Existing telemetry separates default update discovery from optional anonymous feature statistics; the later disclosure work explains receiver geography.)
  • Transactional update settlement and worker ownership keeps the original intent (fix(update): settle candidate progress before cleanup #161104: Accepted update writes must settle through existing workers before cleanup, preserving recovery evidence and uncertain outcomes.)
  • Best-effort bookkeeping and authoritative failure outcomes keeps the original intent (fix(update): ride out state database contention instead of failing the update #168210: Optional bookkeeping must not abort an update; recovery-critical writes and terminal outcomes remain authoritative.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Introduced change and current-main boundary: Reviewed the pinned introduction diff from 592df0b to e212c8c; current main has no matching outcome protocol or bookkeeping implementation. (src/infra/update-result-telemetry.ts:37, 9ca1643decad)
  • Explicit privacy direction approved: VISION.md: Jason approved default-on outcomes, including with DO_NOT_TRACK or telemetry.enabled:false, at this head: feat: report update outcomes by default without identifiers #154067 (comment). This resolves the prior privacy-owner question without requiring another approval. (VISION.md:81, e212c8cbd152)
  • Final-effect policy and transport safeguards: The sender refuses credentials and redirects, requires exact capability negotiation, rechecks canonical policy after HEAD, and shares one deadline across HEAD and POST. (src/infra/update-result-telemetry.ts:68, e212c8cbd152)
  • Existing storage owner and isolated bookkeeping failure: Eligibility and hourly attempts use the existing machine-state table inside update transactions; nested savepoints isolate bookkeeping failures, and host dispatch follows committed settlement. (src/infra/update-result-claim.ts:44, e212c8cbd152)
  • Current-head authority and upgrade evidence: The full PR body supplies exact-head real-worker/HTTP traces against the actual receiver: allowed POST, revoked-policy no POST, missing binding no POST, and absent admission no requests. It also records fresh installation, the published v2026.10.7 updater installing this candidate, preserved settings and durable session content, and verified baseline/candidate backup restores. These resolve all three previous rank-up requests. Source body identity supplied by the host: fc8b4fd856d44d1c1b40a859f6feec0ed4e6b3d1ba6b19f08e71e2911c7f570a. (e212c8cbd152)
  • Authoritative receiver contract and staged rollout: The PR explicitly relies on this receiver's protocol and actual Worker for proof, establishing the dependency-review boundary. Reviewed its exact schema, capability handler, isolated dataset routing, and rollout documentation; the client projection matches. feat(telemetry): accept identifier-free update outcomes telemetry#23 is merged. Receiver delivery and retention verification remain separately authorized release/activation work; unsupported receivers receive no outcome POST. The complete repository tree contains no AGENTS.md. (src/update-result.ts:1, e4954d7b90c2)

PR surface

Source +415, Tests +889, Docs +87. Total +1391 across 28 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 18 448 33 +415
Tests 7 894 5 +889
Docs 3 95 8 +87
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 28 1437 46 +1391

Review metrics

Metric Value Why it matters
Production versus test changes Production +448/-33 lines; tests and test support +894/-5 lines. Growth implements the closed protocol, transactional claims, host dispatch, and distinct storage, revocation, transport, and isolation contracts using existing owners.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is an approved observability improvement with bounded effects and no demonstrated urgent user-facing failure.
  • merge-risk: 🚨 compatibility: The new default sends outcome requests independently of feature-statistics settings; this behavior is explicitly approved, documented, and covered by upgrade evidence.
  • merge-risk: 🚨 security-boundary: Default-on external reporting changes the privacy boundary; the maintainer accepted the policy, and exact-head evidence verifies allowed delivery and policy-revoked suppression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (15 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-25T06:05:54.467Z sha 2d210c6 :: needs real behavior proof before merge. :: [P2] Keep config loading out of update worker bookkeeping
  • reviewed 2026-09-28T18:19:35.152Z sha 2d210c6 :: needs real behavior proof before merge. :: [P2] Keep host config loading out of state-worker bookkeeping
  • reviewed 2026-09-28T22:39:16.888Z sha 2d210c6 :: needs real behavior proof before merge. :: [P2] Keep config loading out of the SQLite worker import graph
  • reviewed 2026-09-28T23:30:39.949Z sha 2d210c6 :: needs real behavior proof before merge. :: [P2] Keep host config loading out of the SQLite worker
  • reviewed 2026-09-29T00:01:28.703Z sha 2d210c6 :: needs real behavior proof before merge. :: [P2] Keep host configuration loading out of the SQLite worker
  • reviewed 2026-09-29T14:21:59.013Z sha 2d210c6 :: needs real behavior proof before merge. :: [P2] Keep host configuration out of the SQLite worker import graph
  • reviewed 2026-10-26T03:11:39.399Z sha 95fdb1424fa5d1139485d6062b3936ea7be9326e :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-26T05:45:44.980Z sha e212c8c :: needs real behavior proof before merge. :: none

Reviewed October 26, 2026, 1:03 PM ET / 17:03 UTC (Revision 16).

@roboclaw-bot roboclaw-bot changed the title feat: report opt-in update outcomes without identifiers feat: report update outcomes by default without identifiers Sep 23, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 25, 2026 02:33
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 25, 2026
@fuller-stack-dev
fuller-stack-dev force-pushed the openclaw/update-outcome-pings-pr-20260919 branch from 2d210c6 to 95fdb14 Compare October 26, 2026 03:05
@openclaw-barnacle openclaw-barnacle Bot added the cli CLI command changes label Oct 26, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 26, 2026
@fuller-stack-dev
fuller-stack-dev force-pushed the openclaw/update-outcome-pings-pr-20260919 branch from 95fdb14 to a8e1189 Compare October 26, 2026 03:33
@openclaw-barnacle openclaw-barnacle Bot added the commands Command implementations label Oct 26, 2026
@fuller-stack-dev
fuller-stack-dev force-pushed the openclaw/update-outcome-pings-pr-20260919 branch from a8e1189 to e0149cf Compare October 26, 2026 04:32
Report one bounded, identifier-free schema-2 outcome per settled update
under the existing automatic update-request policy. A payload-free HEAD
must return 204 with OpenClaw-Update-Results: 2 before any POST, both
requests share one three-second deadline, redirects are refused, and
policy is rechecked after the probe.

The shared-state worker records eligibility and claims attempts in the
existing machine-state table without importing host configuration. Host
owners read policy at admission and before dispatch, and send only after
the terminal write commits. Main's asynchronous reconciliation and
worker-owned writers are preserved.

Co-authored-by: fuller-stack-dev <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
@fuller-stack-dev
fuller-stack-dev force-pushed the openclaw/update-outcome-pings-pr-20260919 branch from e0149cf to e212c8c Compare October 26, 2026 05:38
@fuller-stack-dev

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 26, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member

Maintainer privacy decision (Jason, @fuller-stack-dev), 2026-10-26: approved as designed, Option A.

Update-outcome reports may be sent by default, including from installations that set DO_NOT_TRACK or telemetry.enabled: false. The opt-outs are the same ones that already stop the automatic update check: update.checkOnStart: false, OPENCLAW_NO_AUTO_UPDATE=1, and CI/Nix suppression. Optional feature statistics remain opt-in and unchanged.

Basis for approval at head e212c8cb:

  • No identifiers in the payload. It is a closed 18-field projection: schema, event, outcome, four release-format versions, platform, arch, install method, channel, coarse duration bucket, post-check, failed stage, error category, allowlisted error code, rollback, recovery. There are no run, install or user IDs, no paths, config, raw errors or logs, and no non-release version strings.
  • Requests carry no extra identifying data. The User-Agent is fixed, there are no cookies, credentials or referrer, and redirects are refused.
  • The receiver stores nothing about the sender. feat(telemetry): accept identifier-free update outcomes telemetry#23 writes only those fixed fields to a separate dataset. It records no request metadata, geography or IP. The connecting IP is used only transiently as the rate-limit key, the same as for the existing daily update check.

I'll add the remaining exact-head proofs (real receiver allowed/revoked, and published-updater upgrade with backup/restore) before merging.

@fuller-stack-dev

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 26, 2026
@fuller-stack-dev
fuller-stack-dev merged commit eaaa6f1 into main Oct 26, 2026
195 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the openclaw/update-outcome-pings-pr-20260919 branch October 26, 2026 17:06
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…#154067)

Report one bounded, identifier-free schema-2 outcome per settled update
under the existing automatic update-request policy. A payload-free HEAD
must return 204 with OpenClaw-Update-Results: 2 before any POST, both
requests share one three-second deadline, redirects are refused, and
policy is rechecked after the probe.

The shared-state worker records eligibility and claims attempts in the
existing machine-state table without importing host configuration. Host
owners read policy at admission and before dispatch, and send only after
the terminal write commits. Main's asynchronous reconciliation and
worker-owned writers are preserved.

Co-authored-by: fuller-stack-dev <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants