Skip to content

perf: load retained chat history faster - #133680

Merged
steipete merged 1 commit into
mainfrom
codex/history-profile-fourth-pass
Aug 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/history-profile-fourth-pass

Conversation

@steipete

@steipete steipete commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Related: #133635 (earlier chat-history preparation optimizations).

What Problem This Solves

Chat history can still pause while loading a large retained conversation after a session reset. Profiling showed the history reader issuing a separate payload query for each retained message and building large SQL binding lists for ordinary contiguous pages.

Why This Change Was Made

The reset-window owner now prepares one shared selection for payload reads and byte sizing: indexed range predicates for the contiguous tail, and batches of 500 exact retained positions after a reset. Exact positions preserve gaps where tool results were discarded. Both history paging and bounded-tail salvage use this selection, removing duplicated query construction and the expanded-position helper.

Byte selection still happens before payload materialization. Reset boundaries, logical ordinals, ordering, snapshot ownership, and sparse salvage remain intact. There are no schema, index, persistence, cache-lifetime, protocol, or page-size changes.

Production: +89/-113 (net -24 lines). Tests: +74/-17 (net +57 lines).

User Impact

Faster initial history loading and older-page loading after resets, with the same returned messages. Ordinary initial SQLite history reads also show a smaller improvement in paired measurements.

Evidence

Node 26.8.1 on macOS arm64, using real isolated SQLite through readChatHistoryPage. Each fixture contains 3,000 visible messages; reset fixtures add a reset marker, and the sparse fixture also contains 2,999 discarded orphan tool results. Five warmups and 30 measured rounds per scenario, with rotated scenario order. These are Gateway preparation timings, excluding serialization, fixture setup, assertions, network, and browser paint.

Fixture / request Before median After median Reduction
Rich reset history, initial 400 51.595 ms 17.631 ms 65.8%
Rich reset history, older 1,000 36.418 ms 11.891 ms 67.3%
Sparse reset history, initial 400 45.038 ms 19.589 ms 56.5%
Sparse reset history, older 1,000 34.423 ms 13.213 ms 61.6%

Sampled Kysely self time across each complete fixture profile fell from 4,025.6 to 80.8 ms for dense reset history and from 3,008.5 to 71.2 ms for sparse reset history. Row iteration and JSON parsing remain the dominant costs.

The separate-process short-message Gateway timings were noisy and sometimes slower (initial 400: 8.938 → 12.355 ms; repeat 11.192 ms), so this PR does not claim an overall short-message Gateway speedup. A follow-up paired test ran the original and refactored readers against the same database in one process, alternating order, with 20 warmups and 100 measured rounds per case. Initial SQLite reads improved 6.9–12.1%; the initial-400 reader measured 4.256 → 3.894 ms. All 600 paired results, including warmups, were identical without normalization.

Validation:

  • 69 tests passed across eight files, covering history paging, reset/compaction markers, archived reads, byte caps, excluded corrupt JSON, concurrent snapshots, sparse salvage, and 100,000-message bounded reads.
  • Both new binding-limit regression cases were run against the original production code and failed with too many SQL variables; both pass after the refactor. The sparse reset regression verifies 1,001 retained messages, discarded tool-result gaps, marker ordering, and an offset page across a batch boundary.
  • 25 pages / 13,500 returned messages compare deeply equal after normalizing only the per-database __openclaw.transcriptPosition.source. Source format and within-fixture consistency are checked before normalization; all other fields are compared. Requested counts and pagination totals are asserted during measurement.
  • Targeted type-aware lint, formatting, and independent Codex autoreview passed; the review used the configured P0 threshold and reported no accepted/actionable findings.
  • check:changed passed repository guards, formatting, export scans, plugin boundaries, and the core graph boundary. It stopped at six existing TS2339 errors in src/logging/logger.ts for tslog's attachTransport/settings declarations in the shared local dependency install. No changed-file type errors were reported; later gate stages, including core test typechecking, did not run.
node scripts/run-vitest.mjs \
  src/config/sessions/session-accessor.sqlite-history-events.test.ts \
  src/config/sessions/session-accessor.sqlite-active-events.test.ts \
  src/config/sessions/session-accessor.sqlite-byte-size.test.ts \
  src/config/sessions/session-accessor.sqlite-bounded-context.test.ts \
  src/gateway/session-transcript-readers.test.ts \
  src/gateway/session-transcript-readers.markers.test.ts \
  src/gateway/server-methods/chat-history-pages.test.ts \
  src/gateway/server-methods/chat-history-handler.test.ts

