Skip to content

docs(cli): clarify evidence-import process validation versus MCP retention - #8791

Closed
atharhive wants to merge 46 commits into
morluto:mainfrom
atharhive:docs/cli-evidence-import-retention
Closed

atharhive wants to merge 46 commits into
morluto:mainfrom
atharhive:docs/cli-evidence-import-retention

Conversation

@atharhive

@atharhive atharhive commented Nov 3, 2026 •

Copy link
Copy Markdown

Summary

Fixes #8448. Clarify in the CLI documentation that 'rea evidence-import' validates bundle authenticity and schema in the local process, and does not populate or retain records in a separate or background MCP session.

Problem and expected behavior

Issue #8448 identified an ambiguity between the CLI command 'rea evidence-import' and MCP's 'import_evidence_bundle'. Running 'rea evidence-import' validates a standalone bundle and outputs its record counts, but does not retain those records in a running or subsequent MCP session. Without explicit clarification in the guide, users and autonomous agents may infer that CLI import populates the MCP session store.

Expected behavior is for docs/cli.md to state the process boundary clearly: CLI evidence-import performs process-local bundle authentication and validation, while cross-call retention in an MCP investigation requires the MCP tool 'import_evidence_bundle'.

Change and scope

Documentation update in docs/cli.md:

  • Add an explanatory paragraph under 'Import, export and compare Evidence' describing the scope of CLI evidence-import versus MCP session retention.
  • No schema or runtime changes.

Contribution scope: not applicable (documentation clarification within existing docs).

Contract and boundary impact

  • Semantic owner and earliest changed stage: authored CLI documentation in docs/cli.md; no runtime consumers.
  • Contribution scope fit and linked maintainer decision: not applicable
  • CLI and MCP/tool-catalog contract: none
  • Provider, bridge, target-format, or platform compatibility: none
  • Evidence, artifact, provenance, or reconstruction contract: none
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable
  • Generated metadata (docs/public/product-catalog.json), package, or installation impact: none

Expected effects:

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: none (documentation-only clarification)
  • Base reproduction or other evidence: verified against issue [Design] Clarify CLI Evidence import versus MCP session retention #8448 description and existing application bundle commands implementation in src/application/EvidenceBundleCommands.ts
  • User-visible CLI/MCP output (if applicable): not applicable
  • Remaining proof gaps: none

Boundary and lifecycle regressions: not applicable (documentation only).

Validation performed

  • npx vitest run tests/conformance/readmeConsistency.test.ts (9/9 passed)
  • npm run format:check (oxfmt passed across all 6728 files)

Compatibility, safety, and release

  • Breaking changes or migration steps: none
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable
  • Package or release metadata impact: none
  • Security, privacy, process, or containment review: none; docs only

Author readiness

Human owner: @atharhive

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

Review follow-up 2c0a8d1 puts standalone validation and session-retention guidance in command help and distinguishes Unknown revisions from unique IDs. The 20 focused CLI tests, npm run check:fast, and npm run docs:check passed. The overlapping layout branch carries the same changes.

Copilot AI balanced review requested due to automatic review settings November 3, 2026 13:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T16:46:28.270603Z 2c0a8d1 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; the documentation and help match the existing import behavior.

Summary

Clarifies that rea evidence-import validates a standalone bundle without retaining its records in an MCP session.

  • CLI import explains that bundle checks do not fill an MCP session.

Reviews (43) · Last reviewed commit: "fix(cli): clarify standalone evidence im..." · Reviewed by Greptile

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@atharhive

Copy link
Copy Markdown
Author

Hey @morluto, opening this for maintainer review when convenient. It is a focused clarification in docs/cli.md defining the process-local validation boundary for evidence-import versus MCP session retention per #8448, fully synced with main.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fc42b9e029

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/cli.md Resolved

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e8c9a50ff1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/cli.md Resolved
@atharhive

Copy link
Copy Markdown
Author

Hey @morluto, thanks for following up! Checked this, merged latest upstream changes, and verified clean.

1 similar comment
@atharhive

Copy link
Copy Markdown
Author

Hey @morluto, thanks for following up! Checked this, merged latest upstream changes, and verified clean.

@morluto

morluto commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Superseded by #2791: its relocated CLI guide includes the Evidence-import and Unknown-revision explanation, and its command help and regression test carry the same behavior. The updated branch passed docs:check and the CLI help tests.

@morluto morluto closed this Nov 7, 2026
@morluto morluto added area: cli CLI adapter and one-shot commands documentation Improvements or additions to documentation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Design] Clarify CLI Evidence import versus MCP session retention

3 participants