Skip to content

SDK provenance context primitives across CLI, MCP, and event streams - #874

Merged
unbraind merged 5 commits into
mainfrom
feature/provenance-context-contracts
Aug 3, 2026
Merged

unbraind merged 5 commits into
mainfrom
feature/provenance-context-contracts

Conversation

@unbraind

@unbraind unbraind commented Aug 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • add bounded automatic model/version resolvers with privacy-safe opt-outs and extensible SDK descriptors
  • add versioned legacy-author interpretation plus patch-free provenance projections, filters, and bounded summaries across history, activity, and mutation events
  • keep SDK, CLI, MCP, completions, settings, generated contracts, and documentation aligned
  • add focused and end-to-end coverage while preserving exact repository-wide 100/100/100/100

PM lineage

Verification

  • pnpm typecheck and pnpm lint
  • 422 files and 6,747 tests at exact 100% statements/branches/functions/lines
  • pm-changelog 2026.8.2 check unchanged
  • isolated packed npm/SDK and Bun/bunx acceptance
  • packed-consumer npm audit: 0 vulnerabilities across 64 packages
  • GitHub Dependabot, CodeQL, and secret-scanning open alerts: 0

Summary by Sourcery

Introduce shared SDK/CLI/MCP primitives for immutable, patch-free provenance context across history, activity, and mutation event streams, backed by bounded automatic probes, versioned legacy author interpretation, and extended indexing and filtering.

New Features:

  • Add patch-free provenance projections, filters, and bounded summaries for history, activity, and mutation event streams across SDK, CLI, and MCP.
  • Introduce automatic, bounded provenance probes (including harness session file resolvers and version extraction) with privacy-safe opt-outs and workspace identity vocabulary for legacy authors.

Bug Fixes:

  • Treat provenance, compact, and full projections as mutually exclusive in history, activity, and events, and enforce CLI constraints such as disallowing provenance summaries while following event streams.

Enhancements:

  • Extend the history event index schema and queries to support harness, agent instance, and provenance-based filtering without scanning raw history streams.
  • Align CLI flags, completion scripts, tool schemas, and parameter metadata with new provenance options for history, activity, and events.
  • Refine agent identity and settings handling to support probe configuration, identity vocabulary, and ordered serialization of agent_identity settings sections.

Tests:

  • Add focused unit tests for provenance probes, history/activity/events provenance projections and filters, CLI option normalization and mapping, completion flag coverage, and updated settings and provenance coverage analysis.

Summary by cubic

Adds patch-free provenance reads and filtering across history, activity, and events, powered by bounded probes and a versioned legacy-author vocabulary to make identity readable and safe. CLI, SDK, and MCP share the same provenance options, with privacy opt-outs and constant-size summaries.

  • New Features

    • Patch-free provenance projections for history/activity/events, plus optional summaries; filter by harness, agent_instance, and provenance dimensions; resolve legacy authors via a versioned vocabulary.
    • Bounded provenance probes (model, version) with opt-out via settings; new agent_identity.probes_enabled and agent_identity.identity_vocabulary { version, aliases }.
    • Event index v2 adds harness, alias author, agent_instance, and provenance-dimension filtering without scanning raw streams; CLI/MCP/SDK schemas and completion scripts updated with repeatable --provenance, --provenance-summary, --harness, --agent-instance, and --provenance-filter.
  • Bug Fixes

    • Treat compact, full, and provenance projections as mutually exclusive and enforce CLI constraints (e.g., no provenance summaries while streaming events).
    • Update docs to link provenance items at canonical paths and record exact-head review evidence.
    • Add explicit provenance errors (invalid_provenance_predicate, unknown_provenance_dimension) and refresh public surface and token baselines.

Written for commit 3e742d4. Summary will update on new commits.

Review in cubic

Add bounded automatic model and version resolvers, versioned legacy author interpretation, and patch-free provenance projections across history, activity, events, SDK, CLI, MCP, and completions. Extend settings and generated contracts, document privacy and extensibility guarantees, and prove the tranche with exact 100% repository coverage plus isolated npm and Bun consumers.\n\nTracks pm-ffz0a9, pm-v8gfi7, and pm-3yxwv5.
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @unbraind, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@unbraind