Browser-proof limitation: the local runtime/UI build remains blocked by the missing shiki/wasm module in the shared worktree dependency installation (rechecked during landing). Earlier build output also showed unresolved lit-html imports. No new browser capture or browser-paint measurement is claimed; the profiling exercises the real SQLite-to-Gateway history reader and verifies complete returned pages.

Measurements and the full test run used base cf25af4699bfcfdbebd0509b7756045767882714. The four changed files were verified byte-identical after rebasing onto current main. The history-event suite was rerun after rebase.

Reproduce the Gateway benchmark

Save the following temporary file as src/gateway/server-methods/chat-history-window.measurement.test.ts, run it on the baseline and candidate, then remove it. It writes Node CPU profiles and the complete synthetic message arrays. The timing excludes response serialization; serialization is measured separately.

OPENCLAW_HISTORY_PROFILE_OUTPUT=.artifacts/history-profile/<run> node scripts/run-vitest.mjs src/gateway/server-methods/chat-history-window.measurement.test.ts
import { createHash } from "node:crypto";
import { mkdir, writeFile } from "node:fs/promises";
import { Session } from "node:inspector/promises";
// Temporary measurement harness; remove after recording the benchmark results.
import path from "node:path";
import { performance } from "node:perf_hooks";
import { expect, test } from "vitest";
import { INBOUND_CONTEXT_MARKER } from "../../auto-reply/reply/inbound-context-marker.js";
import {
  appendTranscriptEvent,
  persistSessionTranscriptTurn,
  upsertSessionEntryCore,
} from "../../config/sessions/session-accessor.js";
import { withStateDirEnv } from "../../test-helpers/state-dir-env.js";
import { getMaxChatHistoryMessagesBytes } from "../server-constants.js";
import { readChatHistoryPage } from "./chat-history-pages.js";

const WINDOW_SIZES = [100, 200, 400, 1000];
const SCENARIOS = [
  ...WINDOW_SIZES.map((limit) => ({ name: `initial-${limit}`, limit, offset: undefined })),
  { name: "older-1000", limit: 1000, offset: 1000 },
];
const TRANSCRIPT_MESSAGES = 3000;
const WARMUP_ROUNDS = 5;
const MEASUREMENT_ROUNDS = 30;

function summarize(samples: number[]) {
  const sorted = samples.toSorted((left, right) => left - right);
  const rounded = (value: number) => Math.round(value * 1000) / 1000;
  return {
    median: rounded(sorted[Math.floor(sorted.length / 2)]!),
    p95: rounded(sorted[Math.ceil(sorted.length * 0.95) - 1]!),
    min: rounded(sorted[0]!),
    max: rounded(sorted.at(-1)!),
  };
}

