For agentic workers: Execute this plan task-by-task with TDD; keep the existing branch and preserve unrelated user changes.
Goal: Publish explicitly registered result artifacts from selected conversation turns by uploading them between preparation and confirmation.
Architecture: Extend the formal V4 row protocol with an artifact row projected from completed tool attachments. The share service materializes only selected artifact rows through an injected async local file reader, validates capabilities and integrity, creates a preparation with the exact count, uploads multipart descriptors/files in deterministic order, then confirms the unchanged public projection.
Tech Stack: TypeScript, Zod, Vitest, Node async file APIs, existing ZCode V4 projection and conversation-share HTTP client.
Files:
docs/superpowers/specs/2026-08-10-conversation-share-api-integration-design.mddocs/conversation-session-case-catalog.mddocs/testing/conversation-session-e2e-coverage-matrix.mdRecord source authority, state pruning, upload ordering, integrity, failure behavior, and desktop/remote boundaries before code.
Files:
packages/shared/src/zcode-protocol-v4/rows.tspackages/shared/src/conversation-share.tspackages/shared/test/conversationShareContract.test.tsapps/zcode-cli/packages/contracts/src/events/session.events.tsapps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/product-projection.tsapps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/transcript-hydration.tsapps/zcode-cli/packages/bootstrap/tests/product-projection.test.tsapps/zcode-cli/packages/bootstrap/tests/transcript-hydration.test.tsWrite failing schema/live/cold tests, then project completed tool attachments as deterministic artifact rows. Keep text-only paths unrecognized.
Files:
packages/services/src/conversation-share/conversationSharePublicProjection.tspackages/services/test/conversationSharePublicProjection.test.tsWrite failing tests, then replace local artifact identity/ref with stable public IDs and return upload source metadata beside the public rows.
Files:
packages/services/src/conversation-share/conversationShareArtifactSource.tspackages/services/test/conversationShareArtifactSource.test.tspackages/services/src/conversation-share/conversationShareService.tspackages/services/src/node.tspackages/services/test/conversationShareService.test.tsWrite failing tests for selected/unselected artifacts, capabilities, file integrity, prepare count, upload order, upload response verification, and no-confirm-on-failure. Implement an injected async local file source with realpath workspace containment and bounded chunk reads; upload all artifacts before confirm.
Run affected tests, pnpm typecheck, and pnpm lint. Review the diff for unrelated changes and secret/file-content logs, then commit only task files with a Conventional Commit message.