Skip to content

fix(compaction): heartbeat sessions ignore the active transcript byte cap - #136533

Merged
vincentkoc merged 25 commits into
openclaw:mainfrom
LiuwqGit:feat/issue-136452-heartbeat-byte-cap
Sep 5, 2026
Merged

vincentkoc merged 25 commits into
openclaw:mainfrom
LiuwqGit:feat/issue-136452-heartbeat-byte-cap

Conversation

@LiuwqGit

@LiuwqGit LiuwqGit commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor
Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

Fixes #136452

Thanks @LiuwqGit for the original report and contributor implementation context.

What Problem This Solves

Heartbeat admission returned before evaluating
agents.defaults.compaction.maxActiveTranscriptBytes. An authoritative host
transcript could remain above the configured byte cap, and a Codex session could
later dead-end when native compaction correctly declined a host-isolated
transcript.

Root Cause And Owner

The agent compaction owner split transcript append, compaction accounting, and
the byte latch across separate persistence steps. That made the host commit
observable before all authoritative session state was durable and let secondary
Codex synchronization look like part of the success boundary.

The canonical fix keeps one host-owned semantic compaction path:

  • a one-shot, exact-target authority claim admits direct heartbeat compaction;
  • transcript append, exact compaction-event validation, lifecycle/writer CAS,
    compaction count, and byte-latch state commit in one OpenClaw agent write
    transaction;
  • the shared accounting projection replaces duplicate accounting branches;
  • failed atomic persistence reloads the session manager instead of continuing
    from stale in-memory state;
  • optional native Codex synchronization runs after the durable host commit and
    cannot overturn or duplicate it.

No consumer-side fallback, parallel compaction pipeline, dependency change,
configuration surface, or schema change was added.

User Impact

Heartbeat traffic now honors the active-transcript byte cap. Restricted Codex
sessions compact the host transcript without issuing a native compact request
and continue in the same session. Upgraded sessions retain the committed host
result even when optional native synchronization rejects. Writer substitution
and revocation fail before provider traffic or transcript mutation.

Exact-Head Proof

  • Signed head: ec44630c4ecb4d2a2ab588fda5f490154a379ac8
  • Signer fingerprint:
    SHA256:OIEOnMWCJeKhWpBNlB42wwPuUG5gsC8Crq1ibnt7ylQ
  • Pinned proof base: f6f24b109f4a87cef6d173d3cf7e74065adac691
  • Merge base: d5992278b3b8a8f3e1e37c23749b86efec65215f
  • Merge tree: efead35e6ca501f4c86087d242354c1bfb002dc1
  • Fresh direct-AWS run: run_2a4f0374e55e
  • Portal:
    https://crabbox.openclaw.ai/portal/runs/run_2a4f0374e55e
  • Task-owned lease: cbx_f5216c34d61b (pr136533-ec44630c)
  • Lease disposition: released and absent from the active lease list
  • Environment: public-network AWS Linux, no instance profile, no Tailscale,
    Node v24.19.0, pnpm 12.1.0
  • Full proof runner SHA-256:
    9450cf4f4a69bce6af345e1e0d297c1d0a33370c12896737b85dfe99c18707dc
  • Trusted bootstrap SHA-256:
    e899a6ef3bd8c389c228a990fab954a53409c74b193e0f5dd1be423c84d3a778
  • Corrected tail runner SHA-256:
    180d57102b2521ce02a2c24273ad1510c568ec85a28c48b0b00f3567b06ea159
  • Downloaded final archive SHA-256:
    c2a76306b39f302b4fd9602cb4d3483a181a3fea3e25f7fac720e2c37f965e70
  • Archive size: 482783 bytes; all SHA256SUMS entries verified locally

Run 697 and proof from 4ee3a708 or any other superseded head are historical
only. None is used as current-head proof.

Phase Results

