[PR #228] [MERGED] fix(application): add explicit investigation replay #1879

Closed
opened 2026-10-16 21:12:05 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/228
Author: @N0zoM1z0
Created: 7/14/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @morluto

Base: main ← Head: agent/replay-run-id


📝 Commits (2)

  • a6b5ca4 fix(application): add explicit investigation replay
  • 6601e0c test(application): verify packaged MCP replay

📊 Changes

11 files changed (+767 additions, -110 deletions)

View changed files

📝 docs/investigation-workspaces.md (+11 -0)
📝 scripts/verify-package-investigation.mjs (+30 -3)
📝 scripts/verify-package.mjs (+24 -2)
📝 src/application/CrossVersionInvestigation.ts (+28 -81)
➕ src/application/CrossVersionInvestigationEvidence.ts (+91 -0)
➕ src/application/CrossVersionInvestigationReplay.ts (+341 -0)
📝 src/cliInvestigationCommands.ts (+16 -7)
📝 src/domain/investigationWorkspace.ts (+4 -0)
📝 src/server/registerInvestigationTools.ts (+18 -16)
📝 tests/investigationMcp.test.ts (+78 -0)
📝 tests/investigationWorkspace.test.ts (+126 -1)

📄 Description

Summary

  • add an explicit replay_run_id selector to CLI and MCP investigation inputs
  • read and validate a completed workspace run before authorizing or scanning deleted inputs
  • require exact paths, options, integrity controls, and a complete selected run
  • parse every committed inventory page and recompute comparison/final Evidence before reuse
  • preserve authorization and rescanning for every default invocation
  • document and package-test cache-only replay

Explicit selection is necessary because the current artifact identity cannot be known without reading the inputs. The root fix therefore makes cache reuse intentional and verifies the complete evidence chain instead of silently trusting a stored result.

Closes #202

Verification

  • npm run typecheck
  • scoped oxlint and Prettier
  • 10 investigation workspace tests
  • MCP deleted-input replay coverage
  • packaged CLI replay scenario updated
  • diff check

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/morluto/rea/pull/228 **Author:** [@N0zoM1z0](https://github.com/N0zoM1z0) **Created:** 7/14/2026 **Status:** ✅ Merged **Merged:** 7/14/2026 **Merged by:** [@morluto](https://github.com/morluto) **Base:** `main` ← **Head:** `agent/replay-run-id` --- ### 📝 Commits (2) - [`a6b5ca4`](https://github.com/morluto/rea/commit/a6b5ca4135ac2cf168470b47e97a05d8b67f3147) fix(application): add explicit investigation replay - [`6601e0c`](https://github.com/morluto/rea/commit/6601e0cb7e57fe94cf0ae65bf0d04de25a3a7b49) test(application): verify packaged MCP replay ### 📊 Changes **11 files changed** (+767 additions, -110 deletions) <details> <summary>View changed files</summary> 📝 `docs/investigation-workspaces.md` (+11 -0) 📝 `scripts/verify-package-investigation.mjs` (+30 -3) 📝 `scripts/verify-package.mjs` (+24 -2) 📝 `src/application/CrossVersionInvestigation.ts` (+28 -81) ➕ `src/application/CrossVersionInvestigationEvidence.ts` (+91 -0) ➕ `src/application/CrossVersionInvestigationReplay.ts` (+341 -0) 📝 `src/cliInvestigationCommands.ts` (+16 -7) 📝 `src/domain/investigationWorkspace.ts` (+4 -0) 📝 `src/server/registerInvestigationTools.ts` (+18 -16) 📝 `tests/investigationMcp.test.ts` (+78 -0) 📝 `tests/investigationWorkspace.test.ts` (+126 -1) </details> ### 📄 Description ## Summary - add an explicit `replay_run_id` selector to CLI and MCP investigation inputs - read and validate a completed workspace run before authorizing or scanning deleted inputs - require exact paths, options, integrity controls, and a complete selected run - parse every committed inventory page and recompute comparison/final Evidence before reuse - preserve authorization and rescanning for every default invocation - document and package-test cache-only replay Explicit selection is necessary because the current artifact identity cannot be known without reading the inputs. The root fix therefore makes cache reuse intentional and verifies the complete evidence chain instead of silently trusting a stored result. Closes #202 ## Verification - `npm run typecheck` - scoped oxlint and Prettier - 10 investigation workspace tests - MCP deleted-input replay coverage - packaged CLI replay scenario updated - diff check --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-16 21:12:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#1879
No description provided.