Skip to content

fix(sessions): prevent participant misattribution in Activity - #130986

Merged
steipete merged 7 commits into
mainfrom
steipete/keen-jepsen-5573f5
Aug 28, 2026
Merged

steipete merged 7 commits into
mainfrom
steipete/keen-jepsen-5573f5

Conversation

@steipete

@steipete steipete commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #130661 — participant identity collisions and incorrect Activity history.

What Problem This Solves

A channel sender and an authenticated Gateway profile could share a raw ID and be merged into one participant. A later channel input then advanced the profile's timestamp even when its count was protected. Activity also inferred personal history from a four-avatar preview: unrelated channel senders appeared as people, while genuine contributors beyond the preview disappeared. Accepted steering could persist a user turn without recording its contribution.

Why This Change Was Made

The existing session-owned aggregate now keys by session, closed identity namespace, and actor ID. Profile, agent, plugin-qualified remote, unresolved observation, and legacy identities remain distinct. Admission/native-ingress owners capture accepted input identity and time; context copies consume that fact once after final targeting. Creator metadata is not fresh human input. Native product participation is separate from optional execution-audit collection, with one registered host-lifecycle owner.

Gateway projection resolves complete visible person associations before pagination and preview limits. Activity uses server-owned person filters, follows merged profiles, and describes associated sessions—not personal “last active” inferred from session recency. Post-commit events invalidate the relevant projections without publishing rolled-back state. Memory retains its documented raw-ID/whole-session selector and reports namespace ambiguity; Git credit remains consent- and verified-account-gated.

Removed paths include source promotion, creation-derived participation, duplicate projection policy, preview-derived person history, and stale fixture assumptions. No companion participant table, input ledger, transcript backfill, participant shadow state, new configuration option, or authorization widening is added.

User Impact

Maintainer-accepted upgrade boundary: the original task discussion accepted this existing-table repair before the explicit implementation/live-test/landing request, including the stopped-writer and backup-based downgrade requirements below. Agent schema 18 rebuilds the existing participant table. Preserve a verified WAL-aware backup, stop Gateway/agent-database writers, and run the new build's openclaw doctor --fix. Membership and recorded counts survive; ambiguous historical profile times become unknown. A subsequent accepted input establishes a known last time without inventing a first-ever time. Older binaries deliberately refuse the upgraded database; downgrade requires the pre-migration backup. Shared schema remains 13, Gateway protocol 4.

Doctor uses the physical shared-store owner rather than a logical agent alias, and refuses unsupported dependents without moving the original database aside. Required repair failures exit nonzero. Existing Goal state and receipts survive; main's already-landed lazy Goal table may be created empty during ordinary schema convergence, without another schema bump.

This does not redesign creator-based authorization, qualify historical per-message sender metadata, or implement the separate online-people-card work. Browser transcript snapshots do not contain the changed participant DTO. Source rollback is not database rollback.

Evidence

Published/tested head: c348a862fb47ca4029e21a7efa0a415f7950c100, base ca5930502984cce275bcb41a02d9d7d999da799d. Exact-head CI run 33170972534 completed successfully (attempt 1). The native pipeline merged this candidate as b03d2e79e9aa. The current-main merge preflight passed. Fresh independent review covered the complete patch in three bounded passes, with no blocking findings.

The complete cold build passed all 15 phases in 6m 8s. Fresh scoped SDK declarations passed at the default Node 24 heap in 52.7s; the actual export/type/runtime gate verified 147 public subpaths. Startup JavaScript is 345,367 B gzip, below the unchanged 347,037 B enforcement limit. No ineffective dynamic-import warnings. Frozen artifact: 15,182 entries, SHA256 f16476be20c2ec943fb0942d38cd7f75c8773f52e169091725b66a3cab07b327; the migration and live replay used this same artifact.