The original fresh run completed every product/test phase, then failed only in
the evidence validator because it asserted the superseded restart shape. The
first tail validator also failed only because an empty checkpoint list was
omitted rather than serialized as []. The final tail preserved both failed
attempts in the archive, corrected the validator, reverified the immutable
source tuple, ran the not-yet-reached real systemd scenario, and finished green.

Fresh phase Status Duration
Exact SHA, signature, base, merge tree Pass 2s
check:changed Pass 800s
Auth E2E and fail-closed contracts Pass 392s
Producer contract Pass 28s
Heartbeat owner contracts Pass 130s
Private QA build Pass 367s
Joined heartbeat runtime QA Pass 109s
Initial stale-shape evidence validator Validator-only failure 0s
Final tail phase Status Duration
Exact source tuple revalidation Pass 0s
Corrected joined evidence validation Pass 0s
Real systemd QA Pass 55s
Systemd evidence validation Pass 0s
Clean tree Pass 0s

Auth proof included the relevant SecretRef/auth E2E, exec-provider path, and
Windows ACL fail-closed contract tests. Producer proof covered
doctor-gateway-startup-recovery.

Joined Heartbeat QA

Schema v2; suite total=1, passed=1, failed=0, status completed.

Case Terminal Provider summaries Native compact Checkpoints Count Durable result
Fresh restricted ok 2 0 1 1 Host event/count/latch committed; successor succeeded.
Upgraded native failure ok 2 1 rejected 1 1 Pre-native host commit stayed durable; rejection did not duplicate event/checkpoint; successor succeeded.
Upgraded restart ok 2 0 0 1 Event/count/latch committed before checkpoint/native; SIGKILL/restart preserved the same owner state; successor succeeded.
Substituted writer error 0 0 0 0 Rejected before provider I/O or transcript mutation; successor succeeded.
Revoked writer expected skipped 0 0 0 0 Reset advanced lifecycle and recorded one reset event; no compaction state leaked; successor succeeded.

Redacted joined validator output:

{"schemaVersion":2,"suiteStatus":"completed","suiteCounts":{"total":1,"passed":1,"failed":0,"skipped":0},"cases":{"heartbeat-fresh-restricted":{"status":"pass","terminalStatus":"ok","providerSummary":2,"nativeCompact":0,"checkpoints":1,"compactionCount":1},"heartbeat-upgraded-native-failure":{"status":"pass","terminalStatus":"ok","providerSummary":2,"nativeCompact":1,"checkpoints":1,"compactionCount":1},"heartbeat-upgraded-restart":{"status":"pass","terminalStatus":"ok","providerSummary":2,"nativeCompact":0,"checkpoints":0,"compactionCount":1},"heartbeat-substituted":{"status":"pass","terminalStatus":"error","providerSummary":0,"nativeCompact":0,"checkpoints":0,"compactionCount":0},"heartbeat-revoked":{"status":"pass","terminalStatus":"skipped","providerSummary":0,"nativeCompact":0,"checkpoints":0,"compactionCount":0}}}

Real Systemd QA

Schema v2; primary coverage:
cli.port-and-startup-diagnosis, cli.restart-guidance; suite
total=1, passed=1, failed=0, status completed.

  • restartCount=3
  • startLimitObserved=true
  • startLimitResult=exit-code
  • restartGuidanceObserved=true
  • foreignPortDiagnosed=true
  • cleanupVerified=true
  • runtime running; RPC and health checks healthy

Redacted systemd validator output:

{"schemaVersion":2,"entryStatuses":["pass"],"primaryCoverage":["cli.port-and-startup-diagnosis","cli.restart-guidance"],"suiteCounts":{"total":1,"passed":1,"failed":0,"skipped":0},"suiteStatus":"completed","summary":{"cleanupVerified":true,"foreignPortDiagnosed":true,"independentHealthHealthy":true,"independentStatusHealthy":true,"restartCount":3,"restartGuidanceObserved":true,"startLimitObserved":true,"startLimitResult":"exit-code"},"runtimeStatus":"running","rpcOk":true,"healthOk":true}

