planr 0.0.1 → 1.1.16

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 (63) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +150 -0
  3. package/docs/ARCHITECTURE.md +75 -0
  4. package/docs/CI.md +54 -0
  5. package/docs/CLAUDE_CODE.md +33 -0
  6. package/docs/CLI_REFERENCE.md +126 -0
  7. package/docs/CODEX.md +48 -0
  8. package/docs/CURSOR.md +30 -0
  9. package/docs/GOALS.md +155 -0
  10. package/docs/HANDOFFS_AND_STORIES.md +121 -0
  11. package/docs/IMPORT.md +21 -0
  12. package/docs/INSTALL.md +113 -0
  13. package/docs/MCP_CONTRACT.md +70 -0
  14. package/docs/MCP_GUIDE.md +40 -0
  15. package/docs/NPM.md +40 -0
  16. package/docs/OPERATING_MODEL.md +250 -0
  17. package/docs/RELEASE.md +140 -0
  18. package/docs/SECURITY.md +8 -0
  19. package/docs/SKILLS.md +278 -0
  20. package/docs/TASK_GRAPH_MODEL.md +222 -0
  21. package/docs/TESTING.md +87 -0
  22. package/docs/TROUBLESHOOTING.md +26 -0
  23. package/docs/fixtures/mcp-contract.json +92 -0
  24. package/docs/planr-spec/ADRS.md +160 -0
  25. package/docs/planr-spec/AI_SPEC.md +138 -0
  26. package/docs/planr-spec/ANALYTICS_OBSERVABILITY_SPEC.md +124 -0
  27. package/docs/planr-spec/API_AND_DATA_MODEL.md +517 -0
  28. package/docs/planr-spec/BACKEND_IMPLEMENTATION_SPEC.md +178 -0
  29. package/docs/planr-spec/CLIENT_IMPLEMENTATION_SPEC.md +119 -0
  30. package/docs/planr-spec/DESIGN_SYSTEM_SPEC.md +102 -0
  31. package/docs/planr-spec/PRODUCT_SPEC.md +193 -0
  32. package/docs/planr-spec/QA_ACCEPTANCE_TESTS.md +146 -0
  33. package/docs/planr-spec/README.md +67 -0
  34. package/docs/planr-spec/REFERENCES.md +29 -0
  35. package/docs/planr-spec/RELEASE_READINESS.md +95 -0
  36. package/docs/planr-spec/SAFETY_PRIVACY_SECURITY.md +169 -0
  37. package/docs/planr-spec/TASKS.md +932 -0
  38. package/docs/planr-spec/TECH_ARCHITECTURE.md +143 -0
  39. package/docs/planr-spec/UX_FLOWS.md +235 -0
  40. package/docs/planr-spec/V1_1_DIFFERENTIATION_CONTRACT.md +177 -0
  41. package/docs/planr-spec.zip +0 -0
  42. package/npm/bin/planr.js +54 -0
  43. package/npm/native/darwin-arm64/planr +0 -0
  44. package/npm/native/darwin-x86_64/planr +0 -0
  45. package/npm/native/linux-arm64/planr +0 -0
  46. package/npm/native/linux-x86_64/planr +0 -0
  47. package/package.json +27 -8
  48. package/plugins/planr/.claude-plugin/plugin.json +11 -0
  49. package/plugins/planr/.codex-plugin/plugin.json +25 -0
  50. package/plugins/planr/agents/planr-reviewer.md +12 -0
  51. package/plugins/planr/agents/planr-worker.md +10 -0
  52. package/plugins/planr/skills/planr/SKILL.md +52 -0
  53. package/plugins/planr/skills/planr-goal/SKILL.md +69 -0
  54. package/plugins/planr/skills/planr-loop/SKILL.md +114 -0
  55. package/plugins/planr/skills/planr-loop/agents/planr-reviewer.toml +17 -0
  56. package/plugins/planr/skills/planr-loop/agents/planr-worker.toml +14 -0
  57. package/plugins/planr/skills/planr-plan/SKILL.md +58 -0
  58. package/plugins/planr/skills/planr-review/SKILL.md +51 -0
  59. package/plugins/planr/skills/planr-status/SKILL.md +50 -0
  60. package/plugins/planr/skills/planr-summary/SKILL.md +28 -0
  61. package/plugins/planr/skills/planr-task-graph/SKILL.md +228 -0
  62. package/plugins/planr/skills/planr-verify-web/SKILL.md +76 -0
  63. package/plugins/planr/skills/planr-work/SKILL.md +68 -0
