docs(companion): Phase 6 derived-artifact storage & provenance gate (D6.1–D6.7, ratified)
Add the Phase 6 design/authorization gate fixing the binding contract for persisting derived artifacts (ai_summary, embeddings/vectors, discovery facets, insight events) produced by companion/local inference.
Decisions (owner-ratified 2026-06-06): - D6.1 per-tier/per-artifact storage routing; privacy-max never host-readable and never under the server-held KNOWTATION_MEMORY_SECRET key; fail-closed resolver. - D6.2 canonical provenance schema (generated_by/source/model/model_version| runtime_version/lane/privacy_tier/source_note_path/source_event_id/created_at); validated as a write precondition; no secret-bearing field; flag-not-lifecycle. - D6.3 write-back authorization via Phase 1 enforceConsentPolicy; the write is the gated event; delegatedEnrichmentAllowed default-OFF preserved; owner's tier governs (no downgrade); cross-partition writes gated on the tenancy prerequisite. - D6.4 ClientEncryptor hook INTERFACE ONLY; privacy-max requires it; no plaintext fallback ever; fail-closed when the ZK key hierarchy is absent. - D6.5 note-scoped artifacts inherit source-note retention + delete-on-delete; aggregate insights invalidated/re-derivable; crypto-shred for privacy-max. - D6.6 single DerivedArtifactWriter (authority group); migrate/remove the existing enrichIndexedNotes/runDiscoverPass direct writes; runtime group cannot write; build-blocking no-bypass architecture test (extends Phase 5 D5.8). - D6.7 re-enrichment writes fresh provenance (no silent rewrite); still flag-not- lifecycle.
Includes an 11-row adversarial threat model (P6-a…P6-k) and 7-tier test obligations. Decisions only — no storage/writer/encryption code. ZK key hierarchy and tenancy effective/owner identity remain hard prerequisites (fail-closed until they land). Muse-canonical on feat/companion-app.
Semantic Changes
45 symbols
Files Changed
+1
796 in snapshot
0 comments
muse hub commit comment sha256:b9ddd4d2190dfc4b067fee232306b0f6893a145ba05da5e5192b7120553b7efb --body "your comment"
No comments yet. Be the first to start the discussion.