You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Studio memory: show the Proposal row on the fact detail (map sourceProposalId) #2223
The memory fact detail page shows the prototype's Proposal row, linking to the learning proposal that wrote the fact, when the revision has one. #2222 ships the fact detail without that row, as a recorded deviation; this issue closes the gap.
Why it was left out
The daemon already provides the field. UserModelRevision.source_proposal_id exists in contracts/proto/mecatl/v1/harness.proto (field 9) and in the SDK's UserModelRevision. Studio's BFF drops it:
apps/server/src/mecatl/knowledge.tsmemoryRevisionFromSdk() maps sourceSessionId but not sourceProposalId.
apps/contracts/src/schemas/knowledge.tsmemoryRevisionSchema has no sourceProposalId.
#2222 deliberately didn't touch the contract, to keep that PR UI-only.
Scope
Add sourceProposalId: z.string() to memoryRevisionSchema (an empty string when unset, like sourceSessionId) and map it in memoryRevisionFromSdk(). Regenerate contracts with task studio:generate.
In apps/web/src/features/memory/memory-fact-detail.tsx, render the prototype's row: label="Proposal", monospace, shown only when set, linking to the Learning settings section. Prototype reference: stacklok/mecatl-prototypesstack/08-tooling:apps/web/src/features/memory/memory-fact-detail.tsx. If Studio learning: proposal queue, evidence, and chat reflection #1855 lands a stable per-proposal route, link to the proposal itself rather than the section.
Tests: an adapter/route test for the mapped field, and a detail-page test for the row being present and absent.
Acceptance
The fact detail shows the Proposal row when sourceProposalId is set, identical to the prototype, and nothing when it isn't.
Before/after screenshots (desktop and mobile, light and dark).
Activity
chore: screenshots for the Studio memory proposal PR (#2223)
test(studio): pin the memory revision mapping and the fact detail rows
feat(studio): show the proposal that wrote a memory fact
test(studio): pin the memory revision mapping and the fact detail rows
feat(studio): show the proposal that wrote a memory fact
test(studio): pin the memory revision mapping and the fact detail rows
feat(studio): show the proposal that wrote a memory fact
test(studio): pin the memory revision mapping and the fact detail rows
feat(studio): show the proposal that wrote a memory fact
test(studio): pin the memory revision mapping and the fact detail rows
feat(studio): show the proposal that wrote a memory fact