unbraind commented Aug 3, 2026

Copy link
Copy Markdown
Owner Author

@greptileai please review the full provenance context tranche. @coderabbitai full review

@sourcery-ai

sourcery-ai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Reviewer's Guide

Adds bounded, patch-free provenance projections and filters across history, activity, and mutation event streams, introduces automatic model/version resolvers with privacy-safe opt-outs, and wires these primitives consistently through CLI, SDK, MCP, settings, completion, contracts, and documentation.

File-Level Changes

Change Details Files
Add patch-free provenance projections, filters, and summaries for history, activity, and mutation event streams, including legacy author vocabulary interpretation.
  • Introduce sdk/history-provenance module with projection, filter compilation, dimension resolution, and bounded summary primitives.
  • Extend HistoryCommandOptions, ActivityCommandOptions, and MutationEvent/ListMutationEventsOptions with provenance-related flags (provenance, provenanceSummary, harness, agentInstance, provenanceFilter).
  • Wire provenance projections into runHistory, runActivity, and listMutationEvents, including projection modes, row keys, omission receipts, and provenance_summary aggregation.
  • Enforce mutual exclusivity between compact/full/provenance projections in history, activity, and mutation events APIs and CLI commands.
  • Update event-index schema and queries to store and filter agent_harness, agent_instance, and provenance JSON fields without scanning raw history streams.
src/sdk/history-provenance.ts
src/sdk/query/history.ts
src/sdk/query/activity.ts
src/sdk/mutation-events.ts
src/core/history/event-index.ts
src/sdk/output-projection.ts
tests/unit/sdk/history-provenance.spec.ts
tests/unit/sdk/mutation-events.spec.ts
tests/unit/commands/history-activity-command.spec.ts
Enhance agent identity and provenance detection with bounded local resolvers, versioned legacy identity vocabulary, and workspace-level probe control.
  • Extend AGENT_PROVENANCE_DIMENSIONS to include version and add AgentProvenanceResolver type with ai_agent_version and claude_session_file resolvers.
  • Implement bounded session-file probing for Claude (model/version) and AI_AGENT version parsing with strict limits and privacy-safe behavior.
  • Add probes_enabled to HarnessDetectionSignals and workspace harness signals; propagate through runWithWorkspaceHarnessSignalDescriptors and CLI/MCP entrypoints.
  • Extend settings schema and PmSettings.agent_identity with probes_enabled and identity_vocabulary (version, aliases), and wire defaults and serialization ordering.
  • Update detectAgentIdentity tests to cover session-file probing, probe disabling, invalid/missing paths, and AI_AGENT version extraction.
  • Ensure descriptor coverage analysis accounts for provenance_resolvers when marking dimensions as covered.
src/core/shared/author.ts
src/core/store/settings-validator.ts
src/core/store/settings.ts
src/core/shared/constants.ts
src/mcp/server.ts
src/cli/main.ts
src/sdk/provenance.ts
src/types.ts
tests/unit/sdk/agent-runtime-primitives.spec.ts
tests/unit/sdk/provenance.spec.ts
tests/unit/core/store/settings-store.spec.ts
Expose provenance controls and projections consistently through CLI commands, completion scripts, MCP tool schema/contracts, and SDK public surface.
  • Add --provenance, --provenance-summary, --harness, --agent-instance, and --provenance-filter options to history, events, and activity commands and normalize them for SDK/runtime calls.
  • Extend CLI flag contracts, tool-option contracts, parameter tables, and tool schemas to support provenance-related parameters for activity, events, and history.
  • Update runtime-extended events action, registration helpers, and list-query command wiring to pass provenance options through to SDK and enforce bounded provenance-summary behavior with --follow.
  • Expand bash/zsh/fish completion scripts to include new provenance flags and ensure shared contracts generate correct flag sets.
  • Export HISTORY_FLAG_CONTRACTS and EVENTS_FLAG_CONTRACTS from SDK and update completion generation tests and fixtures.
  • Update SDK public surface JSON and contract fixtures to include new provenance primitives.