Boundary Current-head observation
Namespace/time collision Actual QA-channel input reused Alice's raw profile ID after two authenticated inputs. Two namespace-distinct rows remained; profile count stayed two and its time did not advance.
Complete person history Actual browser includePeople/involvingProfileId requests included Bob's crowded session although Bob was beyond the four-avatar preview; Alice's two channel-only associations were excluded.
Accepted steering Same-client input retained the exact original-run steering link, two user events and count two with input-time bounds. Different-client queued input remained one persisted user event/contribution.
Visibility Bob's actual operator.read client could not see Alice's draft; people counts excluded it too.
Genuine provider Real browser input and persisted OpenAI gpt-5.6-luna reply; one authenticated profile contribution.
Required child Native subagent spawn and real parent/child replies; inherited human creator and required sandbox preserved. Child has no invented human contribution and intentionally no self-agent participant row. Activity includes the typed creator association.
Grouping Real dropdown interaction verified Person, Project with a cwd-bearing session, and flat None.
Native deferred ingress Actual resolver, host context, SQLite queue/drain/followup, and participant store composed successfully: original capture time, once-only copied consumption, heartbeat neutrality, completed tombstone, and rejection of unconsumed replaced-owner results. This is an owner-boundary test, not a full external transport/reload flow.
Upgrade Actual old runtime read five sessions/13 participants; verified WAL-aware backup; held old writer blocked callback/mutation; normal close released its lease; both markers advanced to 18; membership/counts/FKs/integrity and all pre-existing session/transcript bytes survived. Only exact main-owned canonical Goal objects were added empty.
Refusal/reopen Actual old cold reader and the same old process after ordinary close refused 18; a fresh candidate process reopened it. The cached future-header case is separately labeled fault injection, not migration behind a live writer.
Actual Doctor Valid offline repair exited 0; held-writer and unregistered unknown-dependent cases exited 1 with old data preserved. Logs attribute refusal to required database readiness.
New input after upgrade Real login resolved the preserved synthetic profile. One browser input/reply advanced count 2→3, kept first time null, recorded known last time, and preserved every old transcript prefix.

All live surfaces were session-owned isolated Gateways/Chromium with synthetic Alice/Bob profiles. QA-channel transport and a deterministic provider drove collision/steering; the separate genuine-provider and required-child legs used OpenAI. No operator Gateway or real channel account was modified. Every attached image and video contact sheet was inspected. Historical channel sender labels are not reinterpreted by this migration.

Before / current-head captures

The before captures use frozen pre-fix main 8c1a55d446273da83418c2b595d2fa12712bd855, not a claimed stable-release reproduction. Its source/entrypoints were frozen but dependencies remained linked to the development installation. Current after captures are from c348a862fb47ca4029e21a7efa0a415f7950c100.

Before Current candidate
Bob: genuine contribution absent Bob: crowded session now appears
Alice: two false channel associations Alice: only genuine associations

Required child attributed to its creator, alongside real Project grouping:

Inherited creator association and project grouping

New accepted input in the upgraded historical session:

Authenticated post-migration input and reply

The attached short videos show accepted same-client steering and the separate genuine-provider input/reply.

Focused validation and CI repairs

Doctor integration passed 215 selected tests. Goal/participant integration passed 269 tests, followed by 32 composed Goal, historical-store, and declaration tests, owning typechecks/lint/format, and protocol checks. The new native-ingress composition passed separately. Earlier complete changed gates and owner regressions remain recorded in the progress thread; they are not relabeled as current-head runs.

Exact local commands included:

OPENCLAW_BUILD_PRIVATE_QA=1 OPENCLAW_BUILD_CACHE=0 pnpm build
OPENCLAW_BUILD_PRIVATE_QA=1 OPENCLAW_PLUGIN_SDK_CANONICAL_DTS=0 node --import ./scripts/tsx.mjs scripts/write-plugin-sdk-entry-dts.ts
OPENCLAW_BUILD_PRIVATE_QA=1 node --import ./scripts/tsx.mjs scripts/check-plugin-sdk-exports.mts
node scripts/run-vitest.mjs src/gateway/server.chat-goal.test.ts
node scripts/run-vitest.mjs src/commands/doctor-session-sqlite.shared-store.test.ts
node scripts/run-vitest.mjs test/scripts/declaration-source-index.test.ts
pnpm protocol:check

Earlier CI exposed real adjacent defects that are repaired here: optional Swift literals now preserve omission; native readiness/discovery fixtures own their lifecycle; the IPC shell fixture responds causally after invocation; shared jsdom cleanup clears detached shadow focus; SDK declaration discovery exits before a single complete emitter program starts. Proof retained the original timeouts, heap budgets, assertions, dependency versions, and parallel execution contracts. The focus regression failed before repair; the original 254-file selection passed 3,922 tests afterward. Native worker/pipe suites passed 28 tests. The SDK failed-before diagnostics include one disclosed accidentally overwritten baseline stderr file; the independent complete baseline and successful fresh-build receipts remain intact.