test("measures indexed initial history windows with real SQLite projection", async () => {
  await withStateDirEnv("openclaw-history-window-measurement-", async ({ stateDir }) => {
    for (const fixture of [
      { name: "short", textChars: 128, metadata: false },
      { name: "rich", textChars: 2048, metadata: false },
      { name: "metadata", textChars: 2048, metadata: true },
      { name: "reset-rich", textChars: 2048, metadata: false },
      { name: "reset-sparse", textChars: 2048, metadata: false },
    ]) {
      const sessionId = `history-window-${fixture.name}`;
      const sessionKey = `agent:main:${sessionId}`;
      const storePath = path.join(stateDir, "agents", "main", "sessions", "sessions.json");
      const scope = { agentId: "main", sessionId, sessionKey, storePath };
      const entry = { sessionId, updatedAt: 1_780_000_000_000 };
      await upsertSessionEntryCore(scope, entry);
      const paragraph =
        "## Synthetic benchmark\n\nThe session stores a bounded history page. " +
        "**Visible output** includes ordinary markdown, a [documentation link](https://example.com), " +
        "and a short `code` span.\n\n- First step\n- Second step\n\n";
      const text = paragraph
        .repeat(Math.ceil(fixture.textChars / paragraph.length))
        .slice(0, fixture.textChars);
      const written = await persistSessionTranscriptTurn(scope, {
        expectedSessionId: sessionId,
        messages: Array.from({ length: TRANSCRIPT_MESSAGES }, (_, index) => ({
          eventId: `window-${fixture.name}-${index}`,
          parentId:
            index === 0
              ? null
              : fixture.name === "reset-sparse"
                ? `tool-${index - 1}`
                : `window-${fixture.name}-${index - 1}`,
          message: {
            role: index % 2 === 0 ? "user" : "assistant",
            content: [
              {
                type: "text",
                text:
                  (fixture.metadata && index % 2 === 0
                    ? `Conversation info: ${INBOUND_CONTEXT_MARKER}\n\`\`\`json\n{"topic":"synthetic"}\n\`\`\`\n\n`
                    : "") + `Message ${index}: ${text}`,
              },
            ],
            timestamp: entry.updatedAt + index,
          },
          now: entry.updatedAt + index,
        })).flatMap((message, index) =>
          fixture.name !== "reset-sparse" || index === TRANSCRIPT_MESSAGES - 1
            ? [message]
            : [
                message,
                {
                  eventId: `tool-${index}`,
                  parentId: message.eventId,
                  message: {
                    role: "toolResult",
                    content: [{ type: "text", text: "hidden orphan tool result" }],
                    timestamp: entry.updatedAt + index,
                  },
                  now: entry.updatedAt + index,
                },
              ],
        ),
        touchSessionEntry: false,
        updateMode: "none",
      });
      expect(written.appendedCount).toBe(
        TRANSCRIPT_MESSAGES + (fixture.name === "reset-sparse" ? TRANSCRIPT_MESSAGES - 1 : 0),
      );
      if (fixture.name.startsWith("reset-")) {
        await appendTranscriptEvent(scope, {
          type: "reset",
          id: "reset-boundary",
          parentId: `window-${fixture.name}-2999`,
          timestamp: "2026-08-30T00:00:00.000Z",
          reason: "new",
          firstKeptEntryId: `window-${fixture.name}-0`,
        });
      }
      const profiler = new Session();
      profiler.connect();
      await profiler.post("Profiler.enable");
      await profiler.post("Profiler.start");
      const samples = new Map(
        SCENARIOS.map((scenario) => [
          scenario.name,
          { readMs: [] as number[], jsonMs: [] as number[], bytes: 0, sha256: "", payload: "" },
        ]),
      );
      for (let round = 0; round < WARMUP_ROUNDS + MEASUREMENT_ROUNDS; round++) {
        // Rotate the order so the largest window does not always inherit the same cache order.
        const rotation = round % SCENARIOS.length;
        const scenarios = [...SCENARIOS.slice(rotation), ...SCENARIOS.slice(0, rotation)];
        for (const scenario of scenarios) {
          const { limit, offset } = scenario;
          const start = performance.now();
          const page = await readChatHistoryPage({
            entry,
            provider: undefined,
            sessionId,
            storePath,
            sessionAgentId: "main",
            canonicalKey: sessionKey,
            max: limit,
            maxHistoryBytes: getMaxChatHistoryMessagesBytes(),
            effectiveMaxChars: 12_000,
            offset,
            messageId: undefined,
          });
          const readMs = performance.now() - start;
          const serializeStart = performance.now();
          const serialized = JSON.stringify(page.messages);
          const jsonMs = performance.now() - serializeStart;
          expect(page.messages).toHaveLength(limit);
          expect(page.pagination?.totalMessages).toBe(
            TRANSCRIPT_MESSAGES + (fixture.name.startsWith("reset-") ? 1 : 0),
          );
          expect(serialized).toContain(`Message ${TRANSCRIPT_MESSAGES - 1 - (offset ?? 0)}:`);
          expect(serialized).not.toContain(INBOUND_CONTEXT_MARKER);
          if (round >= WARMUP_ROUNDS) {
            const sample = samples.get(scenario.name)!;
            sample.readMs.push(readMs);
            sample.jsonMs.push(jsonMs);
            sample.payload = serialized;
            sample.bytes = Buffer.byteLength(serialized, "utf8");
            sample.sha256 = createHash("sha256").update(serialized).digest("hex");
          }
        }
      }
      const { profile } = await profiler.post("Profiler.stop");
      profiler.disconnect();
      const profileDir =
        process.env.OPENCLAW_HISTORY_PROFILE_OUTPUT ??
        ".artifacts/control-ui-e2e/history-window-perf/node-before";
      await mkdir(profileDir, { recursive: true });
      await writeFile(path.join(profileDir, `${fixture.name}.cpuprofile`), JSON.stringify(profile));
      for (const scenario of SCENARIOS) {
        const sample = samples.get(scenario.name)!;
        await writeFile(
          path.join(profileDir, `${fixture.name}-${scenario.name}.json`),
          sample.payload,
        );
        console.log(
          "HISTORY_WINDOW_MEASUREMENT=" +
            JSON.stringify({
              fixture: fixture.name,
              textChars: fixture.textChars,
              transcriptMessages: TRANSCRIPT_MESSAGES,
              scenario: scenario.name,
              limit: scenario.limit,
              warmups: WARMUP_ROUNDS,
              iterations: MEASUREMENT_ROUNDS,
              messageJsonBytes: sample.bytes,
              messageJsonSha256: sample.sha256,
              readPageMs: summarize(sample.readMs),
              serializeMs: summarize(sample.jsonMs),
            }),
        );
      }
    }
  });
}, 180_000);

@clawsweeper

clawsweeper Bot commented Aug 31, 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 size: M maintainer Maintainer-authored PR labels Aug 31, 2026
@steipete
steipete marked this pull request as ready for review August 31, 2026 01:07
@steipete steipete self-assigned this Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 9:21 PM ET / August 31, 2026, 01:21 UTC.

ClawSweeper review

What this changes

The PR replaces per-message SQLite history queries with shared range queries and batched sparse-position reads for retained chat-history pages.

Merge readiness

✅ Ready for maintainer review

Keep open for normal maintainer review. The shared selection owner preserves reset-aware logical ordering and sparse retained positions, while focused regressions cover binding limits and discarded tool-result gaps; no introduced blocking defect was found.

Priority: P3
Reviewed head: 6327e0cfaeb77cc4d165d2915866d1bf22b3cd3a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused owner-boundary refactor with credible production-path SQLite evidence and targeted reset-history regressions.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The supplied after-fix evidence reports real isolated-SQLite Gateway history reads through readChatHistoryPage, including dense and sparse reset histories with identical returned pages and improved measured preparation time; source inspection connects that entrypoint to the changed selection owner.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The supplied after-fix evidence reports real isolated-SQLite Gateway history reads through readChatHistoryPage, including dense and sparse reset histories with identical returned pages and improved measured preparation time; source inspection connects that entrypoint to the changed selection owner.
Evidence reviewed 6 items Shared owner boundary: The introduced selector partitions retained pre-reset positions into 500-item batches and uses a range predicate for the contiguous post-reset tail; both payload and metadata readers consume that same selection.
Caller and snapshot boundary: Gateway history loading reaches the changed reader through the incremental history tail, while the projection wrapper performs all reads under one deferred SQLite snapshot.
Regression coverage: New tests enforce a low SQLite-variable limit for contiguous reads and verify 1,001 reset-retained messages, discarded tool-result gaps, marker ordering, and an offset page across a batch boundary.
Findings None None.
Security None None.

How this fits together

Gateway chat-history requests read a session’s SQLite transcript projection and return reset-aware message pages to chat clients. The change centralizes selection of visible message rows for both payload loading and byte-budget calculation.

flowchart LR
  A[Chat history request] --> B[Gateway history reader]
  B --> C[Transcript projection]
  C --> D[Visible message selection]
  D --> E[SQLite event rows]
  E --> F[Bounded history page]
  F --> G[Chat client]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -24, Tests +57. Total +33 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 3 89 113 -24
Tests 1 74 17 +57
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 163 130 +33

Review metrics

Metric Value Why it matters
Production versus tests production -24 net (+89/-113); tests +57 net (+74/-17) The refactor removes duplicated query construction while adding focused regression coverage for SQLite binding limits and sparse reset history.

Stored data model

Persistent data-model change detected: vector/embedding metadata: src/config/sessions/session-accessor.sqlite-active-events.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Retain the single reset-window selection owner and land after normal maintainer review and exact-head CI confirm the existing history-page invariants.

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

Yes, source-reproducible: the changed path runs from Gateway history paging through the SQLite projection reader, and the supplied evidence exercises real isolated SQLite with contiguous and sparse reset histories. This read-only review did not execute the benchmark.

Is this the best way to solve the issue?

Yes. Centralizing both payload and byte-metadata selection in the reset-window owner removes the per-message query pattern without duplicating reset-position policy in its callers.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a bounded performance improvement with no confirmed user-facing regression.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The supplied after-fix evidence reports real isolated-SQLite Gateway history reads through readChatHistoryPage, including dense and sparse reset histories with identical returned pages and improved measured preparation time; source inspection connects that entrypoint to the changed selection owner.
  • 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. Sufficient (live_output): The supplied after-fix evidence reports real isolated-SQLite Gateway history reads through readChatHistoryPage, including dense and sparse reset histories with identical returned pages and improved measured preparation time; source inspection connects that entrypoint to the changed selection owner.

