Skip to content

feat(harness): inspect exact saved Assistant history [SAP-3292] - #1007

Closed
ynadge wants to merge 1 commit into
assistant-continuation-brieffrom
assistant-history-inspection
Closed

ynadge wants to merge 1 commit into
assistant-continuation-brieffrom
assistant-history-inspection

Conversation

@ynadge

@ynadge ynadge commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Primary change type

  • Feature

Problem and motivation

A retained public record does not prove the original native conversation or its execution context is available. Checking one history entry must not create a replacement conversation or interfere with End or an already running Assistant.

Summary and scope

Add exact-bound, bounded native inspection and an exclusive lifecycle inspection slot. Reuse a running host or own and retire a provisional host, validate saved context with the shared zero-dispatch delivery preflight, and return distinct native-history/execution availability. Fence late host-start rejection so it cannot retire a replacement generation. Add a pending-child attach gate for the subsequent Continue consumer.

Related work

Related issue: https://linear.app/sapiom/issue/SAP-3292

Depends on #1006. Native stack target: main. Public action routes and Resume consume this core in following increments.

Validation

Native inspection, lifecycle, host and End suites — 118 passed
pnpm --filter @sapiom/harness exec tsc --noEmit — passed
pnpm --filter @sapiom/harness build:server — passed
Scoped ESLint and git diff --check — passed
Stale-host generation guard mutation — failed as expected, restored and passed

Tests and documentation

Tests cover exact identity, native 404 versus transport failure, missing original context, empty history, current authority, End and concurrent attach, ignored cancellation, bounded streaming/startup/cleanup, and existing-host preservation. Updated assistant-history.md. Increment:838 changed lines including tests/docs/changeset; pr:size is absent.

Compatibility and release impact

  • Breaking or externally visible changes: additive inspection primitive; metadata history stays free of native IO.
  • Changeset: added for @sapiom/harness.
  • Fix-forward: correct exact-host and availability checks while preserving saved associations and retained records.

Security

  • No secrets, credentials, private data, or unsanitized logs included.
  • No suspected vulnerability disclosed publicly.

AI assistance

  • AI assistance used: Codex implemented inspection and race tests; root reviewed provisional ownership, authority and shared-delivery boundaries and verified typecheck/build.

Checklist

  • CONTRIBUTING.md read; maintainer-authorized issue work.
  • One focused increment, tests, relevant checks, documentation, and release impact addressed above.
  • I can explain and maintain the submitted changes.

Devin Review

@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: bd86eabd-9d2f-494a-8b84-59e36dfbe161

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant