aptuni 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. aptuni-0.1.0/.gitignore +44 -0
  2. aptuni-0.1.0/LICENSE +202 -0
  3. aptuni-0.1.0/NOTICE +10 -0
  4. aptuni-0.1.0/PKG-INFO +206 -0
  5. aptuni-0.1.0/README.md +183 -0
  6. aptuni-0.1.0/THIRD_PARTY_NOTICES.md +60 -0
  7. aptuni-0.1.0/docs/brand/README.md +23 -0
  8. aptuni-0.1.0/docs/dev/DECISIONS/README.md +40 -0
  9. aptuni-0.1.0/pyproject.toml +76 -0
  10. aptuni-0.1.0/spikes/s01_vault/README.md +12 -0
  11. aptuni-0.1.0/spikes/s01_vault/tests/__init__.py +1 -0
  12. aptuni-0.1.0/spikes/s01_vault/tests/helpers.py +37 -0
  13. aptuni-0.1.0/spikes/s01_vault/tests/test_concurrency.py +119 -0
  14. aptuni-0.1.0/spikes/s01_vault/tests/test_fsgate_migrate.py +75 -0
  15. aptuni-0.1.0/spikes/s01_vault/tests/test_invariants.py +141 -0
  16. aptuni-0.1.0/spikes/s01_vault/tests/test_records.py +112 -0
  17. aptuni-0.1.0/spikes/s01_vault/tests/test_vault.py +172 -0
  18. aptuni-0.1.0/spikes/s02_plugins/README.md +10 -0
  19. aptuni-0.1.0/spikes/s02_plugins/tests/__init__.py +1 -0
  20. aptuni-0.1.0/spikes/s02_plugins/tests/test_plugins.py +198 -0
  21. aptuni-0.1.0/spikes/s03_fts/README.md +27 -0
  22. aptuni-0.1.0/spikes/s03_fts/tests/__init__.py +1 -0
  23. aptuni-0.1.0/spikes/s03_fts/tests/test_evaluate.py +53 -0
  24. aptuni-0.1.0/spikes/s03_fts/tests/test_freeze.py +42 -0
  25. aptuni-0.1.0/spikes/s03_fts/tests/test_metrics.py +56 -0
  26. aptuni-0.1.0/spikes/s03_fts/tests/test_retrieval.py +59 -0
  27. aptuni-0.1.0/spikes/s04_mcp/README.md +43 -0
  28. aptuni-0.1.0/spikes/s04_mcp/fixtures/codex_control/README.md +4 -0
  29. aptuni-0.1.0/spikes/s04_mcp/tests/__init__.py +1 -0
  30. aptuni-0.1.0/spikes/s04_mcp/tests/test_host_canary.py +189 -0
  31. aptuni-0.1.0/spikes/s04_mcp/tests/test_host_profile.py +268 -0
  32. aptuni-0.1.0/spikes/s04_mcp/tests/test_native_clone_probe.py +234 -0
  33. aptuni-0.1.0/spikes/s04_mcp/tests/test_policy.py +114 -0
  34. aptuni-0.1.0/spikes/s04_mcp/tests/test_server.py +99 -0
  35. aptuni-0.1.0/spikes/s05a_sources/README.md +28 -0
  36. aptuni-0.1.0/spikes/s05a_sources/tests/__init__.py +0 -0
  37. aptuni-0.1.0/spikes/s05a_sources/tests/test_authority.py +83 -0
  38. aptuni-0.1.0/spikes/s05a_sources/tests/test_contract.py +161 -0
  39. aptuni-0.1.0/spikes/s05a_sources/tests/test_folder.py +147 -0
  40. aptuni-0.1.0/spikes/s05a_sources/tests/test_github.py +124 -0
  41. aptuni-0.1.0/spikes/s05a_sources/tests/test_hardening.py +199 -0
  42. aptuni-0.1.0/spikes/s05a_sources/tests/test_ledger.py +99 -0
  43. aptuni-0.1.0/spikes/s05a_sources/tests/test_opml.py +161 -0
  44. aptuni-0.1.0/spikes/s05a_sources/tests/test_round2.py +140 -0
  45. aptuni-0.1.0/spikes/s05b_marginnote/README.md +82 -0
  46. aptuni-0.1.0/src/aptuni/__init__.py +5 -0
  47. aptuni-0.1.0/src/aptuni/__main__.py +5 -0
  48. aptuni-0.1.0/src/aptuni/adapters/__init__.py +5 -0
  49. aptuni-0.1.0/src/aptuni/adapters/manager.py +235 -0
  50. aptuni-0.1.0/src/aptuni/advisor/__init__.py +17 -0
  51. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/agent.claude_code.toml +26 -0
  52. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/agent.claude_desktop.toml +25 -0
  53. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/agent.codex.toml +26 -0
  54. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/agent.cursor.toml +25 -0
  55. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/agent.mcp.toml +27 -0
  56. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/interface.cli.toml +25 -0
  57. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/interface.obsidian.toml +25 -0
  58. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/memory.builtin.toml +27 -0
  59. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/memory.graphiti.toml +31 -0
  60. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/memory.mem0.toml +31 -0
  61. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/retrieval.hybrid.toml +26 -0
  62. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/retrieval.sqlite_fts.toml +27 -0
  63. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/source.folder.toml +26 -0
  64. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/source.github.toml +33 -0
  65. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/source.marginnote.toml +26 -0
  66. aptuni-0.1.0/src/aptuni/advisor/catalog/plugins/source.obsidian.toml +25 -0
  67. aptuni-0.1.0/src/aptuni/advisor/catalog/recipes/personal-memory.toml +7 -0
  68. aptuni-0.1.0/src/aptuni/advisor/catalog/recipes/researcher.toml +7 -0
  69. aptuni-0.1.0/src/aptuni/advisor/catalog/recipes/starter-lite.toml +7 -0
  70. aptuni-0.1.0/src/aptuni/advisor/catalog/recipes/temporal-memory.toml +7 -0
  71. aptuni-0.1.0/src/aptuni/advisor/catalog.py +104 -0
  72. aptuni-0.1.0/src/aptuni/advisor/manifest.py +114 -0
  73. aptuni-0.1.0/src/aptuni/advisor/preview.py +66 -0
  74. aptuni-0.1.0/src/aptuni/advisor/recommend.py +207 -0
  75. aptuni-0.1.0/src/aptuni/application/__init__.py +1 -0
  76. aptuni-0.1.0/src/aptuni/application/backup.py +302 -0
  77. aptuni-0.1.0/src/aptuni/application/confirmations.py +103 -0
  78. aptuni-0.1.0/src/aptuni/application/context.py +134 -0
  79. aptuni-0.1.0/src/aptuni/application/errors.py +12 -0
  80. aptuni-0.1.0/src/aptuni/application/export.py +131 -0
  81. aptuni-0.1.0/src/aptuni/application/ingest.py +400 -0
  82. aptuni-0.1.0/src/aptuni/application/marginnote_ingest.py +104 -0
  83. aptuni-0.1.0/src/aptuni/application/memory_commands.py +375 -0
  84. aptuni-0.1.0/src/aptuni/application/privacy.py +666 -0
  85. aptuni-0.1.0/src/aptuni/application/restore.py +261 -0
  86. aptuni-0.1.0/src/aptuni/application/service.py +573 -0
  87. aptuni-0.1.0/src/aptuni/application/setup.py +377 -0
  88. aptuni-0.1.0/src/aptuni/application/source_commands.py +291 -0
  89. aptuni-0.1.0/src/aptuni/application/workspace.py +55 -0
  90. aptuni-0.1.0/src/aptuni/cli/__init__.py +1 -0
  91. aptuni-0.1.0/src/aptuni/cli/backup_commands.py +184 -0
  92. aptuni-0.1.0/src/aptuni/cli/main.py +720 -0
  93. aptuni-0.1.0/src/aptuni/cli/marginnote_commands.py +102 -0
  94. aptuni-0.1.0/src/aptuni/cli/memory_cli.py +108 -0
  95. aptuni-0.1.0/src/aptuni/cli/render.py +27 -0
  96. aptuni-0.1.0/src/aptuni/cli/setup_apply.py +346 -0
  97. aptuni-0.1.0/src/aptuni/cli/setup_commands.py +518 -0
  98. aptuni-0.1.0/src/aptuni/domain/__init__.py +1 -0
  99. aptuni-0.1.0/src/aptuni/domain/ids.py +40 -0
  100. aptuni-0.1.0/src/aptuni/domain/invariants.py +211 -0
  101. aptuni-0.1.0/src/aptuni/domain/records.py +323 -0
  102. aptuni-0.1.0/src/aptuni/domain/temporal.py +26 -0
  103. aptuni-0.1.0/src/aptuni/i18n/__init__.py +78 -0
  104. aptuni-0.1.0/src/aptuni/i18n/messages/en.toml +247 -0
  105. aptuni-0.1.0/src/aptuni/i18n/messages/zh-CN.toml +247 -0
  106. aptuni-0.1.0/src/aptuni/mcp/__init__.py +1 -0
  107. aptuni-0.1.0/src/aptuni/mcp/server.py +144 -0
  108. aptuni-0.1.0/src/aptuni/policy/__init__.py +1 -0
  109. aptuni-0.1.0/src/aptuni/policy/modules.py +37 -0
  110. aptuni-0.1.0/src/aptuni/retrieval/__init__.py +5 -0
  111. aptuni-0.1.0/src/aptuni/retrieval/lexical.py +75 -0
  112. aptuni-0.1.0/src/aptuni/retrieval/sqlite.py +221 -0
  113. aptuni-0.1.0/src/aptuni/sources/__init__.py +1 -0
  114. aptuni-0.1.0/src/aptuni/sources/authority.py +94 -0
  115. aptuni-0.1.0/src/aptuni/sources/codec.py +137 -0
  116. aptuni-0.1.0/src/aptuni/sources/contract.py +30 -0
  117. aptuni-0.1.0/src/aptuni/sources/delivery.py +57 -0
  118. aptuni-0.1.0/src/aptuni/sources/extensions.py +82 -0
  119. aptuni-0.1.0/src/aptuni/sources/folder.py +139 -0
  120. aptuni-0.1.0/src/aptuni/sources/github.py +454 -0
  121. aptuni-0.1.0/src/aptuni/sources/marginnote4/__init__.py +19 -0
  122. aptuni-0.1.0/src/aptuni/sources/marginnote4/digest.py +211 -0
  123. aptuni-0.1.0/src/aptuni/sources/marginnote4/scan.py +88 -0
  124. aptuni-0.1.0/src/aptuni/sources/marginnote4/store.py +202 -0
  125. aptuni-0.1.0/src/aptuni/sources/opml.py +300 -0
  126. aptuni-0.1.0/src/aptuni/sources/opml_parse.py +58 -0
  127. aptuni-0.1.0/src/aptuni/sources/reconcile.py +188 -0
  128. aptuni-0.1.0/src/aptuni/sources/records.py +246 -0
  129. aptuni-0.1.0/src/aptuni/vault/__init__.py +1 -0
  130. aptuni-0.1.0/src/aptuni/vault/fsgate.py +113 -0
  131. aptuni-0.1.0/src/aptuni/vault/locks.py +28 -0
  132. aptuni-0.1.0/src/aptuni/vault/store.py +753 -0
  133. aptuni-0.1.0/tests/dev/test_check_relay.py +307 -0
  134. aptuni-0.1.0/tests/dev/test_check_supply_chain.py +152 -0
  135. aptuni-0.1.0/tests/dev/test_run_evals.py +60 -0
  136. aptuni-0.1.0/tests/dev/test_s12_runner.py +158 -0
  137. aptuni-0.1.0/tests/dev/test_skills.py +123 -0
  138. aptuni-0.1.0/tests/fixtures/eval/context-noise-example-v1.json +16 -0
  139. aptuni-0.1.0/tests/fixtures/eval/context-noise-example-v1.sha256 +1 -0
  140. aptuni-0.1.0/tests/fixtures/golden_v1.jsonl +16 -0
  141. aptuni-0.1.0/tests/fixtures/invalid/schema_cases.json +152 -0
  142. aptuni-0.1.0/tests/fixtures/skills/add-source-provider.json +8 -0
  143. aptuni-0.1.0/tests/fixtures/skills/audit-licenses.json +11 -0
  144. aptuni-0.1.0/tests/fixtures/skills/release.json +12 -0
  145. aptuni-0.1.0/tests/fixtures/skills/run-evals.json +9 -0
  146. aptuni-0.1.0/tests/integration/test_adapters.py +118 -0
  147. aptuni-0.1.0/tests/integration/test_advise_cli.py +113 -0
  148. aptuni-0.1.0/tests/integration/test_backup.py +1058 -0
  149. aptuni-0.1.0/tests/integration/test_cli.py +181 -0
  150. aptuni-0.1.0/tests/integration/test_concurrency.py +119 -0
  151. aptuni-0.1.0/tests/integration/test_context.py +150 -0
  152. aptuni-0.1.0/tests/integration/test_export.py +187 -0
  153. aptuni-0.1.0/tests/integration/test_folder_sync.py +178 -0
  154. aptuni-0.1.0/tests/integration/test_fsgate.py +49 -0
  155. aptuni-0.1.0/tests/integration/test_github_sync.py +218 -0
  156. aptuni-0.1.0/tests/integration/test_marginnote_cli.py +57 -0
  157. aptuni-0.1.0/tests/integration/test_marginnote_sync.py +69 -0
  158. aptuni-0.1.0/tests/integration/test_mcp.py +155 -0
  159. aptuni-0.1.0/tests/integration/test_memory_lifecycle.py +199 -0
  160. aptuni-0.1.0/tests/integration/test_privacy_inventory.py +77 -0
  161. aptuni-0.1.0/tests/integration/test_privacy_purge.py +495 -0
  162. aptuni-0.1.0/tests/integration/test_retrieval.py +148 -0
  163. aptuni-0.1.0/tests/integration/test_review16.py +215 -0
  164. aptuni-0.1.0/tests/integration/test_service.py +121 -0
  165. aptuni-0.1.0/tests/integration/test_setup_apply.py +882 -0
  166. aptuni-0.1.0/tests/integration/test_vault.py +344 -0
  167. aptuni-0.1.0/tests/marginnote_fixture.py +84 -0
  168. aptuni-0.1.0/tests/support.py +34 -0
  169. aptuni-0.1.0/tests/unit/advisor/test_catalog.py +136 -0
  170. aptuni-0.1.0/tests/unit/advisor/test_i18n.py +54 -0
  171. aptuni-0.1.0/tests/unit/advisor/test_recommend.py +139 -0
  172. aptuni-0.1.0/tests/unit/application/test_context_budget.py +63 -0
  173. aptuni-0.1.0/tests/unit/retrieval/test_lexical.py +29 -0
  174. aptuni-0.1.0/tests/unit/sources/test_contract.py +161 -0
  175. aptuni-0.1.0/tests/unit/sources/test_delivery.py +101 -0
  176. aptuni-0.1.0/tests/unit/sources/test_folder.py +147 -0
  177. aptuni-0.1.0/tests/unit/sources/test_github_api.py +216 -0
  178. aptuni-0.1.0/tests/unit/sources/test_hardening.py +151 -0
  179. aptuni-0.1.0/tests/unit/sources/test_marginnote4.py +171 -0
  180. aptuni-0.1.0/tests/unit/sources/test_opml_real_history.py +63 -0
  181. aptuni-0.1.0/tests/unit/sources/test_round2.py +87 -0
  182. aptuni-0.1.0/tests/unit/test_invariants.py +141 -0
  183. aptuni-0.1.0/tests/unit/test_records.py +112 -0
