Skip to content

Label memory suggestion subprocess histories as internal sessions - #16

Draft
Brian Krabach (bkrabach) wants to merge 1 commit into
mainfrom
fix/internal-suggestion-provenance
Draft

Brian Krabach (bkrabach) wants to merge 1 commit into
mainfrom
fix/internal-suggestion-provenance

Conversation

@bkrabach

@bkrabach Brian Krabach (bkrabach) commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Memory suggestion model calls currently create ordinary CLI root histories. Mark only the suggestion subprocess as an internal memory.suggestion session, using a private child environment. The parent environment, argv, routing, ordinary CLI behavior, and saved histories remain unchanged.

Depends on CLI provenance persistence in microsoft/amplifier-app-cli#359 and the paired Unified discovery consumer. This explicit metadata is a presentation contract; there are no prompt/title/TTY heuristics or legacy rewrites.

Validation: 51 focused suggestion tests passed (one existing conformance check excluded after reproducing its timer-display failure on untouched main); 12 relevant socket tests passed with a short macOS temporary path; changed source/tests pass Ruff and the repository frozen-contract guard. The real memory-launcher → CLI persistence → Unified discovery fixture passes with synthetic execution and no model calls. The wider suite is not green on this Mac (437 passed, 21 failures, 10 socket-path errors before the targeted short-path rerun); actual host memory save/load and production/browser acceptance remain unverified.

Paired Unified consumer: microsoft/amplifier-unified#187. Memory producer: #16. CLI producer: microsoft/amplifier-app-cli#359. This remains a reviewable three-part change; nothing has been merged or deployed by this task.

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