Size excluding inherited main: runtime +2,677/−1,615 (net +1,062); tooling +140/−23; tests/support +4,691/−1,490; generated +2,507/−265; docs +63/−4; metadata +2/−3. Moves cancel in net. Runtime growth establishes closed identity/ingress ownership, honest versioned migration and stopped-writer maintenance, committed publication, and complete visibility-filtered person projection. Tooling growth isolates compiler lifetime and preserves generic wire-literal presence. This is not a net-neutral patch.

Limitations and follow-through

Signed-native-app UI proof remains infeasible: startup invokes host-global PortGuardian cleanup even in named profiles; available remote/direct rigs bypass the relevant process manager, and no approved pristine native environment was available. Native integration tests/product compilation are not represented as signed-app UI proof. No operator ledger, service, Keychain, unrelated VM, or sandbox boundary was changed to manufacture proof.

The lead personally inspected pinned Codex 90854393966b21e9ebfd21b122334eb09a20c93d: codex-rs/app-server/src/message_processor.rs:840–911,1288–1342, protocol v1.rs:27–79, v2/thread.rs:1362–1428,1514–1524,1681–1710, and the complete stdio transport. Codex plugin/native app-server production code is unchanged; synthetic peers are not live Codex proof. Slack/Teams/Discord qualification has owner tests, not live external-account transport proof.

Named separate follow-ups retain creator-role namespace cleanup, historical transcript sender provenance, shared-schema rollback admission, duplicate optimistic queued-message bubbles, and macOS canonical workspace alias rejection. The latter was observed in unchanged main-owned containment code; using the configured path spelling proved grouping without removing sandbox checks. The duplicate bubble remains UI-only: one persisted user event and participant contribution were verified.

ClawSweeper's current-head proof, description, and explicit migration-acceptance requests are addressed above. Exact-head CI is green; native review/prepare/merge completed without further source changes. The review checkout's missing parent does not reflect this branch: its real parent is c8ef48affeaa23a0db1eb02484d95eabf37959bb, with the complete seven-commit introduced delta measured against the base stated above. The original collision came from three-layer session ownership, authored and merged by @steipete; this repair is also authored by @steipete. AI-assisted implementation with independent Codex review. No release publication is included.

accepted-steering.mp4
genuine-provider.mp4

@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: msteams Channel integration: msteams channel: slack Channel integration: slack app: web-ui App: web-ui gateway Gateway runtime extensions: memory-core Extension: memory-core scripts Repository scripts commands Command implementations agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Aug 27, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 8:47 AM ET / 12:47 UTC.

ClawSweeper review

What this changes

Repairs session participant attribution by storing a closed identity namespace alongside each participant ID, preventing Activity from conflating IDs originating from different identity sources.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for maintainer review: current main still conflates participant identities with matching raw IDs, and the proposed persistence-owner repair is source-supported, but its schema-18 upgrade and deliberate older-reader refusal require explicit acceptance.

Priority: P1
Reviewed head: c348a862fb47ca4029e21a7efa0a415f7950c100
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The owner-boundary fix and submitted behavior evidence are strong; durable-data approval and incomplete local introduction evidence remain material review limits.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: The contributor is maintainer-associated and the supplied context includes detailed after-fix Gateway, browser, Doctor, and migration evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor is maintainer-associated and the supplied context includes detailed after-fix Gateway, browser, Doctor, and migration evidence.
Evidence reviewed 6 items Current-main defect: Current main finds an existing participant using actor type and raw actor ID, so distinct identity sources that share an ID can collapse into one persisted record.
Candidate owner-boundary repair: The candidate derives a canonical identity namespace and uses it in lookup and the SQLite conflict key, preserving distinct source identities before projection.
Durable migration and downgrade behavior: Schema-18 migration rebuilds participant rows under the new key, while schema validation rejects databases newer than the running binary target.
Findings None None.
Security None None.

How this fits together

Message ingress prepares a participant identity, then the session store records it in the agent SQLite database. Gateway projections read that state for Activity, session people, and owner views.

flowchart LR
A[Message ingress] --> B[Participant identity]
B --> C[Session SQLite state]
C --> D[Gateway session projection]
D --> E[Activity and owner views]
Loading

Decision needed

Question Recommendation
Do maintainers accept the schema-18 participant migration’s intentional older-binary refusal in exchange for correcting persisted participant identity collisions? Accept the guarded migration: Approve the upgrade after accepting the supplied stopped-writer, backup, migration, reopen, and older-reader-refusal evidence.