Evidence Hashes

  • heartbeat-qa-evidence.json:
    5ce22e8ea0a36b3b5047b09220912cb4deafcd2a98072b0f1c01153471ae34a5
  • heartbeat-qa-suite-summary.json:
    c345f73af7ccd1bcbce7b9e68cca656b18be4b5b1f5784f3968ca68a0c716c32
  • fresh restricted:
    320304591eb27ece3a4f570ba2f222bae29a432dbff6bcf7c414dd42dc3e5fb1
  • upgraded native failure:
    9be0351a46c77c5953769fd27642936cf00a34d210e5442b6a45a28693413115
  • upgraded restart:
    ce1eb9954a596560f0aad3f158c9bf6a6505fb8d773ecd689f0fe18b291016b3
  • substituted writer:
    1adeef29185497e50110031d2e7f384c059caf3ee51fd61616934f693d118c4d
  • revoked writer:
    3515ee9e598915fa38530dca45dbfd1cd1d481f5f458d7e43a40e0e419337fa4
  • systemd-qa-evidence.json:
    5a47cfe43174e49c1e4cf2645688f092663608fdff5a39b3dda762742184d505
  • systemd-qa-suite-summary.json:
    3667be2d254068e77919ad731477c311840a0324b0b916d0590470623fa03b4d
  • doctor-gateway-startup-summary.json:
    a97b8b4a95b8970f0ed975874e373dfda5ab029a5d7812d67dbdd014366aae08
  • gateway-status.json:
    a0302ea88df8db514e2c069bc534a2e5a1bfe350d887eca563b3d9d10320c59a
  • gateway-health.json:
    bfe46858d77655576a23afcdb533c8c7233db8acf3cad09a109d0ed77180ce6a

Hosted Gates

  • Exact current head: ec44630c4ecb4d2a2ab588fda5f490154a379ac8
  • Hosted checks: 173 success, 0 failure, 0 pending, 37 skipped,
    1 neutral
  • Aggregate openclaw/ci-gate: pass
  • The latest hosted ClawSweeper review found no code or security finding. Its
    remaining evidence blockers were the stale old-head body and missing
    pre-checkpoint crash/restart result; both are addressed above with the
    corrected table, redacted validator output, portal run, and archive hashes.

Coverage And Size

Sibling coverage includes fresh restricted, upgraded native rejection,
pre-checkpoint restart, substituted writer, revoked writer, auto-reply memory,
queued compaction, hook cancellation, transcript authority, transaction
rollback/reopen, writer-close rollback, and one-shot claim non-vacuity.

  • Production: +503/-145, net +358
  • Tests and QA support: +2839/-50, net +2789
  • Docs: +18/-9, net +9
  • Scenario metadata: +38/-0, net +38
  • Files changed: 27
  • Dependencies/config/schema: unchanged

The positive production delta establishes the authority boundary, atomic
persistence, lifecycle/writer fencing, and shared accounting projection. It
replaces split ownership rather than adding a downstream guard.

Codex Contract

Direct source inspection used Codex
ddf04ad26789d040f9ef6a96736f76602e35a6cc:

  • codex-rs/app-server-protocol/src/protocol/v2/thread.rs:1116-1126
    defines thread/compact/start as a thread-id request with an empty response.
  • codex-rs/app-server/src/request_processors/thread_processor.rs:2371-2383
    validates direct-input ownership, submits Op::Compact, and acknowledges
    submission.
  • codex-rs/core/src/session/handlers.rs:675-677 dispatches the asynchronous
    compaction operation.

The RPC acknowledges async submission rather than durable completion. OpenClaw
therefore owns host-transcript durability; native synchronization remains
secondary.

@clawsweeper

clawsweeper Bot commented Sep 2, 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.