src/cli/register-list-query.ts
src/sdk/completion.ts
src/sdk/cli-contracts/flag-contracts.ts
src/sdk/cli-contracts/tool-option-contracts.ts
src/sdk/cli-contracts/tool-parameter-tables.ts
src/sdk/cli-contracts/tool-schema.ts
src/sdk/cli-contracts/registration-helpers.ts
src/sdk/runtime-extended-actions.ts
src/sdk/index.ts
src/sdk/cli-contracts.ts
tests/unit/cli/register-list-query.spec.ts
tests/unit/commands/completion-command.spec.ts
tests/unit/cli/registration-helpers.spec.ts
tests/fixtures/contracts/full.json
sdk/public-surface.json
Update documentation and PM lineage artifacts to describe new provenance capabilities, bounded probes, and historical context projections.
  • Amend AGENT_RUNTIME_PRIMITIVES and AGENT_PROVENANCE_ADR docs to cover automatic bounded probes, versioned legacy identity vocabulary, patch-free historical provenance reads, and shared CLI examples.
  • Add new PM issues/history entries for pm-ffz0a9, pm-v8gfi7, pm-3yxwv5, and follow-up chore pm-yds9dt, including JSONL history artifacts.
  • Ensure docs reference new PM lineage IDs introduced by this change set.
docs/AGENT_RUNTIME_PRIMITIVES.md
docs/AGENT_PROVENANCE_ADR.md
.agents/pm/issues/pm-ffz0a9.toon
.agents/pm/issues/pm-v8gfi7.toon
.agents/pm/issues/pm-3yxwv5.toon
.agents/pm/chores/pm-yds9dt.toon
.agents/pm/history/pm-ffz0a9.jsonl
.agents/pm/history/pm-v8gfi7.jsonl
.agents/pm/history/pm-3yxwv5.jsonl
.agents/pm/history/pm-yds9dt.jsonl

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added provenance views and summaries for history, activity, and events.
    • Added filtering by harness, agent instance, and provenance dimensions such as model and version.
    • Added bounded agent version detection with configurable probe controls.
    • Added versioned legacy-author alias support while preserving original history.
    • Added SDK and MCP support for provenance projections and filters.
  • Documentation
    • Updated provenance and runtime guidance, including configuration and CLI contracts.
  • Tests
    • Expanded coverage for projections, filtering, summaries, probes, aliases, and CLI completions.

Walkthrough

This change adds bounded agent provenance probes, versioned legacy-author vocabulary, immutable provenance projections, filtering, and summaries across the SDK, CLI, MCP, settings, and event index.

Changes

Agent provenance and configuration