Why: This is a material per-agent SQLite contract change whose upgrade and downgrade semantics require maintainer intent.

Before merge

  • Resolve merge risk (P1) - Existing agent databases require a stopped-writer maintenance migration; after upgrade, an older binary intentionally refuses the schema-18 database.
  • Resolve merge risk (P1) - The complete PR introduction delta is unavailable locally, so review cannot attribute every candidate change or report an authoritative production/test LOC split.
  • Complete next step (P2) - Maintainer acceptance of the SQLite migration and downgrade contract is required before merge.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production versus test delta Not independently measurable: local PR head has no available parent A parentless local candidate object prevents a trustworthy introduced-diff classification.

Stored data model

Persistent data-model change detected: serialized state: extensions/memory-core/src/cli-index-search.runtime.ts, serialized state: extensions/memory-core/src/memory-forget-report.ts, serialized state: ui/src/components/session-hovercard.ts, serialized state: ui/src/components/session-leading-indicator.ts, serialized state: ui/src/components/session-owner-chip.ts, serialized state: ui/src/lib/sessions/catalog-project-grouping.ts, and 17 more. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #130661
Summary: This PR is the candidate repair for the canonical participant-misattribution report.

Members:

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

Merge-risk options

Maintainer options:

  1. Accept the guarded database upgrade (recommended)
    Land only if maintainers accept the documented writer-stop, backup, reopen, and older-reader-refusal behavior.
  2. Pause for a compatible upgrade path
    Keep this open if preserving older-binary database access outweighs the attribution repair.

Technical review

Best possible solution:

Accept the canonical namespaced-identity migration only after maintainers explicitly accept its durable-data and downgrade contract.

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

Yes—current main’s raw actor-type/ID lookup and the candidate’s namespace-keyed replacement establish a high-confidence source reproduction, although this read-only review did not execute it.

Is this the best way to solve the issue?

Yes—the persistence owner is the correct fix location because it prevents identity collisions before all downstream session projections consume the record.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 468054f93c43.

Labels

Label justifications:

  • P1: The current raw-ID key can misattribute session participants in Activity and session-person views.
  • merge-risk: 🚨 compatibility: Schema 18 intentionally changes the upgrade and downgrade contract for existing agent databases.
  • merge-risk: 🚨 session-state: The migration rebuilds persisted participant records used by session and Activity projections.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor is maintainer-associated and the supplied context includes detailed after-fix Gateway, browser, Doctor, and migration evidence.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Authored the merged three-layer session-ownership feature and the candidate head. (role: feature-history contributor; confidence: high; commits: 55ce95fac803; files: src/config/sessions/session-accessor.sqlite-participants.ts, src/state/openclaw-agent-db-schema.ts)
  • Vyctor H. Brzezowski: Git blame attributes the current-main raw-ID participant lookup to this commit. (role: current behavior author; confidence: medium; commits: a1782855a25a; files: src/config/sessions/session-accessor.sqlite-participants.ts)

Rank-up moves

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

  • Record maintainer acceptance of the schema-18 upgrade and intentional older-reader refusal.

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 (16 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-28T03:04:51.849Z sha 3470342 :: found issues before merge. :: [P1] Preserve optional acknowledgement omission in generated Swift
  • reviewed 2026-08-28T04:08:56.640Z sha 00bd5b0 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T05:00:20.479Z sha 00bd5b0 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T06:06:59.684Z sha fd8b200dee2aba633d4f1ed966032aab560d9181 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T06:45:04.472Z sha 08aeadd :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T07:55:52.586Z sha 1c22e6c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T11:08:34.804Z sha 263cb2b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T12:34:16.883Z sha c348a86 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/keen-jepsen-5573f5 branch from a924004 to 7f5dd2f Compare August 27, 2026 16:11
@steipete
steipete marked this pull request as ready for review August 27, 2026 16:14
@steipete
steipete requested a review from a team as a code owner August 27, 2026 16:14
@steipete
steipete force-pushed the steipete/keen-jepsen-5573f5 branch from 7f5dd2f to 089599a Compare August 27, 2026 18:37
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 27, 2026
@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: c348a862fb47ca4029e21a7efa0a415f7950c100

@steipete

Copy link
Copy Markdown
Contributor Author

Updated the repair to 089599a8825cd1091dcc295854a0c23936b05977 after reproducing the failures in CI run 33092218341 on its exact merge tree. The fixes cover generic Swift inline-union declaration ownership, omitted direct-dispatch client metadata, typed downstream fixtures, migration/temp guard contracts, and fixture-owned writer/maintenance lifetimes. No namespace, visibility, writer fence, assertion, corpus, timeout or performance budget was relaxed.

The final source passed 1,333 focused tests (one existing skip), 23 native Swift tests and iOS-target protocol compilation, the complete changed gate, aggregate protocol/schema/SDK/native/docs checks, full build, and the original built-CLI lifecycle. Fresh isolated Codex review covered the complete patch with no blocking findings. The PR body now contains the final source/artifact identities, inspected final-candidate captures/video, and a JSON live verdict.

The final real Gateway/Chromium replay verified namespace/time isolation, Activity beyond the avatar preview, exact same-run accepted steering, read-only visibility filtering, and a genuine OpenAI turn. Actual old-reader/backup/stopped-writer/migration/reopen proof passed. Actual Doctor exits were 0 for offline migration and 1 for held-writer and unregistered unknown-index refusals. The schema-18 upgrade safeguards and the separate global rollback limitation remain explicit. Exact-head CI and native prepare/merge are still required; this is not a merge claim.

The latest rank-up request is addressed by the retained exact-source upgrade matrix and will be reconfirmed after CI before landing. The lead has a usable main-relative comparison and verified that the initial repair tree exactly matched CI's synthetic merge, covering the prior review checkout's promisor/merge-base gap.

@clawsweeper re-review — the Swift generator and direct-dispatch repairs change behavior beyond the prior reviewed head.

@clawsweeper

clawsweeper Bot commented Aug 27, 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:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 27, 2026
Discover the current declaration source graph in a joined child before normal eager emission, and track its complete source-bearing cache inputs. Repair shared jsdom focus teardown and native worker fixture request ordering without changing UI focus ownership or execution fallback policy.
@steipete
steipete force-pushed the steipete/keen-jepsen-5573f5 branch from 263cb2b to c348a86 Compare August 28, 2026 12:24
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 28, 2026
@steipete
steipete merged commit b03d2e7 into main Aug 28, 2026
275 of 276 checks passed
@steipete
steipete deleted the steipete/keen-jepsen-5573f5 branch August 28, 2026 13:04
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
…aw#130986)

* fix(sessions): preserve participant identity and input provenance

Keep profile, agent, remote, observed, and legacy identities distinct in the existing participant table. Record accepted input at admission, including steering, instead of inferring a person from the session creator. Preserve historical membership and counts while leaving ambiguous profile timestamps unknown through stopped-writer Doctor migration.

Project full visibility-filtered person membership before preview limits so Activity does not misattribute channel identities or omit people outside the facepile. Keep participant membership separate from authorization and expose raw-selector ambiguity to memory operators.

Repair Doctor readiness reporting, generic Swift inline-union generation, direct-dispatch metadata handling, and fixture-owned database lifetimes. Verify namespace collisions, real provider input, accepted steering, visibility, backup/migration/reopen boundaries, native decoding, and the built-CLI lifecycle.

Fixes openclaw#130661

* fix(macos): isolate readiness and discovery lifecycles

Keep readiness fixtures private for their entire lifetime and give health readiness one deadline owner. Start and cancel slow host discovery with active discovery, not model construction.

Make native protocol, callback, onboarding, and process-cleanup tests observe their intended lifecycle phases without expanding deadlines or weakening assertions. Correct the documented signing default.

Validated with 1,839 parallel native tests, the release product build, causal negative controls, pinned Swift lint/format checks, and fresh isolated autoreview. Native production delta: -5 lines.

* docs(macos): clarify app profile isolation boundaries

* build(protocol): refresh generated Swift install models

* fix(protocol): preserve optional literal field presence

* fix(ci): bound SDK declarations and isolate test lifecycles

Discover the current declaration source graph in a joined child before normal eager emission, and track its complete source-bearing cache inputs. Repair shared jsdom focus teardown and native worker fixture request ordering without changing UI focus ownership or execution fallback policy.

* test(sessions): prove Goal participant upgrade boundaries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: macos App: macos app: web-ui App: web-ui channel: discord Channel integration: discord channel: msteams Channel integration: msteams channel: slack Channel integration: slack channel: telegram Channel integration: telegram commands Command implementations docs Improvements or additions to documentation extensions: memory-core Extension: memory-core gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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.

Session participant identity collisions corrupt attribution and activity history

1 participant