@@ -0,0 +1,44 @@
1
+ # --- Session scratch (never committed) ---
2
+ temp/
3
+
4
+ # --- Maintainer-private design history (raw chat log with personal details).
5
+ # Distilled, depersonalized rationale lives in docs/product/DESIGN_RATIONALE.md.
6
+ 我觉得比较好的设计和历史.txt
7
+
8
+ # --- Python ---
9
+ __pycache__/
10
+ *.py[cod]
11
+ *.egg-info/
12
+ .venv/
13
+ .pytest_cache/
14
+ .mypy_cache/
15
+ .ruff_cache/
16
+ .coverage
17
+ htmlcov/
18
+ dist/
19
+ build/
20
+
21
+ # --- Secrets & local data (see SECURITY rules) ---
22
+ .env
23
+ .env.*
24
+ *.pem
25
+ *.key
26
+ credentials.json
27
+ *.sqlite
28
+ *.db
29
+
30
+ # --- Host-local agent state (shared project settings may be added deliberately later) ---
31
+ **/.claude/*.lock
32
+ **/.claude/logs/
33
+ **/.claude/settings.local.json
34
+
35
+ # --- OS / editors ---
36
+ .DS_Store
37
+ .idea/
38
+ .vscode/
39
+
40
+ # --- Maintainer's original prompt copy of the PRD (canonical copy: docs/product/PRD.md)
41
+ Prompt_PRD.txt
42
+
43
+ # --- Repo-local tool environment (uv bootstrap) ---
44
+ .tools/
aptuni-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
aptuni-0.1.0/NOTICE ADDED
@@ -0,0 +1,10 @@
1
+ Aptuni
2
+ Copyright 2026 MEI Ruihao and the Aptuni contributors
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ The Aptuni name, logo and brand assets under assets/brand/ identify the project.
7
+ The Apache License does not grant permission to use them as trademarks
8
+ (Apache License 2.0, Section 6). See docs/brand/README.md.
9
+
10
+ Third-party components and their notices are listed in THIRD_PARTY_NOTICES.md.
aptuni-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,206 @@
1
+ Metadata-Version: 2.4
2
+ Name: aptuni
3
+ Version: 0.1.0
4
+ Summary: Aptuni — a local-first personal context layer that grows more attuned to you over time.
5
+ Project-URL: Homepage, https://github.com/ruihaomei/aptuni
6
+ Project-URL: Repository, https://github.com/ruihaomei/aptuni
7
+ Project-URL: Issues, https://github.com/ruihaomei/aptuni/issues
8
+ Project-URL: Changelog, https://github.com/ruihaomei/aptuni/blob/main/CHANGELOG.md
9
+ Author: MEI Ruihao
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ License-File: THIRD_PARTY_NOTICES.md
14
+ Keywords: ai-agents,context-engineering,local-first,mcp,memory,personal-context
15
+ Classifier: Development Status :: 2 - Pre-Alpha
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3
19
+ Requires-Python: >=3.13
20
+ Requires-Dist: mcp==2.2.0
21
+ Requires-Dist: pydantic<3,>=2.11
22
+ Description-Content-Type: text/markdown
23
+
24
+ <p align="center"><img src="https://raw.githubusercontent.com/ruihaomei/aptuni/v0.1.0/assets/brand/logo/aptuni-icon.svg" width="120" alt="Aptuni"></p>
25
+
26
+ <h1 align="center">Aptuni</h1>
27
+ <p align="center"><b>Context, attuned to you.</b></p>
28
+ <p align="center">Personal context · Memory · MCP · Local-first</p>
29
+ <p align="center"><a href="https://github.com/ruihaomei/aptuni/blob/v0.1.0/README.zh-CN.md">简体中文</a> · <a href="https://github.com/ruihaomei/aptuni/blob/v0.1.0/LICENSE">Apache-2.0</a> · v0.1.0 pre-alpha</p>
30
+
31
+ **Aptuni gives AI agents the right personal context without giving them everything about you.**
32
+ The more you use it, the better it understands what matters.
33
+
34
+ You stop re-explaining yourself to every agent. Your agent gets a small, relevant, verifiable slice
35
+ of who you are for the task at hand, and you keep the whole thing in open files you own.
36
+
37
+ > **Status: pre-alpha (Milestone 1).** The core runs end to end on supported macOS and Ubuntu
38
+ > 24.04/ext4 systems. Interfaces will still change. See [what works now](#what-works-today) and the
39
+ > [roadmap](https://github.com/ruihaomei/aptuni/blob/v0.1.0/docs/dev/ROADMAP.md).
40
+
41
+ ## Why Aptuni
42
+
43
+ - **Attunement over accumulation.** Agents get the smallest useful context for a task, not a dump
44
+ of everything stored about you.
45
+ - **You own it.** Your Profile Vault is plain JSONL/Markdown on your disk. Indexes and memory
46
+ engines are rebuildable projections, so you never lose yourself when a backend changes.
47
+ - **Evidence, not guesses.** A document that mentions XGBoost is `exposure`, not expertise. Every
48
+ claim keeps its source, time and history.
49
+ - **Your switches.** Each module (knowledge, experience, preferences…) has separate *ingest* and
50
+ *expose* controls. "Don't tell my agent about my work history" hides it without deleting it.
51
+ - **No extra API key required.** The default setup needs no Docker, no vector or graph database and
52
+ no model key. Claude Code or Codex can be the intelligence you already have.
53
+
54
+ ## Install with your agent
55
+
56
+ Install the public package with Python 3.13 and [uv](https://docs.astral.sh/uv/):
57
+
58
+ ```sh
59
+ uv tool install aptuni==0.1.0
60
+ aptuni --version
61
+ ```
62
+
63
+ Open this repository in Claude Code or Codex and say:
64
+
65
+ > Read this repository and set up Aptuni for me.
66
+
67
+ The agent reads [`AGENTS.md`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/AGENTS.md), asks which language you prefer, then walks through what
68
+ sources you have, how you want to be remembered, and whether cloud models may process your data.
69
+
70
+ You can drive the same flow yourself. It is two commands, and the first one creates only a private,
71
+ expiring plan record — no Vault, source, grant, or host bundle:
72
+
73
+ ```sh
74
+ aptuni setup plan --folder ~/Documents/notes --host claude_code
75
+ aptuni setup apply ACTION_ID # you type APPLY in your own terminal
76
+ ```
77
+
78
+ `setup plan` prints the recommended components and why, the API keys and setup time, **exactly
79
+ which of your modules an agent will be able to read and which operator receives them**, the exact
80
+ folders it will read, **every file it will write and where**, and the exact ordered steps — then
81
+ stops. None of those effects happens until you confirm that one plan, and the confirmation is bound
82
+ to its digest, so an edited plan can never be applied.
83
+
84
+ Aptuni writes the agent integration into its own directory and does **not** modify your host's
85
+ configuration; you point the host at it yourself. If a step fails, the run stops there and resumes
86
+ where it left off. `aptuni setup cancel ACTION_ID` revokes the agent access it granted and tells you
87
+ exactly what remains — your Vault, sources and evidence are never deleted for you.
88
+
89
+ ## 60-second manual quickstart
90
+
91
+ Requires the installed Python 3.13 package above.
92
+
93
+ ```sh
94
+ aptuni advise # a few plain-language questions; changes nothing
95
+ aptuni init ~/Aptuni # create your Profile Vault (or let `setup apply` do it)
96
+ aptuni remember "Prefers concise, structured technical explanations." --module preferences
97
+ aptuni source add-folder ~/Documents/cv --module experience --role application-materials
98
+ aptuni sync SOURCE_ID # minimized evidence from files you approved
99
+ aptuni context "help me prepare for a data science interview" --module experience --evidence --budget 1500
100
+ ```
101
+
102
+ Then connect an agent:
103
+
104
+ ```sh
105
+ aptuni adapter plan claude --module identity --module preferences --allow-host-model-egress
106
+ aptuni adapter apply ACTION_ID # you confirm in your own terminal
107
+ ```
108
+
109
+ ## What works today
110
+
111
+ | Area | Status |
112
+ |---|---|
113
+ | Profile Vault: facts, history, corrections, crash-safe writes, `doctor` | ✅ |
114
+ | Module permissions (ingest / expose, independently) | ✅ |
115
+ | Folder source (Markdown, text, CSV) with incremental sync and provenance | ✅ |
116
+ | GitHub source, Standard mode (bounded, exact commit provenance) | ✅ |
117
+ | Bilingual (English + Chinese) local search, rebuildable index | ✅ |
118
+ | Layered context (L0 identity card → L4 evidence) with a budget | ✅ |
119
+ | MCP server over local STDIO, permission-checked reads and quarantined memory proposals | ✅ |
120
+ | Claude Code and Codex adapters | ✅ |
121
+ | Plugin Advisor, Recipes, English / 简体中文 CLI | ✅ preview (`aptuni advise`) |
122
+ | Verified backup and restore of the canonical Vault | ✅ |
123
+ | MarginNote 4 source (macOS, direct read-only local sync, native IDs) | ✅ |
124
+ | Obsidian source and UI, Mem0, hybrid retrieval, Graphiti | 🗺 Milestones 2–3 |
125
+
126
+ Run `aptuni plugin list` and `aptuni recipe list` to see the same picture from the CLI.
127
+
128
+ ## How it works
129
+
130
+ ```text
131
+ Sources ──► Evidence ──► Profile + Memory ──► Context ──► Agents
132
+ (folders, (minimized, (temporal facts, (L0–L4, (MCP, Claude Code,
133
+ GitHub, provenance) your switches) budgeted) Codex)
134
+ MarginNote)
135
+ ```
136
+
137
+ - **Profile ≠ Memory ≠ Context.** A Profile changes slowly, memory forms quickly, and context is
138
+ the task-specific slice assembled at runtime.
139
+ - **Progressive disclosure.** Agents start from a short identity card and ask for more only when a
140
+ task needs it.
141
+ - **Sources change safely.** Every sync is an immutable snapshot plus a reviewable delta. A deleted
142
+ file withdraws evidence; it never silently rewrites history. Ambiguous changes wait for you.
143
+
144
+ Design decisions live in [`docs/dev/DECISIONS/`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/docs/dev/DECISIONS/README.md), and the product
145
+ requirements in [`docs/product/PRD.md`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/docs/product/PRD.md).
146
+
147
+ ## Recipes
148
+
149
+ | Recipe | For | Needs |
150
+ |---|---|---|
151
+ | **Starter Lite** | Just make it work | nothing extra |
152
+ | **Researcher** | Notes, documents and code as knowledge evidence | optional `GITHUB_TOKEN` |
153
+ | Personal Memory | Learn from everyday conversations | Milestone 2 (Mem0) |
154
+ | Temporal Memory | Relationships that change over time | Milestone 3 (Graphiti) |
155
+
156
+ You choose an experience; Aptuni chooses the components. Recipes that are not installable yet are
157
+ shown with the closest working alternative.
158
+
159
+ ## Privacy in one paragraph
160
+
161
+ Aptuni never scans your machine on its own, and discovering a source does not mean it has
162
+ permission to read it. Raw conversations are not kept by default. Agents see only modules you
163
+ expose, within a budget, and the adapter preview tells you exactly what leaves your device (for
164
+ example, context an agent reads is processed by that agent's model provider). See
165
+ [`SECURITY.md`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/SECURITY.md) and the [threat model](https://github.com/ruihaomei/aptuni/blob/v0.1.0/docs/dev/THREAT_MODEL.md).
166
+
167
+ These commands make that concrete:
168
+
169
+ ```sh
170
+ aptuni privacy status # every copy Aptuni manages, and the ones it cannot delete for you
171
+ aptuni privacy purge preview <id> # the exact records and copies a deletion would remove
172
+ aptuni privacy purge confirm <action> # irreversible, and only for that one preview
173
+ aptuni privacy purge cancel <action> # abandon a confirmed purge that deleted nothing
174
+ ```
175
+
176
+ `privacy status` names external copies plainly — exports you made yourself, your original source
177
+ files, and transcripts held by an agent's provider — because Aptuni cannot delete those and will
178
+ not pretend otherwise. The purge receipt reports, per copy, what actually happened.
179
+
180
+ ## Backups you can actually restore
181
+
182
+ `aptuni export` writes a readable copy of your current Profile. It is for reading, and it cannot be
183
+ restored. The restorable copy is a backup:
184
+
185
+ ```sh
186
+ aptuni backup create ~/aptuni-backups/2026-09-20 # a verified copy, outside your Vault
187
+ aptuni backup verify ~/aptuni-backups/2026-09-20 # checks it without touching your Vault
188
+ aptuni backup list ~/aptuni-backups # what you have, and whether each still verifies
189
+ aptuni backup restore preview <path> # exactly what a restore would replace, drop and keep
190
+ aptuni backup restore confirm <action> # only for that one preview
191
+ ```
192
+
193
+ A backup is a complete unencrypted copy of your canonical records, including modules you have
194
+ hidden, so where you keep it matters. Two things it will not do: it never resurrects a record you
195
+ purged, on any machine, because deletions travel with your Vault; and it never overwrites a folder
196
+ that already has files in it.
197
+
198
+ ## Contributing
199
+
200
+ Plugins, recipes, translations and bug reports are welcome. Start with
201
+ [`CONTRIBUTING.md`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/CONTRIBUTING.md). Adding a plugin to the Advisor catalog is one TOML file
202
+ plus two message lines.
203
+
204
+ ## License
205
+
206
+ [Apache-2.0](https://github.com/ruihaomei/aptuni/blob/v0.1.0/LICENSE). Third-party notices are in [`THIRD_PARTY_NOTICES.md`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/THIRD_PARTY_NOTICES.md).
aptuni-0.1.0/README.md ADDED
@@ -0,0 +1,183 @@
1
+ <p align="center"><img src="https://raw.githubusercontent.com/ruihaomei/aptuni/v0.1.0/assets/brand/logo/aptuni-icon.svg" width="120" alt="Aptuni"></p>
2
+
3
+ <h1 align="center">Aptuni</h1>
4
+ <p align="center"><b>Context, attuned to you.</b></p>
5
+ <p align="center">Personal context · Memory · MCP · Local-first</p>
6
+ <p align="center"><a href="https://github.com/ruihaomei/aptuni/blob/v0.1.0/README.zh-CN.md">简体中文</a> · <a href="https://github.com/ruihaomei/aptuni/blob/v0.1.0/LICENSE">Apache-2.0</a> · v0.1.0 pre-alpha</p>
7
+
8
+ **Aptuni gives AI agents the right personal context without giving them everything about you.**
9
+ The more you use it, the better it understands what matters.
10
+
11
+ You stop re-explaining yourself to every agent. Your agent gets a small, relevant, verifiable slice
12
+ of who you are for the task at hand, and you keep the whole thing in open files you own.
13
+
14
+ > **Status: pre-alpha (Milestone 1).** The core runs end to end on supported macOS and Ubuntu
15
+ > 24.04/ext4 systems. Interfaces will still change. See [what works now](#what-works-today) and the
16
+ > [roadmap](https://github.com/ruihaomei/aptuni/blob/v0.1.0/docs/dev/ROADMAP.md).
17
+
18
+ ## Why Aptuni
19
+
20
+ - **Attunement over accumulation.** Agents get the smallest useful context for a task, not a dump
21
+ of everything stored about you.
22
+ - **You own it.** Your Profile Vault is plain JSONL/Markdown on your disk. Indexes and memory
23
+ engines are rebuildable projections, so you never lose yourself when a backend changes.
24
+ - **Evidence, not guesses.** A document that mentions XGBoost is `exposure`, not expertise. Every
25
+ claim keeps its source, time and history.
26
+ - **Your switches.** Each module (knowledge, experience, preferences…) has separate *ingest* and
27
+ *expose* controls. "Don't tell my agent about my work history" hides it without deleting it.
28
+ - **No extra API key required.** The default setup needs no Docker, no vector or graph database and
29
+ no model key. Claude Code or Codex can be the intelligence you already have.
30
+
31
+ ## Install with your agent
32
+
33
+ Install the public package with Python 3.13 and [uv](https://docs.astral.sh/uv/):
34
+
35
+ ```sh
36
+ uv tool install aptuni==0.1.0
37
+ aptuni --version
38
+ ```
39
+
40
+ Open this repository in Claude Code or Codex and say:
41
+
42
+ > Read this repository and set up Aptuni for me.
43
+
44
+ The agent reads [`AGENTS.md`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/AGENTS.md), asks which language you prefer, then walks through what
45
+ sources you have, how you want to be remembered, and whether cloud models may process your data.
46
+
47
+ You can drive the same flow yourself. It is two commands, and the first one creates only a private,
48
+ expiring plan record — no Vault, source, grant, or host bundle:
49
+
50
+ ```sh
51
+ aptuni setup plan --folder ~/Documents/notes --host claude_code
52
+ aptuni setup apply ACTION_ID # you type APPLY in your own terminal
53
+ ```
54
+
55
+ `setup plan` prints the recommended components and why, the API keys and setup time, **exactly
56
+ which of your modules an agent will be able to read and which operator receives them**, the exact
57
+ folders it will read, **every file it will write and where**, and the exact ordered steps — then
58
+ stops. None of those effects happens until you confirm that one plan, and the confirmation is bound
59
+ to its digest, so an edited plan can never be applied.
60
+
61
+ Aptuni writes the agent integration into its own directory and does **not** modify your host's
62
+ configuration; you point the host at it yourself. If a step fails, the run stops there and resumes
63
+ where it left off. `aptuni setup cancel ACTION_ID` revokes the agent access it granted and tells you
64
+ exactly what remains — your Vault, sources and evidence are never deleted for you.
65
+
66
+ ## 60-second manual quickstart
67
+
68
+ Requires the installed Python 3.13 package above.
69
+
70
+ ```sh
71
+ aptuni advise # a few plain-language questions; changes nothing
72
+ aptuni init ~/Aptuni # create your Profile Vault (or let `setup apply` do it)
73
+ aptuni remember "Prefers concise, structured technical explanations." --module preferences
74
+ aptuni source add-folder ~/Documents/cv --module experience --role application-materials
75
+ aptuni sync SOURCE_ID # minimized evidence from files you approved
76
+ aptuni context "help me prepare for a data science interview" --module experience --evidence --budget 1500
77
+ ```
78
+
79
+ Then connect an agent:
80
+
81
+ ```sh
82
+ aptuni adapter plan claude --module identity --module preferences --allow-host-model-egress
83
+ aptuni adapter apply ACTION_ID # you confirm in your own terminal
84
+ ```
85
+
86
+ ## What works today
87
+
88
+ | Area | Status |
89
+ |---|---|
90
+ | Profile Vault: facts, history, corrections, crash-safe writes, `doctor` | ✅ |
91
+ | Module permissions (ingest / expose, independently) | ✅ |
92
+ | Folder source (Markdown, text, CSV) with incremental sync and provenance | ✅ |
93
+ | GitHub source, Standard mode (bounded, exact commit provenance) | ✅ |
94
+ | Bilingual (English + Chinese) local search, rebuildable index | ✅ |
95
+ | Layered context (L0 identity card → L4 evidence) with a budget | ✅ |
96
+ | MCP server over local STDIO, permission-checked reads and quarantined memory proposals | ✅ |
97
+ | Claude Code and Codex adapters | ✅ |
98
+ | Plugin Advisor, Recipes, English / 简体中文 CLI | ✅ preview (`aptuni advise`) |
99
+ | Verified backup and restore of the canonical Vault | ✅ |
100
+ | MarginNote 4 source (macOS, direct read-only local sync, native IDs) | ✅ |
101
+ | Obsidian source and UI, Mem0, hybrid retrieval, Graphiti | 🗺 Milestones 2–3 |
102
+
103
+ Run `aptuni plugin list` and `aptuni recipe list` to see the same picture from the CLI.
104
+
105
+ ## How it works
106
+
107
+ ```text
108
+ Sources ──► Evidence ──► Profile + Memory ──► Context ──► Agents
109
+ (folders, (minimized, (temporal facts, (L0–L4, (MCP, Claude Code,
110
+ GitHub, provenance) your switches) budgeted) Codex)
111
+ MarginNote)
112
+ ```
113
+
114
+ - **Profile ≠ Memory ≠ Context.** A Profile changes slowly, memory forms quickly, and context is
115
+ the task-specific slice assembled at runtime.
116
+ - **Progressive disclosure.** Agents start from a short identity card and ask for more only when a
117
+ task needs it.
118
+ - **Sources change safely.** Every sync is an immutable snapshot plus a reviewable delta. A deleted
119
+ file withdraws evidence; it never silently rewrites history. Ambiguous changes wait for you.
120
+
121
+ Design decisions live in [`docs/dev/DECISIONS/`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/docs/dev/DECISIONS/README.md), and the product
122
+ requirements in [`docs/product/PRD.md`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/docs/product/PRD.md).
123
+
124
+ ## Recipes
125
+
126
+ | Recipe | For | Needs |
127
+ |---|---|---|
128
+ | **Starter Lite** | Just make it work | nothing extra |
129
+ | **Researcher** | Notes, documents and code as knowledge evidence | optional `GITHUB_TOKEN` |
130
+ | Personal Memory | Learn from everyday conversations | Milestone 2 (Mem0) |
131
+ | Temporal Memory | Relationships that change over time | Milestone 3 (Graphiti) |
132
+
133
+ You choose an experience; Aptuni chooses the components. Recipes that are not installable yet are
134
+ shown with the closest working alternative.
135
+
136
+ ## Privacy in one paragraph
137
+
138
+ Aptuni never scans your machine on its own, and discovering a source does not mean it has
139
+ permission to read it. Raw conversations are not kept by default. Agents see only modules you
140
+ expose, within a budget, and the adapter preview tells you exactly what leaves your device (for
141
+ example, context an agent reads is processed by that agent's model provider). See
142
+ [`SECURITY.md`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/SECURITY.md) and the [threat model](https://github.com/ruihaomei/aptuni/blob/v0.1.0/docs/dev/THREAT_MODEL.md).
143
+
144
+ These commands make that concrete:
145
+
146
+ ```sh
147
+ aptuni privacy status # every copy Aptuni manages, and the ones it cannot delete for you
148
+ aptuni privacy purge preview <id> # the exact records and copies a deletion would remove
149
+ aptuni privacy purge confirm <action> # irreversible, and only for that one preview
150
+ aptuni privacy purge cancel <action> # abandon a confirmed purge that deleted nothing
151
+ ```
152
+
153
+ `privacy status` names external copies plainly — exports you made yourself, your original source
154
+ files, and transcripts held by an agent's provider — because Aptuni cannot delete those and will
155
+ not pretend otherwise. The purge receipt reports, per copy, what actually happened.
156
+
157
+ ## Backups you can actually restore
158
+
159
+ `aptuni export` writes a readable copy of your current Profile. It is for reading, and it cannot be
160
+ restored. The restorable copy is a backup:
161
+
162
+ ```sh
163
+ aptuni backup create ~/aptuni-backups/2026-09-20 # a verified copy, outside your Vault
164
+ aptuni backup verify ~/aptuni-backups/2026-09-20 # checks it without touching your Vault
165
+ aptuni backup list ~/aptuni-backups # what you have, and whether each still verifies
166
+ aptuni backup restore preview <path> # exactly what a restore would replace, drop and keep
167
+ aptuni backup restore confirm <action> # only for that one preview
168
+ ```
169
+
170
+ A backup is a complete unencrypted copy of your canonical records, including modules you have
171
+ hidden, so where you keep it matters. Two things it will not do: it never resurrects a record you
172
+ purged, on any machine, because deletions travel with your Vault; and it never overwrites a folder
173
+ that already has files in it.
174
+
175
+ ## Contributing
176
+
177
+ Plugins, recipes, translations and bug reports are welcome. Start with
178
+ [`CONTRIBUTING.md`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/CONTRIBUTING.md). Adding a plugin to the Advisor catalog is one TOML file
179
+ plus two message lines.
180
+
181
+ ## License
182
+
183
+ [Apache-2.0](https://github.com/ruihaomei/aptuni/blob/v0.1.0/LICENSE). Third-party notices are in [`THIRD_PARTY_NOTICES.md`](https://github.com/ruihaomei/aptuni/blob/v0.1.0/THIRD_PARTY_NOTICES.md).