@@ -0,0 +1,95 @@
1
+ # Release Readiness
2
+
3
+ ## Release Channels
4
+
5
+ - Source build from GitHub.
6
+ - Prebuilt binaries for macOS arm64/x86_64 and Linux arm64/x86_64.
7
+ - Homebrew formula after initial stable release.
8
+ - npm wrapper optional only if Node-based install convenience is needed.
9
+
10
+ ## Versioning
11
+
12
+ - Semantic versioning.
13
+ - Database schema version stored in SQLite.
14
+ - MCP contract version exposed by `planr mcp --version` or initialize metadata.
15
+
16
+ ## Packaging Requirements
17
+
18
+ - REQ-REL-001: Release binaries must be checksummed.
19
+ - REQ-REL-002: Install script must be readable, idempotent, and avoid hidden global config edits.
20
+ - REQ-REL-003: Agent integration commands must support dry-run.
21
+ - REQ-REL-004: Upgrade must not rewrite `.planr` files without an explicit Planr write command.
22
+ - REQ-REL-005: Download installs must verify `SHA256SUMS` from the same release location by default.
23
+ - REQ-REL-006: `PLANR_SKIP_CHECKSUM=1` may exist only as an explicit development-mirror escape hatch.
24
+ - REQ-REL-007: Release docs must distinguish release installs, Homebrew after tap publication, source builds, and Windows/WSL expectations.
25
+
26
+ ## Upgrade Readiness
27
+
28
+ - Open current Planr workspaces without rewriting Markdown artifacts.
29
+ - Back up the SQLite database before schema upgrades.
30
+ - Report package import/export results before mutation.
31
+ - Provide rollback instructions for binary and database backups.
32
+
33
+ ## Documentation Readiness
34
+
35
+ Required:
36
+
37
+ - README.
38
+ - Install guide.
39
+ - CLI reference generated from actual help.
40
+ - MCP integration guide.
41
+ - Codex guide.
42
+ - Claude Code guide.
43
+ - Cursor guide.
44
+ - Package import/export guide.
45
+ - Security and privacy notes.
46
+ - Troubleshooting/doctor guide.
47
+
48
+ ## Security Review
49
+
50
+ Before public release:
51
+
52
+ - Review install script.
53
+ - Review MCP mutation tools.
54
+ - Review HTTP bind/auth behavior.
55
+ - Review log scrubbing.
56
+ - Review secret detection.
57
+ - Review dependency supply chain.
58
+
59
+ ## QA Release Checklist
60
+
61
+ - `planr project init` smoke test in empty repo.
62
+ - Package import/export smoke test.
63
+ - Codex MCP registration smoke test.
64
+ - Claude Code MCP config smoke test.
65
+ - Cursor MCP config smoke test.
66
+ - Concurrent pick test.
67
+ - Review/fix loop test.
68
+ - Recovery sweep test.
69
+ - Local browser review workspace smoke test.
70
+ - Git/PR review evidence test.
71
+ - Export/import roundtrip test.
72
+ - Template package import preview and confirm test.
73
+ - `scripts/build-release.sh`, checksum verification, installer file-url smoke test, and `npm pack --dry-run`.
74
+
75
+ ## Rollback
76
+
77
+ - Binary rollback: install previous version.
78
+ - Database rollback: restore the automatic backup created before schema upgrades.
79
+ - Plan files: never silently rewritten.
80
+
81
+ ## Legal/Platform Items
82
+
83
+ - Confirm license review for any retained code, docs, or assets.
84
+ - Ensure final product docs use Planr-owned naming, examples, and command vocabulary.
85
+ - Ensure README states local privacy behavior clearly.
86
+
87
+ ## Launch Criteria
88
+
89
+ - All regression reviews pass.
90
+ - Docs cover first-run setup for Codex, Claude Code, and Cursor.
91
+ - `planr doctor --client all` produces actionable output.
92
+ - `planr prompt cli|mcp|http` prints actionable instructions without editing config.
93
+ - Fresh consumer E2E passes in `~/projects/planr-test`.
94
+ - No content telemetry.
95
+ - Release smoke tests do not rewrite workspace files unexpectedly.
@@ -0,0 +1,169 @@
1
+ # Safety, Privacy, And Security
2
+
3
+ ## Data Inventory
4
+
5
+ ### Project Metadata
6
+
7
+ - Classification: INTERNAL.
8
+ - Collected from: repo path, user commands.
9
+ - Stored where: SQLite.
10
+ - Sent to: nowhere by default.
11
+ - Retention: until project is deleted.
12
+ - Analytics allowed: local aggregate only.
13
+ - Logging allowed: yes, without source content.
14
+
15
+ ### Map Graph
16
+
17
+ - Classification: INTERNAL, may become SENSITIVE if item text includes private details.
18
+ - Stored where: SQLite.
19
+ - Sent to: MCP clients only when requested by local user/agent.
20
+ - Retention: until deleted/exported.
21
+ - Analytics allowed: counts only.
22
+ - Logging allowed: metadata only.
23
+
24
+ ### Plans
25
+
26
+ - Classification: INTERNAL or SENSITIVE depending on repo content.
27
+ - Stored where: `.planr/`.
28
+ - Sent to: local MCP clients when requested.
29
+ - Retention: Git/repo controlled.
30
+ - Analytics allowed: no content analytics.
31
+ - Logging allowed: path/hash only.
32
+
33
+ ### Log
34
+
35
+ - Classification: INTERNAL or SENSITIVE depending on content.
36
+ - Stored where: SQLite.
37
+ - Sent to: local clients.
38
+ - Retention: until deleted/exported.
39
+ - Analytics allowed: status/counts only.
40
+ - Logging allowed: command metadata, not command output by default.
41
+
42
+ ### Secrets
43
+
44
+ - Classification: SECRET.
45
+ - Stored where: never in Planr.
46
+ - Sent to: never intentionally.
47
+ - Logging allowed: no.
48
+
49
+ ## Data Classification
50
+
51
+ - PUBLIC: public docs, release metadata.
52
+ - INTERNAL: item ids, statuses, event types, local metrics.
53
+ - PERSONAL: username, machine path if it identifies a person.
54
+ - SENSITIVE: private code plans, private tickets, prompts, transcripts, review content.
55
+ - SECRET: tokens, API keys, credentials, signing keys.
56
+
57
+ ## Local Data
58
+
59
+ REQ-SEC-001: Planr stores V1 data locally under the repository or configured Planr home.
60
+
61
+ REQ-SEC-002: Planr must respect filesystem permissions and avoid writing outside configured paths except explicit install/config commands.
62
+
63
+ ## Server Data
64
+
65
+ No server-side Planr storage in V1.
66
+
67
+ ## Third-Party/Provider Data
68
+
69
+ Planr does not call AI providers by default. Agent clients may send Planr-provided context to their providers according to those clients' policies. Planr must minimize context and allow users to inspect what is returned to agents.
70
+
71
+ ## Analytics Data
72
+
73
+ Allowed local diagnostics:
74
+
75
+ - command name;
76
+ - status code;
77
+ - duration;
78
+ - db schema version;
79
+ - number of items;
80
+ - event type;
81
+ - client integration type.
82
+
83
+ Forbidden analytics:
84
+
85
+ - source code;
86
+ - prompt/response text;
87
+ - plan body content;
88
+ - command output containing source or secrets;
89
+ - secrets, tokens, env vars;
90
+ - file contents.
91
+
92
+ ## Consent And Disclosure Requirements
93
+
94
+ - REQ-SEC-010: Transcript capture requires explicit opt-in.
95
+ - REQ-SEC-011: Remote HTTP mode, if added, must require explicit opt-in and authentication.
96
+ - REQ-SEC-012: Install commands must show what files they will create or modify.
97
+
98
+ ## Retention Policy
99
+
100
+ - SQLite map graph: retained until `planr project delete` or manual file removal.
101
+ - `.planr` Markdown: retained under user Git/repo policy.
102
+ - Debug logs: bounded retention; default 14 days if enabled.
103
+ - Transcript capture: disabled by default; retention user-configurable.
104
+
105
+ ## Export And Deletion Policy
106
+
107
+ - `planr export` must produce map graph, plans, contexts, and logs.
108
+ - `planr project delete` must remove local database records and optionally `.planr` files with explicit confirmation.
109
+ - `planr scrub` must detect likely secrets in contexts and logs.
110
+
111
+ ## Logging Policy
112
+
113
+ Allowed logs:
114
+
115
+ - item id;
116
+ - project id;
117
+ - worker id;
118
+ - command name;
119
+ - exit code;
120
+ - duration;
121
+ - status transition.
122
+
123
+ Forbidden logs:
124
+
125
+ - API keys and tokens;
126
+ - env var values;
127
+ - full prompts/responses;
128
+ - source file content;
129
+ - private plan body content by default.
130
+
131
+ ## Security Controls
132
+
133
+ - REQ-SEC-020: SQLite writes must use parameterized queries.
134
+ - REQ-SEC-021: MCP mutation tools must validate schemas and item state transitions.
135
+ - REQ-SEC-022: HTTP server binds to localhost by default.
136
+ - REQ-SEC-023: Shell/agent runner commands must be explicit and auditable.
137
+ - REQ-SEC-024: Destructive operations require preview or confirmation.
138
+ - REQ-SEC-025: Database schema upgrades must be tested against existing schemas.
139
+
140
+ ## Abuse Prevention
141
+
142
+ Planr is local-first, so abuse risk is mostly local command execution and data exfiltration through agent clients. Mitigations:
143
+
144
+ - separate read and mutation tools;
145
+ - no implicit shell execution from plan files;
146
+ - no hidden remote sync;
147
+ - content minimization in MCP responses;
148
+ - optional policy to deny mutation tools in review-only clients.
149
+
150
+ ## Safety Risk Taxonomy
151
+
152
+ Planr is generally S1/S2:
153
+
154
+ - S1: wrong item state may waste developer time.
155
+ - S2: private code or item text may be exposed if sent to agent providers.
156
+
157
+ Planr must not make medical, legal, financial, or regulated-domain decisions.
158
+
159
+ ## Compliance Notes
160
+
161
+ - V1 does not claim SOC 2, GDPR compliance, or enterprise compliance.
162
+ - Privacy policy and security documentation are required before any hosted service.
163
+
164
+ ## Legal/Platform Review Checklist
165
+
166
+ - Review license obligations for any retained code, docs, or assets.
167
+ - Review MCP tool permissions and security copy.
168
+ - Review privacy disclosures for transcript capture.
169
+ - Review package-manager install scripts for supply-chain risk.