Label justifications:

  • P3: This is a bounded performance improvement with no confirmed user-facing regression.
  • 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. Sufficient (live_output): The supplied after-fix evidence reports real isolated-SQLite Gateway history reads through readChatHistoryPage, including dense and sparse reset histories with identical returned pages and improved measured preparation time; source inspection connects that entrypoint to the changed selection owner.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied after-fix evidence reports real isolated-SQLite Gateway history reads through readChatHistoryPage, including dense and sparse reset histories with identical returned pages and improved measured preparation time; source inspection connects that entrypoint to the changed selection owner.

Evidence

What I checked:

Likely related people:

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

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 (1 earlier review cycle)
  • reviewed 2026-08-31T01:13:53.464Z sha 6327e0c :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Landing review for the verified source commit.

The root cause was repeated query construction at the reset-window owner: retained payloads used one query per message, and metadata built large position-binding lists. The shared selector now uses the existing index for contiguous tails and batches of 500 exact retained positions for reset history. Metadata sizing and payload reads use the same selection, preserving discarded tool-result gaps, logical ordering, reset/compaction markers, byte limits and snapshot ownership. The expanded-position helper and duplicate metadata query paths are removed. Production delta is -24 lines; tests are +57 lines. No schema, index, persistence, configuration or protocol changes.

The recorded Node profiles exercise real isolated SQLite through readChatHistoryPage: dense reset initial-400 median 51.595 → 17.631 ms, older-1000 36.418 → 11.891 ms; sparse reset initial-400 45.038 → 19.589 ms, older-1000 34.423 → 13.213 ms. Complete output comparisons cover 25 pages / 13,500 messages, normalizing only the database-specific display source. The same-process old/new reader check preserved all 600 page pairs without normalization. Short-message whole-Gateway timing remains noisy; no overall improvement is claimed for that fixture.

69 tests passed across eight owner/Gateway files, with the seven history-event tests rerun after rebase on the published head. Both added binding-limit regressions failed on the original code with too many SQL variables and pass with this fix. Sibling proof includes bounded salvage, byte limits, excluded corrupt JSON, archived reads, markers, concurrent snapshots and 100,000-message bounded reads. Exact local test command:

node scripts/run-vitest.mjs \
  src/config/sessions/session-accessor.sqlite-history-events.test.ts \
  src/config/sessions/session-accessor.sqlite-active-events.test.ts \
  src/config/sessions/session-accessor.sqlite-byte-size.test.ts \
  src/config/sessions/session-accessor.sqlite-bounded-context.test.ts \
  src/gateway/session-transcript-readers.test.ts \
  src/gateway/session-transcript-readers.markers.test.ts \
  src/gateway/server-methods/chat-history-pages.test.ts \
  src/gateway/server-methods/chat-history-handler.test.ts

Targeted type-aware lint and formatting passed. A fresh independent Codex commit review reported no accepted/actionable findings at the configured P0 threshold. Direct contract inspection included Kysely immutable query builders, the existing active-message index, deferred snapshot ownership and sibling Codex codex-rs/protocol/src/models.rs:853,909,985; message content/phase interpretation is unchanged.

Local proof limitations remain explicit: the full changed gate encountered six existing logger.ts/tslog declaration errors in the shared dependency installation, and the local runtime/UI build still cannot resolve shiki/wasm. Hosted candidate production/test typechecks passed. No new browser capture or browser-paint measurement is claimed. The PR body contains the reproducible synthetic benchmark harness and the complete measurement caveats.

The ClawSweeper review found no actionable correctness or security defect and requested normal maintainer review plus exact-head CI. Maintainer source/owner review and fresh Codex review are complete. Its automated “vector/embedding metadata” data-model notice is a false positive: session-accessor.sqlite-active-events.ts changes only the bounded-tail read query and scanned-count calculation; no schema, vector/embedding column, write, migration, index or persisted representation changes. Migration/upgrade proof is therefore not applicable. No additional Rank-up move was listed.

Exact-head CI is complete and green: CI run 33346590883, attempt 1, source 6327e0cfaeb77cc4d165d2915866d1bf22b3cd3a. All required checks passed, including hosted production/test types, lint, owner boundaries and the SQLite lifecycle lane. Proceeding through the repository-native prepare/merge workflow.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Aug 31, 2026
@steipete
steipete merged commit 5de1376 into main Aug 31, 2026
313 checks passed
@steipete
steipete deleted the codex/history-profile-fourth-pass branch August 31, 2026 01:27
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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.

1 participant