feat patch data-rights feat/data-rights-b-kn #2 / 2
aaronrene · 21 days ago · Aug 25, 2026 · Diff

feat(data-rights): Knowtation DATA-RIGHTS-b-kn — unshare, delete, export, retention

Extend shipped revoke + delegation_audit ledger. Content unshare, tombstoned delete with 72h undo, Markdown+manifest export/reimport, published retention schedule, cascade. R6 skipped (T6). BV r2 pass; 19/19 tests.

sha256:8933455cee86730c33c93b7d12cbd0a619db67c1562505f11652e332559b766a sha
+65 ~6 symbols
sha256:c036c70a26384f17f9e07a0abe2a620fd4395e2e25b04135a1ed4bca67ad1c99 snapshot
+65
symbols added
~6
symbols modified
0
dead code introduced
Semantic Changes 71 symbols
+ Retention schedule section Retention schedule L1–31
+ Derived and operational data section Derived and operational data L15–25
+ Future biometric templates section Future biometric templates L25–31
+ Owner content section Owner content L6–15
+ Build verification — DATA-RIGHTS-b-kn section Build verification — DATA-RIGHTS-b-kn L1–28
+ Evidence section Evidence L15–21
+ table section table L17–20
+ Honest summary section Honest summary L21–25
+ R6 / T6 section R6 / T6 L25–28
+ Round history section Round history L8–15
+ table section table L10–14
~ lib/data-rights/audit.mjs .mjs 3 symbols added
+ appendDataRightsAudit function function appendDataRightsAudit L46–85
+ listDataRightsAudits function function listDataRightsAudits L92–97
+ randomToken function function randomToken L25–32
~ lib/data-rights/cascade.mjs .mjs 1 symbol added
+ cascadeDerivedForContent function function cascadeDerivedForContent L23–110
~ lib/data-rights/constants.mjs .mjs 1 symbol added
+ nextScopeAfterUnshare function function nextScopeAfterUnshare L44–52
~ lib/data-rights/delete.mjs .mjs 11 symbols added
+ handleContentDeletePreviewRequest function function handleContentDeletePreviewRequest L41–56
+ handleContentDeleteRequest function async_function handleContentDeleteRequest L73–75
+ handleContentDeleteRequestUnlocked function async_function handleContentDeleteRequestUnlocked L77–159
+ handleContentHardDeleteRequest function async_function handleContentHardDeleteRequest L175–224
+ hardPurgeItem function function hardPurgeItem L317–351
+ refuse function function refuse L32–34
+ resolveDeleteItemOwnerRef function function resolveDeleteItemOwnerRef L367–391
+ runDeleteUndoExpiry function async_function runDeleteUndoExpiry L231–252
+ softDeleteItem function function softDeleteItem L272–315
+ tombstonePublic function function tombstonePublic L356–365
+ unshareAllAudiencesUnlocked function async_function unshareAllAudiencesUnlocked L254–270
~ lib/data-rights/derived-index.mjs .mjs 5 symbols added
+ clearCacheAndPreviewFiles function function clearCacheAndPreviewFiles L106–122
+ loadDerivedIndex function function loadDerivedIndex L16–29
+ removeDerivedEntries function function removeDerivedEntries L84–99
+ saveDerivedIndex function function saveDerivedIndex L35–42
+ upsertDerivedEntry function function upsertDerivedEntry L56–77
~ lib/data-rights/export.mjs .mjs 6 symbols added
+ handleContentExportReimportRequest function async_function handleContentExportReimportRequest L236–363
+ handleContentExportRequest function async_function handleContentExportRequest L31–201
+ parseSimpleFrontmatter function function parseSimpleFrontmatter L369–389
+ refuse function function refuse L17–19
+ renderNoteMarkdown function function renderNoteMarkdown L207–222
+ walk function function walk L258–267
~ lib/data-rights/lock.mjs .mjs 1 symbol added
+ withDataRightsLock function function withDataRightsLock L14–21
~ lib/data-rights/owner.mjs .mjs 2 symbols added
+ assertContentOwner function function assertContentOwner L16–52
+ itemOwnerRefFromRow function function itemOwnerRefFromRow L59–66
~ lib/data-rights/retention-runner.mjs .mjs 1 symbol added
+ handleRetentionRunRequest function async_function handleRetentionRunRequest L22–113
+ getPublishedRetentionSchedule function function getPublishedRetentionSchedule L135–149
+ renderRetentionScheduleMarkdown function function renderRetentionScheduleMarkdown L154–185
+ retentionClassesWellFormed class function retentionClassesWellFormed L192–203
~ lib/data-rights/tombstone-store.mjs .mjs 6 symbols added
+ getTombstone function function getTombstone L69–74
+ getTombstoneStorePath function function getTombstoneStorePath L23–25
+ isTombstoned function function isTombstoned L110–112
+ loadTombstoneStore function function loadTombstoneStore L31–48
+ saveTombstoneStore function function saveTombstoneStore L54–61
+ upsertTombstone function function upsertTombstone L84–101
~ lib/data-rights/unshare.mjs .mjs 9 symbols added
+ finishSuccess function function finishSuccess L325–351
+ handleContentUnshareRequest function async_function handleContentUnshareRequest L44–46
+ handleContentUnshareRequestUnlocked function async_function handleContentUnshareRequestUnlocked L49–73
+ refuse function function refuse L29–31
+ resolveItemOwnerRef function function resolveItemOwnerRef L359–386
+ unshareFlow function function unshareFlow L75–148
+ unshareMedia function function unshareMedia L210–263
+ unshareNote function async_function unshareNote L265–323
+ unshareTask function function unshareTask L150–208
+ seed function function seed L28–65
~ test/data-rights-security.test.mjs .mjs 1 symbol added
+ seed function function seed L34–57
~ test/data-rights-stress.test.mjs .mjs 1 symbol added
+ seedMany function function seedMany L21–49
~ test/data-rights-unit.test.mjs .mjs 1 symbol added
+ seedOrgFlow function function seedOrgFlow L29–54
~ cli/index.mjs .mjs 1 symbol modified
~ main
~ lib/agent/delegation.mjs .mjs 1 symbol modified
~ lib/flow/flow-store.mjs .mjs 1 symbol added, 2 symbols modified
+ loadContentTombstoneIds function function loadContentTombstoneIds L132–143
~ lib/task/task-store.mjs .mjs 2 symbols modified

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:8933455cee86730c33c93b7d12cbd0a619db67c1562505f11652e332559b766a --body "your comment"