Layer / File(s) Summary
Settings and bounded probe resolution
src/core/shared/author.ts, src/core/store/*, src/types.ts, src/cli/main.ts, src/mcp/server.ts
Agent identity settings now support probe enablement, versioned aliases, and bounded model/version resolvers.
Provenance projection and matching
src/sdk/history-provenance.ts, src/sdk/query/*, src/sdk/output-projection.ts
The SDK adds immutable provenance rows, exact filters, vocabulary resolution, dimension discovery, and completeness summaries.
Indexed event queries
src/core/history/event-index.ts, src/sdk/mutation-events.ts
Mutation-event queries now store and filter harness and instance data, apply provenance predicates, and return provenance projections or summaries.
CLI, tool, and public contracts
src/cli/register-list-query.ts, src/sdk/cli-contracts/*, src/sdk/completion.ts, tests/fixtures/contracts/full.json
History, activity, and events expose provenance flags, filters, schemas, completions, and projection contracts.
Documentation and validation
docs/*, tests/unit/*
Documentation and tests cover probe bounds, settings persistence, provenance behavior, legacy aliases, CLI wiring, MCP output, and event indexing.

Estimated code review effort: 4 (Complex) | ~60 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 40.91% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main change: SDK provenance primitives across CLI, MCP, and event streams.
Description check ✅ Passed The description directly explains the provenance features, supported interfaces, configuration, testing, and verification in the changeset.
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch

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.

@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

@unbraind I will perform a full review of the provenance context changes in #874.

✅ Action performed

Full review finished.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 59 minutes.

@codspeed

codspeed Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 11 untouched benchmarks


Comparing feature/provenance-context-contracts (3e742d4) with main (1c97c2d)

Open in CodSpeed

@unbraind

unbraind commented Aug 3, 2026

Copy link
Copy Markdown
Owner Author

@greptileai please re-review exact head 54cf280 after the canonical PM documentation-link fix. @coderabbitai full review

@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

@unbraind I will perform a full review of #874 at head 54cf2808a, including the canonical PM documentation-link fix.

✅ Action performed

Full review finished.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 56 minutes.

@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@unbraind

unbraind commented Aug 3, 2026

Copy link
Copy Markdown
Owner Author

@greptileai please re-review exact head 89ffbde. @coderabbitai full review

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
src/core/store/settings.ts (1)

1146-1159: 🩺 Stability & Availability | 🔴 Critical | ⚡ Quick win

Backfill missing agent_identity fields from defaults in mergeSettings.

agent_identity is currently either the full parsed object or the full default object, so a sparse settings.json that keeps only agent_identity.harness_signals drops identity_vocabulary and probes_enabled. pm activity, pm history, and the mutation-events SDK then access agent_identity.identity_vocabulary! before fallback handling and can throw.

🐛 Proposed fix: backfill agent_identity sub-fields from defaults
-    agent_identity: structuredClone(
-      settings.agent_identity ?? defaults.agent_identity,
-    ),
+    agent_identity: structuredClone({
+      ...defaults.agent_identity,
+      ...settings.agent_identity,
+    }),
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/core/store/settings.ts` around lines 1146 - 1159, Update mergeSettings to
merge agent_identity fields with defaults rather than replacing the entire
object when settings.agent_identity is sparse. Preserve explicitly provided
agent_identity values while backfilling missing identity_vocabulary and
probes_enabled fields from defaults before cloning the result.
src/core/shared/author.ts (1)

562-597: 🚀 Performance & Scalability | 🟠 Major | ⚡ Quick win

Avoid unconditional probe execution in provenance candidate resolution.

resolveAgentProvenanceObservation evaluates every candidate in the values array, so resolveProvenanceProbe(dimension, …) runs even when an earlier source already resolved overrideValue, session, environment, MCP client, host, or argv. For Claude, both model and version use the claude_session_file resolver, so the synchronous session-file I/O in readClaudeSessionProvenance can execute repeatedly despite being a later fallback source. Convert this to short-circuiting candidate resolution so later sources run only when no earlier candidate returned a value.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/core/shared/author.ts` around lines 562 - 597, Update
resolveAgentProvenanceObservation so candidate sources are evaluated lazily in
priority order rather than precomputing the values array. Preserve the existing
precedence from override through argv, and invoke resolveProvenanceProbe only if
all earlier sources return undefined, preventing unnecessary claude_session_file
I/O.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/AGENT_PROVENANCE_ADR.md`:
- Around line 27-28: Update the compatibility documentation to cover the new
dimensions: in docs/AGENT_PROVENANCE_ADR.md at Lines 74-75, add topic: null and
version: null to the compatibility example or document an intentional exception;
in docs/AGENT_RUNTIME_PRIMITIVES.md at Lines 93-95, add version to the
explicit-null statement or document an intentional exception.

In `@src/core/history/event-index.ts`:
- Around line 346-350: Update the provenance clause construction around
query.provenance to validate each predicate.dimension against the shared
provenance dimension set before building SQL. Bind the complete agent_provenance
JSON path as the first parameter to json_extract instead of interpolating the
dimension, then append predicate.values after that path parameter while
preserving the existing IN placeholders.

In `@src/sdk/completion.ts`:
- Around line 1362-1371: Add the missing --strict-exit, --fail-on-warn, and
--format entries to the manual Zsh history completion block in
src/sdk/completion.ts at lines 1362-1371 and the manual Fish history completion
block at lines 2501-2508, matching the definitions in HISTORY_FLAG_CONTRACTS and
preserving each shell’s existing completion syntax.

In `@src/sdk/query/history.ts`:
- Around line 222-233: Update the compact history flow to preserve each entry’s
original version when provenance filters are applied. Change buildDiffEntries to
accept entries containing both entry and version, use version for each
HistoryDiffEntry.index, and pass selectedHistory directly from the
compactHistory construction instead of deriving a length-based start index;
leave non-compact behavior unchanged.

In `@src/types.ts`:
- Around line 1264-1272: Normalize optional agent_identity provenance fields
before use: ensure identity_vocabulary falls back to
DEFAULT_AUTHOR_IDENTITY_VOCABULARY and probes_enabled has a safe default, rather
than relying on non-null assertions. Update the affected reads in src/types.ts
(lines 1264-1272), src/sdk/query/activity.ts (lines 406-409),
src/sdk/query/history.ts (lines 209-212), and src/sdk/mutation-events.ts (lines
301-305); all sites require guarded defaults while preserving configured values.

In `@tests/fixtures/contracts/full.json`:
- Around line 14322-14335: The harness provenance filter metadata is missing its
intended description and examples. Update the source schema definitions for the
activity, events, and history action filters—not the generated fixture—to
document string and array usage with examples such as codex, claude-code,
cursor, and extension-provided identifiers, then regenerate the fixture.

In `@tests/unit/cli/register-list-query.spec.ts`:
- Around line 556-594: Update the test case “maps provenance projections,
summaries, and repeatable predicates” to pass multiple --harness,
--agent-instance, and --provenance-filter arguments, then assert the
corresponding expected arrays preserve every supplied value in order when
checking listMutationEvents.

In `@tests/unit/commands/completion-command.spec.ts`:
- Around line 442-463: Update the test named “includes patch-free provenance
reads across history, activity, and events in every shell” so each shell’s
generated script is parsed into the individual history, activity, and events
command blocks. Within each block, assert every flag from flags is present using
the shell-specific syntax, rather than checking flags against the entire script;
retain the command-presence assertions.

---

Outside diff comments:
In `@src/core/shared/author.ts`:
- Around line 562-597: Update resolveAgentProvenanceObservation so candidate
sources are evaluated lazily in priority order rather than precomputing the
values array. Preserve the existing precedence from override through argv, and
invoke resolveProvenanceProbe only if all earlier sources return undefined,
preventing unnecessary claude_session_file I/O.

In `@src/core/store/settings.ts`:
- Around line 1146-1159: Update mergeSettings to merge agent_identity fields
with defaults rather than replacing the entire object when
settings.agent_identity is sparse. Preserve explicitly provided agent_identity
values while backfilling missing identity_vocabulary and probes_enabled fields
from defaults before cloning the result.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9468fde1-c91c-49d5-8d83-4c7dc0717259

📥 Commits

Reviewing files that changed from the base of the PR and between 1c97c2d and 58a0d4e.

📒 Files selected for processing (46)
  • .agents/pm/chores/pm-yds9dt.toon
  • .agents/pm/history/pm-3yxwv5.jsonl
  • .agents/pm/history/pm-ffz0a9.jsonl
  • .agents/pm/history/pm-v8gfi7.jsonl
  • .agents/pm/history/pm-yds9dt.jsonl
  • .agents/pm/issues/pm-3yxwv5.toon
  • .agents/pm/issues/pm-ffz0a9.toon
  • .agents/pm/issues/pm-v8gfi7.toon
  • docs/AGENT_PROVENANCE_ADR.md
  • docs/AGENT_RUNTIME_PRIMITIVES.md
  • sdk/public-surface.json
  • src/cli/main.ts
  • src/cli/register-list-query.ts
  • src/core/history/event-index.ts
  • src/core/shared/author.ts
  • src/core/shared/constants.ts
  • src/core/store/settings-validator.ts
  • src/core/store/settings.ts
  • src/mcp/server.ts
  • src/sdk/cli-contracts.ts
  • src/sdk/cli-contracts/flag-contracts.ts
  • src/sdk/cli-contracts/registration-helpers.ts
  • src/sdk/cli-contracts/tool-option-contracts.ts
  • src/sdk/cli-contracts/tool-parameter-tables.ts
  • src/sdk/cli-contracts/tool-schema.ts
  • src/sdk/completion.ts
  • src/sdk/history-provenance.ts
  • src/sdk/index.ts
  • src/sdk/mutation-events.ts
  • src/sdk/output-projection.ts
  • src/sdk/provenance.ts
  • src/sdk/query/activity.ts
  • src/sdk/query/history.ts
  • src/sdk/runtime-extended-actions.ts
  • src/types.ts
  • tests/fixtures/contracts/full.json
  • tests/unit/cli/register-list-query.spec.ts
  • tests/unit/cli/registration-helpers.spec.ts
  • tests/unit/commands/completion-command.spec.ts
  • tests/unit/commands/history-activity-command.spec.ts
  • tests/unit/core/store/settings-store.spec.ts
  • tests/unit/sdk/agent-runtime-primitives.spec.ts
  • tests/unit/sdk/agent-session-context.spec.ts
  • tests/unit/sdk/history-provenance.spec.ts
  • tests/unit/sdk/mutation-events.spec.ts
  • tests/unit/sdk/provenance.spec.ts

Comment thread docs/AGENT_PROVENANCE_ADR.md Resolved
Comment thread src/core/history/event-index.ts Resolved
Comment thread src/sdk/completion.ts Resolved
Comment thread src/sdk/query/history.ts Resolved
Comment thread src/types.ts Resolved
Comment thread tests/fixtures/contracts/full.json Resolved
@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

@unbraind I will perform a full review of #874 at head 89ffbdea5.

✅ Action performed

Full review finished.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 45 minutes.

@unbraind

unbraind commented Aug 3, 2026

Copy link
Copy Markdown
Owner Author

Bot feedback disposition on exact head 0827f5d:

  • CodeRabbit: all 8 actionable inline findings were read, reacted to, and answered in-thread. Seven were already satisfied by the implementation; the remaining repeated-option coverage gap was implemented in 0827f5d and its thread resolved.
  • Sourcery: reviewer guide acknowledged as useful; the rate-limit-only review was down-voted because it supplied no actionable findings.
  • Gemini Code Assist: sunset notice acknowledged; no review finding was available.
  • Final CodeRabbit rate-limit status was down-voted because it did not provide a fresh review after the last push; all earlier actionable findings are nevertheless addressed and verified.

Local focused verification for the last change: 46/46 register-list-query tests pass. Full exact-head GitHub checks are being watched again.

@unbraind

unbraind commented Aug 3, 2026

Copy link
Copy Markdown
Owner Author

@greptileai please review exact head 0827f5d after the repeated-option regression test. @coderabbitai full review

@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

@unbraind I will perform a full review of #874 at exact head 0827f5d10. I will include the repeated-option regression test.

✅ Action performed

Full review finished.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 39 minutes.

@unbraind

unbraind commented Aug 3, 2026

Copy link
Copy Markdown
Owner Author

@greptileai please review exact head 3e742d4; this final push only records the already-completed exact-head review evidence in pm. @coderabbitai full review

@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

@unbraind I will perform a full review of #874 at exact head 3e742d493. I will include the final PM evidence-only push.

✅ Action performed

Full review finished.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 33 minutes.

@unbraind
unbraind merged commit b1f70ab into main Aug 3, 2026
32 checks passed
@unbraind
unbraind deleted the feature/provenance-context-contracts branch August 3, 2026 00:47
@unbraind

unbraind commented Aug 4, 2026

Copy link
Copy Markdown
Owner Author

Tracked in PM: pm-3yxwv5, pm-ffz0a9, pm-v8gfi7, pm-yds9dt.

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