@clawsweeper clawsweeper Bot added P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 5, 2026, 10:58 AM ET / 14:58 UTC.

ClawSweeper review

What this changes

Enforces the transcript byte limit during heartbeats and adds fenced Codex host compaction with atomic accounting, documentation, and Gateway regression coverage.

Merge readiness

⛔ Blocked before merge - 3 items remain

This repair remains necessary on current main. The previous wording finding is resolved, and no new blocking code defect was found; the captured proof still does not cover the final atomic-persistence restart boundary.

Priority: P1
Reviewed head: ec44630c4ecb4d2a2ab588fda5f490154a379ac8

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A coherent repair with useful regression coverage, pending proof for the final persistence boundary.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: The captured AWS built-Gateway run at 4ee3a70 supports heartbeat compaction, restricted native rejection, and stale-writer fencing. The final SQLite transaction and pre-checkpoint restart case have no matching observed result in the supplied evidence; the earlier restart row records one native request where the current case requires zero. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The captured AWS built-Gateway run at 4ee3a70 supports heartbeat compaction, restricted native rejection, and stale-writer fencing. The final SQLite transaction and pre-checkpoint restart case have no matching observed result in the supplied evidence; the earlier restart row records one native request where the current case requires zero. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 10 items Current main still contains the reported bypass: At the fetched main revision, runSessionCompactionIfNeeded returns for isHeartbeat before resolving maxActiveTranscriptBytes. The current documented byte guard promises semantic compaction before another run.
Host persistence boundary: The admission owner supplies a persistence callback that commits the compaction event, count, and byte latch together. The SQLite owner validates the appended event and rechecks writer/lifecycle ownership before updating the session row.
Entry points, authority, and sibling behavior: Read the direct-reply and follow-up admission callers, queued compaction, runtime delegate, direct compactor, transcript guard, and accounting owner. The private claim is one-shot and target-bound; transcript writes revalidate the captured writer. Heartbeats skip token maintenance, while CLI/native-transcript owners retain their existing exclusion.
Findings None None.
Security None None.

How this fits together

Heartbeat and chat admission check OpenClaw’s stored conversation before starting another turn. Host compaction summarizes that transcript, while the Codex plugin separately controls its native conversation.

flowchart TD
  A[Heartbeat or chat turn] --> B[Read active transcript size]
  B --> C{Byte limit reached and unlatched?}
  C -->|No| G[Admit next turn]
  C -->|Yes| D[Validate session and writer]
  D --> E[Compact host transcript and commit accounting]
  E --> F[Optional eligible Codex synchronization]
  F --> G
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The captured AWS built-Gateway run at 4ee3a70 supports heartbeat compaction, restricted native rejection, and stale-writer fencing. The final SQLite transaction and pre-checkpoint restart case have no matching observed result in the supplied evidence; the earlier restart row records one native request where the current case requires zero. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The final atomic persistence path lacks captured crash/restart results; an interruption could otherwise leave compaction accounting or retry suppression inconsistent with the committed transcript.
  • Complete next step (P2) - Provide results from the existing Gateway restart scenario against the final atomic-persistence code and align the PR’s checkpoint/native-request evidence with those observations.
Agent review details

Security

None.

PR surface

Source +358, Tests +2789, Docs +9, Other +38. Total +3194 across 27 files.

View PR surface stats
Area Files Added Removed Net
Source 15 503 145 +358
Tests 10 2839 50 +2789
Docs 1 18 9 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 1 38 0 +38
Total 27 3398 204 +3194

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +358; tests and QA support net +2,789 Growth adds private authority and atomic persistence boundaries; shared accounting was moved into one reusable projection rather than duplicated.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #136452
Summary: This PR is the candidate repair for the heartbeat byte-cap bypass; related Codex work overlaps only part of the behavior.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Verify the final interruption boundary (recommended)
    Refresh the existing Gateway scenario evidence to demonstrate atomic persistence and successor continuity after interruption before checkpoint creation.

Technical review

Best possible solution:

Keep one semantic compaction pipeline with atomic transcript/accounting commits and proven restart recovery; the private authority and transaction boundaries justify growth beyond a guard-only fix.

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

Yes, from source: heartbeat admission returns before reading the configured byte cap on current main. The discussion supplies earlier before/after Gateway observations; this review executed no runtime reproduction.

Is this the best way to solve the issue?

Yes at the owner boundary: reusing semantic host compaction preserves the byte guard, whereas accepting native declines alone leaves host growth unresolved. Final persistence recovery still needs observed proof.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0f54c8698228.

Labels

Label justifications:

  • P1: The linked report describes heartbeat-driven transcript growth and Gateway OOM crashes, and current main still contains the bypass.
  • merge-risk: 🚨 session-state: The new transcript/count/latch transaction needs observed recovery across its final pre-checkpoint crash boundary.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The captured AWS built-Gateway run at 4ee3a70 supports heartbeat compaction, restricted native rejection, and stale-writer fencing. The final SQLite transaction and pre-checkpoint restart case have no matching observed result in the supplied evidence; the earlier restart row records one native request where the current case requires zero. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the existing Gateway proof for the final persistence code, showing pre-checkpoint interruption, one durable compaction/count/latch, zero native compact requests, and successful successor continuation; update the evidence table accordingly.
  • Attach redacted logs or terminal output; screenshots or recordings are welcome when they show the result. Remove credentials, IP addresses, private endpoints, and personal data. Updating the PR body should trigger review; otherwise ask a maintainer to comment @clawsweeper re-review.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (37 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-05T05:54:38.912Z sha bf0d7d4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-05T06:12:58.456Z sha bf0d7d4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-05T09:51:05.033Z sha 8b39ab3 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-05T10:03:19.414Z sha 3347970 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-05T10:15:59.624Z sha 48d7dd7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-05T10:47:39.404Z sha 4ee3a70 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-05T12:57:16.721Z sha 4ee3a70 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-05T14:02:44.615Z sha 1db0b08 :: needs real behavior proof before merge. :: [P3] Correct the restart criterion's persisted-checkpoint claim

@LiuwqGit

LiuwqGit commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

CI note: checks-node-compact-small-29 failed on src/gateway/server.startup-recovery-webchat.test.ts ("queues WebChat behind startup recovery, consumes cancellation, and executes the survivor once"). This PR only touches src/auto-reply/reply/agent-runner-memory.ts + its colocated test; the failing gateway webchat startup-recovery test is untouched and passes locally on this exact head (1 passed (1), Node v26.7.0). Looks like an unrelated timing flake — would appreciate a maintainer re-run of that job.

@vincentkoc
vincentkoc marked this pull request as draft September 2, 2026 20:12
@vincentkoc vincentkoc self-assigned this Sep 2, 2026
@LiuwqGit

LiuwqGit commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Added real behavior proof (requested by the ClawSweeper review) — live before/after runs of the actual heartbeat pipeline, PR body Evidence section updated:

Setup (identical for both runs): real openclaw-gateway started from source with the real cron-driven heartbeat scheduler (heartbeat: { every: "10s", target: "none" }), real SQLite session/transcript stores, maxActiveTranscriptBytes: "4kb", and the real preflight-compaction/summarization pipeline. Only the model provider boundary is a local OpenAI-compatible stub (no external credentials involved anywhere else in the path).

Before (unpatched origin/main @ 14f502a): after an over-cap seed, 15 real heartbeat turns ran with the transcript sitting at 11,914 bytes vs the 4,096-byte cap; zero isHeartbeat=true preflight evaluations, compactionCount stuck at 1, no latch — the silent bypass from the issue, reproduced live.

After (this PR head b14df25): heartbeat turns evaluate the cap every turn; an over-cap heartbeat turn triggered real compaction (preflightCompaction triggered: trigger=transcript_bytes activeTranscriptBytes=5007, real summarization call observed on the provider stub, outcome=compacted), persisted compactionCount: 2 and transcriptByteCompactionLatch {activeBytes: 4352, maxBytes: 4096}; subsequent over-cap heartbeats show sizeTriggerLatched=true (no compact loop) and under-cap heartbeats skip all maintenance.

Focused suite on this head is green, including the five-row runtime/heartbeat table covering embedded + Codex over/under cap.

@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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: M and removed size: S labels Sep 3, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. and removed 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. P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. labels Sep 3, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Exact-head proof is complete for
bf0d7d489021df6c594478101f2706a322e97103.

  • Fresh Crabbox run: run_edd4a6dcae8b
  • Full check:changed: pass
  • Auth: Windows ACL 6/6, exec-provider/Windows fail-closed 9/9,
    SecretRef/auth E2E 1/1
  • Producer contract: 7/7
  • Heartbeat owner contracts: 297/297
  • Private QA build: pass
  • Real systemd QA: pass; schema v2, suite 1/1, runtime/RPC/health healthy,
    restart exhaustion and recovery observed
  • Hosted exact-head CI: 204 complete, zero failures
  • Final SHA and clean tree: pass
  • Owned proof lease: released

The PR body now maps this evidence to the previous ClawSweeper authority,
fresh/upgraded-session, secondary-failure, and writer-revocation concerns.
Superseded proof, including run 697, is not used as current-head evidence.

@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

Exact-head proof for bf0d7d489021df6c594478101f2706a322e97103
is now in the PR body and the immediately preceding comment. Please evaluate
the candidate-matching recovery, restricted/native-owner behavior, secondary
failure continuity, exact-target authority, and writer-revocation evidence
against that current-head run.

@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member

Exact-head Codex owner-boundary proof completed on
bf0d7d489021df6c594478101f2706a322e97103.

Command:

node scripts/run-vitest.mjs extensions/codex/src/app-server/compact.test.ts extensions/codex/src/app-server/startup-binding.test.ts

Result: 2 files passed, 93/93 tests passed.

The focused run directly covers the remaining ClawSweeper authority concerns:

  • restricted native authority and host-isolated operations return without any
    thread/compact/start request;
  • admitted authority rotating while queued rejects before client acquisition,
    with both clientFactory and app-server request calls remaining zero;
  • a recovered predecessor rotating during startup rejects before native
    compaction and preserves its binding;
  • the startup matrix covers byte and token pressure under expected, ordinary,
    and revoked ownership, preserving the binding for rejected or revoked claims.

This supplements the fresh exact-head Crabbox proof in the PR body. It does not
reuse proof from run 697 or another superseded head.

@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

Exact-head evidence is now attached in the PR body for
4ee3a708e87636b6e53e37cab2075a3a0787e0f4.

It covers every remaining proof request from the latest review:

  • fresh restricted and upgraded Codex continuation;
  • restricted native rejection with zero native compact calls;
  • upgraded native-decline behavior;
  • restart durability with one persisted compaction/latch and no repeat;
  • substituted and revoked writers rejected before provider I/O, native requests,
    or transcript commits;
  • exact execution refs, checksummed artifacts, auth/Windows fail-closed
    contracts, producer tests, real systemd recovery, and check:changed.

The task-owned proof lease was released after artifact verification. Run 697 and
proof from superseded heads were not reused.

@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

Exact head remains ec44630c4ecb4d2a2ab588fda5f490154a379ac8.
The PR body now replaces all superseded-head evidence with the fresh exact-head
run, includes the corrected pre-checkpoint SIGKILL/restart contract, redacted
joined/systemd validator output, final archive hash, and released-lease state.

@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: codex extensions: qa-lab merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compaction.maxActiveTranscriptBytes is silently unenforced for heartbeat-driven sessions (unbounded transcript growth -> V8 OOM)

2 participants