opencode-skills-collection 4.0.41 → 4.0.43

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 (73) hide show
  1. package/bundled-skills/.antigravity-install-manifest.json +5 -2
  2. package/bundled-skills/animejs-animation/SKILL.md +1 -1
  3. package/bundled-skills/anti-ui-slop/SKILL.md +51 -86
  4. package/bundled-skills/antigravity-design-expert/SKILL.md +1 -1
  5. package/bundled-skills/design-spells/SKILL.md +1 -1
  6. package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
  7. package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
  8. package/bundled-skills/docs/maintainers/repo-growth-seo.md +1 -1
  9. package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
  10. package/bundled-skills/docs/users/aas-core.md +1 -1
  11. package/bundled-skills/docs/users/bundles.md +1 -1
  12. package/bundled-skills/docs/users/claude-code-skills.md +1 -1
  13. package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
  14. package/bundled-skills/docs/users/kiro-integration.md +1 -1
  15. package/bundled-skills/docs/users/usage.md +3 -3
  16. package/bundled-skills/docs/users/visual-guide.md +4 -4
  17. package/bundled-skills/famulor-skill/SKILL.md +132 -0
  18. package/bundled-skills/famulor-skill/references/assistant-design.md +137 -0
  19. package/bundled-skills/famulor-skill/references/toolsets/assistants.md +64 -0
  20. package/bundled-skills/famulor-skill/references/toolsets/automations.md +36 -0
  21. package/bundled-skills/famulor-skill/references/toolsets/billing.md +15 -0
  22. package/bundled-skills/famulor-skill/references/toolsets/calls.md +23 -0
  23. package/bundled-skills/famulor-skill/references/toolsets/campaigns.md +42 -0
  24. package/bundled-skills/famulor-skill/references/toolsets/dashboards.md +27 -0
  25. package/bundled-skills/famulor-skill/references/toolsets/knowledge.md +28 -0
  26. package/bundled-skills/famulor-skill/references/toolsets/messaging.md +52 -0
  27. package/bundled-skills/famulor-skill/references/toolsets/migration.md +10 -0
  28. package/bundled-skills/famulor-skill/references/toolsets/platform.md +14 -0
  29. package/bundled-skills/famulor-skill/references/toolsets/settings.md +28 -0
  30. package/bundled-skills/famulor-skill/references/toolsets/tasks.md +12 -0
  31. package/bundled-skills/famulor-skill/references/toolsets/telephony.md +35 -0
  32. package/bundled-skills/iconsax-library/SKILL.md +1 -1
  33. package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package-lock.json +4 -4
  34. package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package.json +1 -1
  35. package/bundled-skills/lore/SKILL.md +104 -298
  36. package/bundled-skills/lore/references/audit-template.md +21 -4
  37. package/bundled-skills/lore/references/compatibility.md +51 -121
  38. package/bundled-skills/lore/references/config.md +22 -23
  39. package/bundled-skills/lore/references/entry-format.md +33 -3
  40. package/bundled-skills/lore/references/history-command.md +98 -2
  41. package/bundled-skills/lore/references/platform-mirrors.md +45 -16
  42. package/bundled-skills/lore/references/stale-new-markers.md +10 -8
  43. package/bundled-skills/lore/references/summary-template.md +8 -1
  44. package/bundled-skills/lore/references/workflows.md +192 -0
  45. package/bundled-skills/lore/scripts/README.md +14 -13
  46. package/bundled-skills/lore/scripts/README.zh-CN.md +14 -13
  47. package/bundled-skills/lore/scripts/find_duplicates.py +14 -4
  48. package/bundled-skills/lore/scripts/find_stale.py +68 -16
  49. package/bundled-skills/lore/scripts/history.py +235 -23
  50. package/bundled-skills/lore/scripts/id_hash.py +7 -4
  51. package/bundled-skills/lore/scripts/list_entries.py +82 -13
  52. package/bundled-skills/magic-animator/SKILL.md +1 -1
  53. package/bundled-skills/magic-ui-generator/SKILL.md +1 -1
  54. package/bundled-skills/poka-yoke/SKILL.md +172 -0
  55. package/bundled-skills/project-state-governor/SKILL.md +483 -0
  56. package/bundled-skills/project-state-governor/references/manifest-routing.md +47 -0
  57. package/bundled-skills/project-state-governor/references/persistence-lifecycle.md +93 -0
  58. package/bundled-skills/project-state-governor/references/project-state-schema.md +173 -0
  59. package/bundled-skills/project-state-governor/references/reconstruction-workflow.md +183 -0
  60. package/bundled-skills/salesforce-development/SKILL.md +107 -37
  61. package/bundled-skills/spec-driven-loop/SKILL.md +203 -0
  62. package/bundled-skills/spec-driven-loop/references/agent-and-judge-contracts.md +120 -0
  63. package/bundled-skills/spec-driven-loop/references/document-templates.md +184 -0
  64. package/bundled-skills/unsplash-integration/SKILL.md +1 -1
  65. package/bundled-skills/vizcom/SKILL.md +1 -1
  66. package/bundled-skills/x-twitter-scraper/SKILL.md +20 -7
  67. package/package.json +1 -1
  68. package/skills_index.json +136 -36
  69. package/bundled-skills/lore/README.md +0 -386
  70. package/bundled-skills/lore/README.zh-CN.md +0 -386
  71. package/bundled-skills/lore/WORKFLOWS.md +0 -216
  72. package/bundled-skills/lore/WORKFLOWS.zh-CN.md +0 -216
  73. package/bundled-skills/uizze-ui-research/SKILL.md +0 -128
@@ -0,0 +1,483 @@
1
+ ---
2
+ name: project-state-governor
3
+ description: "Govern evidence-backed canonical project state across sessions, branches, reviews, and research cycles without inventing product intent."
4
+ category: project-management
5
+ risk: critical
6
+ source: community
7
+ source_repo: Ghost011118/project-state-governor
8
+ source_type: community
9
+ date_added: "2026-08-20"
10
+ author: Ghost011118
11
+ tags: [project-state, project-memory, documentation, governance, context-engineering, multi-agent]
12
+ tools: [claude, cursor, gemini, codex, copilot, opencode]
13
+ license: "Apache-2.0"
14
+ license_source: "https://github.com/Ghost011118/project-state-governor/blob/main/LICENSE"
15
+ ---
16
+
17
+ # Project State Governor
18
+
19
+ ## Mission
20
+
21
+ Maintain the project's durable, evidence-backed state so a competent agent entering a fresh conversation can quickly determine:
22
+
23
+ - why the project exists;
24
+ - what is authoritative now;
25
+ - what is active, blocked, deferred, or done;
26
+ - what failed and should not be repeated;
27
+ - which decisions and constraints govern future work;
28
+ - what should happen next.
29
+
30
+ Operate as the project-state and documentation governor, not as the product owner, coding agent, research executor, or release approver.
31
+
32
+ Use this model:
33
+
34
+ - Git preserves history.
35
+ - The canonical project-state system preserves current durable knowledge.
36
+ - `AGENTS.md` defines how agents operate.
37
+ - Conversation history is working context, not authoritative project memory.
38
+ - Single source of truth means one canonical state system, not necessarily one giant file.
39
+
40
+ Read `references/project-state-schema.md` when creating or repairing canonical project state.
41
+ Read `references/persistence-lifecycle.md` when deciding what to recall, stage, persist, review, or consolidate.
42
+ Read `references/reconstruction-workflow.md` when cleaning fragmented history or contradictory documentation.
43
+ Read `references/manifest-routing.md` when the project is large enough to split canonical state across multiple files.
44
+
45
+ ## When to Use This Skill
46
+
47
+ - Use when resuming a substantial project after conversation, agent, or branch changes.
48
+ - Use when plans, status files, reviews, tests, and implementation evidence disagree.
49
+ - Use when a completion claim must be verified before it becomes durable project state.
50
+ - Use when expensive negative evidence or a recurring lesson should survive future sessions.
51
+ - Use when fragmented project documentation needs bounded consolidation.
52
+
53
+ Do not use this skill as a substitute for implementation, domain research, product ownership, or release approval.
54
+
55
+ ## Limitations
56
+
57
+ - It cannot determine undefined business intent or choose among legitimate owner decisions.
58
+ - It requires access to relevant project evidence; unsupported conclusions remain `UNKNOWN`.
59
+ - It does not replace engineering, security, or domain-specific verification workflows.
60
+ - It may modify canonical documentation when authorized, so broad cleanup or deletion must be staged and reviewed before application.
61
+
62
+ ## Worked Example
63
+
64
+ A feature branch claims that `export-redesign` is complete. The canonical
65
+ `PROJECT_STATE.md` still marks it `ACTIVE`, and its definition of done requires
66
+ both targeted tests and an integration test.
67
+
68
+ 1. Resolve every applicable `AGENTS.md` for the canonical state file and the
69
+ evidence paths before reading or changing them.
70
+ 2. Verify that the branch was merged and that targeted tests passed.
71
+ 3. Record that the required integration test has not run; classify this as an
72
+ evidence gap rather than inferring success from the merge.
73
+ 4. Preserve `export-redesign: ACTIVE`, record the missing integration evidence,
74
+ and identify running that test as the next authoritative step.
75
+
76
+ The durable result is a minimal state delta, not a rewritten history:
77
+
78
+ ```text
79
+ Status: ACTIVE (unchanged)
80
+ Verified: implementation merged; targeted tests passed
81
+ Missing evidence: required integration test
82
+ Next step: run and evaluate the integration test
83
+ ```
84
+
85
+ Only after that test satisfies the approved definition of done may the task
86
+ transition to `DONE`.
87
+
88
+ ## 1. Authority hierarchy
89
+
90
+ Before ranking conflicting sources, enforce a hard boundary: no owner or product
91
+ decision may override applicable law, an actual authorization boundary,
92
+ non-waivable security or safety constraints, or objective facts. Verify that a
93
+ claimed constraint is real and applicable; convention, preference, and
94
+ speculation do not become non-overridable merely by being labelled a risk.
95
+
96
+ Within the owner's legitimate decision authority, apply this default order:
97
+
98
+ 1. current explicit owner decision;
99
+ 2. current approved requirements and acceptance criteria;
100
+ 3. formal product and technical contracts, schemas, APIs, protocols, and risk controls;
101
+ 4. tests traceable to authoritative requirements;
102
+ 5. current verified implementation behavior;
103
+ 6. current canonical project-state records;
104
+ 7. historical documentation;
105
+ 8. historical review reports;
106
+ 9. historical AI conversations, summaries, suggestions, or speculation.
107
+
108
+ Lower-authority evidence must not silently override higher-authority evidence.
109
+
110
+ Treat code as evidence of current behavior, not automatic proof of intended behavior.
111
+ Treat historical documentation as evidence of prior belief, not automatic proof of current truth.
112
+ Treat reviewer findings as hypotheses until verified.
113
+ Treat prior AI output as non-authoritative unless supported by stronger evidence.
114
+
115
+ If materially conflicting evidence leaves multiple legitimate business outcomes, escalate only the smallest unresolved owner decision.
116
+
117
+ ## 2. Canonical state modes
118
+
119
+ Use the smallest structure that stays clear.
120
+
121
+ ### Compact mode
122
+
123
+ Prefer for small and medium projects:
124
+
125
+ ```text
126
+ AGENTS.md
127
+ PROJECT_STATE.md
128
+ ```
129
+
130
+ ### Scaled mode
131
+
132
+ Use when `PROJECT_STATE.md` becomes too large, mixes unrelated subsystems, or repeatedly forces irrelevant context loading:
133
+
134
+ ```text
135
+ AGENTS.md
136
+ .project/
137
+ MANIFEST.md
138
+ STATE.md
139
+ DECISIONS.md
140
+ CONSTRAINTS.md
141
+ NEGATIVE_EVIDENCE.md
142
+ areas/
143
+ <subsystem>.md
144
+ ```
145
+
146
+ The files together form one canonical state system.
147
+ Do not split merely for aesthetics.
148
+ Do not duplicate the same fact across canonical files unless one copy is clearly a pointer.
149
+
150
+ Allow separate durable technical documentation when it has an independent stable purpose, such as README, API/protocol specifications, architecture docs, schemas, security policies, runbooks, dataset specifications, legal/compliance docs, or user-facing docs.
151
+
152
+ Do not fragment progress, roadmap, current TODOs, review conclusions, decisions, or GPT session summaries across ad hoc files.
153
+
154
+ ## 3. Classify intent before persisting
155
+
156
+ Use the smallest fitting type.
157
+
158
+ ### MISSION
159
+ A long-lived reason the project exists. It survives many implementations and experiments.
160
+
161
+ ### SUCCESS_CRITERION
162
+ A durable definition of meaningful project success. Never invent one merely to make a mission measurable.
163
+
164
+ ### WORKSTREAM
165
+ A coherent multi-task initiative with a meaningful end or pause condition.
166
+
167
+ ### MILESTONE
168
+ A bounded intermediate outcome spanning multiple tasks.
169
+
170
+ ### TASK
171
+ Bounded work with a recognizable closure condition.
172
+
173
+ ### RESEARCH_HYPOTHESIS
174
+ A falsifiable proposition requiring evidence. A failed hypothesis does not fail the mission.
175
+
176
+ ### DECISION
177
+ An owner-approved or objectively established choice that materially constrains future work.
178
+
179
+ ### CONSTRAINT
180
+ A technical, business, risk, authorization, compatibility, data, research-integrity, or operational rule future work must respect.
181
+
182
+ ### BLOCKER
183
+ A confirmed condition preventing meaningful progress.
184
+
185
+ ### DEFERRED
186
+ Real work intentionally postponed.
187
+
188
+ ### QUESTION
189
+ Persist only if unresolved status materially affects future work.
190
+
191
+ ### LESSON
192
+ A concise, validated pitfall or correction worth retaining because future agents are likely to repeat an expensive mistake.
193
+
194
+ ## 4. Closure and hierarchy
195
+
196
+ Classify goals using this default test:
197
+
198
+ - one clear code/configuration change can finish it -> `TASK`;
199
+ - multiple tasks are required but a bounded intermediate finish exists -> `MILESTONE` or `WORKSTREAM`;
200
+ - it is an ongoing strategic objective across many iterations -> `MISSION` or long-term `WORKSTREAM`;
201
+ - experimentation is required to determine truth -> `RESEARCH_HYPOTHESIS`.
202
+
203
+ Use hierarchical completion rather than one global `DONE` claim:
204
+
205
+ - `SESSION_DOD`: what this execution session promised to complete;
206
+ - `TASK_DOD`: acceptance and verification required for the bounded task;
207
+ - `MILESTONE_DOD`: required child outcomes for the milestone;
208
+ - `WORKSTREAM_DOD`: conditions for the initiative to complete or pause;
209
+ - `MISSION_SUCCESS`: owner-defined project success criteria.
210
+
211
+ Never infer that a parent is complete merely because a child completed.
212
+
213
+ Example:
214
+
215
+ ```text
216
+ session DONE != task DONE
217
+ task DONE != milestone DONE
218
+ milestone DONE != workstream DONE
219
+ workstream COMPLETED != mission success
220
+ ```
221
+
222
+ ## 5. Session bootstrap and recall
223
+
224
+ When repository access exists and project-level conclusions are required:
225
+
226
+ 1. read the repository-root `AGENTS.md` when present;
227
+ 2. identify candidate paths that may be inspected, written, moved, or deleted;
228
+ 3. before acting on each candidate path, resolve its complete instruction scope: include the candidate itself when it is an existing directory, otherwise stop at its parent; for recursive directory operations, discover every nested `AGENTS.md` in the affected subtree before inspecting or mutating that subtree; deeper rules govern only their subtree;
229
+ 4. detect compact or scaled canonical-state mode;
230
+ 5. in scaled mode, read `.project/MANIFEST.md` first;
231
+ 6. read current state/brief before historical material;
232
+ 7. identify current Git branch and working tree;
233
+ 8. inspect relevant recent commits, code, tests, configuration, and contracts;
234
+ 9. load domain-specific governance files when applicable;
235
+ 10. load only task-relevant canonical area files;
236
+ 11. inspect historical documentation only when needed to resolve state or conflict.
237
+
238
+ Use progressive retrieval. Do not load the whole repository history or every memory file by default.
239
+
240
+ If canonical state is missing, reconstruct it from repository evidence rather than fabricating it from conversation alone.
241
+
242
+ ## 6. Provenance and confidence
243
+
244
+ For durable facts whose reliability materially matters, capture concise provenance and confidence.
245
+
246
+ Preferred provenance includes:
247
+
248
+ - owner decision or issue ID;
249
+ - commit SHA;
250
+ - test name/result;
251
+ - contract/schema path;
252
+ - experiment/candidate/manifest ID;
253
+ - authoritative file path and section.
254
+
255
+ Use confidence labels only when they add value:
256
+
257
+ - `CONFIRMED`: directly supported by authoritative evidence;
258
+ - `INFERRED`: best current interpretation, but not directly authoritative;
259
+ - `UNKNOWN`: unresolved or insufficiently supported.
260
+
261
+ Never persist `INFERRED` as if it were settled fact.
262
+ Represent material inference explicitly as hypothesis, question, or provisional state.
263
+
264
+ Do not add provenance noise to obvious low-impact facts.
265
+
266
+ ## 7. Semantic State Diff
267
+
268
+ After meaningful work, ask:
269
+
270
+ > Did this work create, remove, invalidate, complete, clarify, or materially modify a durable project fact?
271
+
272
+ Persist when one or more occurred:
273
+
274
+ - mission or owner-defined success criteria changed;
275
+ - a workstream/milestone began, ended, paused, blocked, or materially changed;
276
+ - a task changed lifecycle state;
277
+ - a durable decision was made;
278
+ - an important invariant or constraint was discovered;
279
+ - a blocker appeared or was removed;
280
+ - a research hypothesis changed validated state;
281
+ - negative evidence changed future direction;
282
+ - project phase or roadmap priority materially changed;
283
+ - meaningful debt was explicitly deferred;
284
+ - a historical project belief was proven obsolete;
285
+ - a validated recurring pitfall or owner correction should become a `LESSON`.
286
+
287
+ Do not persist merely because:
288
+
289
+ - a conversation occurred;
290
+ - code or files were inspected;
291
+ - commands were run;
292
+ - an intermediate debugging theory appeared;
293
+ - an AI suggested an idea;
294
+ - a reviewer raised an unverified concern;
295
+ - wording changed without semantic consequence;
296
+ - a known fact was repeated.
297
+
298
+ No durable state change means no canonical-state write.
299
+
300
+ ## 8. Persistence lifecycle and write gate
301
+
302
+ Use the lifecycle in `references/persistence-lifecycle.md`:
303
+
304
+ ```text
305
+ RECALL -> PROPOSE -> VERIFY -> APPLY -> CONSOLIDATE
306
+ ```
307
+
308
+ Never jump from conversation directly to permanent state when material uncertainty exists.
309
+
310
+ For low-risk deterministic updates, apply after evidence verification and a semantic-diff self-check.
311
+
312
+ Require owner review or explicit prior authorization before applying changes that:
313
+
314
+ - redefine mission or success criteria;
315
+ - choose among legitimate business outcomes;
316
+ - delete documentation with uncertain unique value;
317
+ - perform broad/mass cleanup outside previously authorized scope;
318
+ - convert an inferred state into an owner commitment;
319
+ - accept release, research-integrity, security, legal, or operational risk.
320
+
321
+ When reconstruction or broad cleanup is requested but deletion authority is unclear, stage the cleanup set and report the proposed diff rather than deleting.
322
+
323
+ ## 9. Convert conversations into semantic state, not transcripts
324
+
325
+ Never archive raw conversation history by default.
326
+
327
+ Do not persist chronology such as:
328
+
329
+ > User asked X, GPT suggested Y, then we considered Z.
330
+
331
+ Persist only the durable semantic result.
332
+
333
+ If a long discussion ends in a verified rejection of an expensive research direction, preserve the concise rejection, reason, and evidence reference.
334
+ If the discussion produced no durable lesson, store nothing.
335
+
336
+ ## 10. Status transitions
337
+
338
+ Use these defaults unless the project defines authoritative alternatives.
339
+
340
+ Tasks:
341
+
342
+ - `PROPOSED`
343
+ - `ACTIVE`
344
+ - `BLOCKED`
345
+ - `DONE`
346
+ - `CANCELLED`
347
+ - `DEFERRED`
348
+
349
+ Research hypotheses:
350
+
351
+ - `PROPOSED`
352
+ - `ACTIVE`
353
+ - `SUPPORTED`
354
+ - `REJECTED`
355
+ - `INCONCLUSIVE`
356
+ - `INVALIDATED`
357
+ - `FORWARD_ONLY`
358
+
359
+ Workstreams:
360
+
361
+ - `PLANNED`
362
+ - `ACTIVE`
363
+ - `BLOCKED`
364
+ - `COMPLETED`
365
+ - `PAUSED`
366
+ - `CANCELLED`
367
+
368
+ Do not invent new status vocabularies unless necessary.
369
+
370
+ ## 11. Completion claims
371
+
372
+ Never mark a task `DONE` merely because code was written or an agent says it is finished.
373
+
374
+ Before accepting a completion claim:
375
+
376
+ 1. identify the relevant DoD level;
377
+ 2. identify authoritative acceptance criteria;
378
+ 3. verify implementation/build/test/integration evidence appropriate to the task;
379
+ 4. verify required decisions/dependencies are resolved;
380
+ 5. ensure no child-only completion is being promoted to a parent-level claim;
381
+ 6. record only the resulting durable state transition.
382
+
383
+ If verification is incomplete, do not change lifecycle status based on the
384
+ completion claim. Preserve the item's existing status and record the missing
385
+ evidence or blocker separately; transition status only when independent
386
+ evidence supports that change.
387
+
388
+ ## 12. Documentation, branch, and evidence hygiene
389
+
390
+ - Follow `references/reconstruction-workflow.md` to classify status documents, resolve historical conflicts, and stage cleanup without losing unique durable information.
391
+ - Keep branch-local implementation state branch-local until it is merged or accepted under project rules; never blend divergent branches silently.
392
+ - Preserve only decision-relevant negative evidence and recurring lessons. Git remains the detailed historical archive.
393
+ - Consolidate duplicate and obsolete state when it impairs retrieval, but stage any deletion whose significance is uncertain.
394
+ - Never persist secrets, authentication material, or unnecessary sensitive personal data in canonical project state.
395
+
396
+ ## 13. Coordination with other governors
397
+
398
+ Engineering governors own technical defect classification, fixes, verification, and release risk. Research governors own protocols, stage gates, experiments, and evidence requirements. Consume their verified outputs as evidence; do not bypass or duplicate those workflows merely to advance project status.
399
+
400
+ ## 14. Owner authority boundary
401
+
402
+ Autonomously:
403
+
404
+ - classify evidence;
405
+ - identify duplicate status docs;
406
+ - identify objectively obsolete information;
407
+ - update lifecycle state when completion is objectively verified;
408
+ - compress redundant state;
409
+ - reconcile deterministic factual conflicts;
410
+ - remove clearly redundant generated status docs when deletion is already authorized.
411
+
412
+ Do not autonomously:
413
+
414
+ - redefine mission;
415
+ - redefine product semantics;
416
+ - invent acceptance criteria;
417
+ - accept unresolved release/research/security/legal risk;
418
+ - choose among multiple legitimate business outcomes;
419
+ - erase uniquely valuable history when significance is uncertain;
420
+ - treat prior AI output as authoritative because an AI wrote it.
421
+
422
+ Escalate only the smallest unresolved owner decision.
423
+
424
+ ## 15. Repository reconstruction mode
425
+
426
+ When asked to clean, repair, consolidate, or reconstruct a repository with fragmented history, enter `REPOSITORY_STATE_RECONSTRUCTION` and follow `references/reconstruction-workflow.md`.
427
+
428
+ Do not use reconstruction as justification for unrelated feature work.
429
+
430
+ ## 16. State update equation
431
+
432
+ Before applying canonical state, compute:
433
+
434
+ ```text
435
+ OLD_STATE
436
+ + VERIFIED_NEW_FACTS
437
+ - INVALIDATED_FACTS
438
+ = NEW_STATE
439
+ ```
440
+
441
+ For material updates, make the proposed semantic delta explicit before applying it.
442
+ Distinguish `CONFIRMED`, `INFERRED`, and `UNKNOWN` where reliability matters.
443
+
444
+ ## 17. Final reporting
445
+
446
+ After meaningful governance work, report only:
447
+
448
+ ### Project State Changes
449
+ Durable state transitions applied.
450
+
451
+ ### Current Focus
452
+ Active mission/workstream/milestone/task/research direction.
453
+
454
+ ### Remaining Blockers / Decisions
455
+ Only genuine unresolved blockers or owner decisions.
456
+
457
+ ### Documentation Actions
458
+ Canonical docs changed, staged, consolidated, or removed.
459
+
460
+ ### Evidence Notes
461
+ Only provenance or confidence caveats that materially affect trust.
462
+
463
+ If no durable state changed, say so briefly and do not manufacture an update.
464
+
465
+ ## 18. Anti-patterns
466
+
467
+ Never:
468
+
469
+ - dump conversations into project docs;
470
+ - create a new status/review/TODO file after each session;
471
+ - assume code automatically defines intended behavior;
472
+ - assume reviewer findings are automatically true;
473
+ - persist unsupported inference as settled fact;
474
+ - accumulate completed/cancelled/duplicate TODOs indefinitely;
475
+ - confuse session, task, milestone, workstream, and mission completion;
476
+ - declare `DONE` without required verification;
477
+ - keep obsolete status files merely "for reference" when Git already preserves them;
478
+ - delete conflicting docs before extracting unique durable information;
479
+ - load every memory file for every task;
480
+ - use documentation cleanup as permission to rewrite unrelated code.
481
+
482
+ The objective is not maximum documentation.
483
+ The objective is minimum sufficient, high-confidence, continuously maintained project knowledge.
@@ -0,0 +1,47 @@
1
+ # Manifest Routing for Large Projects
2
+
3
+ Use scaled mode only when a single `PROJECT_STATE.md` is no longer efficient.
4
+
5
+ ## Trigger conditions
6
+
7
+ Consider scaled mode when one or more are repeatedly true:
8
+
9
+ - agents must read large irrelevant sections to work on one subsystem;
10
+ - decisions/constraints substantially outgrow active-state information;
11
+ - unrelated research and engineering streams compete for context;
12
+ - negative evidence is important but rarely needed;
13
+ - the canonical state file is becoming difficult to scan or safely edit.
14
+
15
+ Do not split based on line count alone.
16
+
17
+ ## Routing principle
18
+
19
+ `MANIFEST.md` is the stable map.
20
+ `STATE.md` is the fast cold-start brief.
21
+ Other files are loaded only when relevant.
22
+
23
+ Default load path:
24
+
25
+ ```text
26
+ AGENTS.md
27
+ -> .project/MANIFEST.md
28
+ -> .project/STATE.md
29
+ -> only task-relevant routed files
30
+ ```
31
+
32
+ ## Routing rules
33
+
34
+ - Put global mission, current phase, current workstreams and tasks, recent terminal transitions, blockers, and next steps in `STATE.md`.
35
+ - Put durable choices in `DECISIONS.md`.
36
+ - Put non-negotiable rules in `CONSTRAINTS.md`.
37
+ - Put expensive failures and repeated pitfalls in `NEGATIVE_EVIDENCE.md`.
38
+ - Put subsystem-specific state in `areas/<subsystem>.md` only when the subsystem is large enough to justify independent loading.
39
+ - Keep global facts out of area files unless represented as pointers.
40
+ - Do not create one file per task, conversation, or day.
41
+
42
+ ## MANIFEST quality rules
43
+
44
+ Keep MANIFEST concise and navigational.
45
+ Every routed file should state what question it answers.
46
+ Remove routes when files are merged or deleted.
47
+ Do not let MANIFEST become a second project summary.
@@ -0,0 +1,93 @@
1
+ # Persistence Lifecycle
2
+
3
+ Use this lifecycle for durable project knowledge:
4
+
5
+ ```text
6
+ RECALL -> PROPOSE -> VERIFY -> APPLY -> CONSOLIDATE
7
+ ```
8
+
9
+ ## 1. RECALL
10
+
11
+ Load only enough canonical state to understand the task.
12
+
13
+ - compact mode: read `PROJECT_STATE.md`;
14
+ - scaled mode: read `.project/MANIFEST.md`, then `STATE.md`, then only relevant routed files;
15
+ - inspect Git/code/tests/contracts only as needed;
16
+ - do not load historical docs unless a conflict or reconstruction requires them.
17
+
18
+ ## 2. PROPOSE
19
+
20
+ After meaningful work, compute a semantic state delta.
21
+
22
+ Represent only changes such as:
23
+
24
+ - lifecycle transition;
25
+ - new verified decision/constraint;
26
+ - new blocker or resolved blocker;
27
+ - new/rejected research hypothesis;
28
+ - material negative evidence;
29
+ - durable owner correction/lesson;
30
+ - superseded historical belief.
31
+
32
+ Do not propose transcript summaries.
33
+
34
+ ## 3. VERIFY
35
+
36
+ Before persistence:
37
+
38
+ - check authority hierarchy;
39
+ - verify completion claims against the correct DoD level;
40
+ - verify branch scope;
41
+ - distinguish `CONFIRMED`, `INFERRED`, and `UNKNOWN`;
42
+ - ensure the update does not silently redefine business intent;
43
+ - ensure no secret, credential, token, or unnecessary sensitive personal data is being persisted;
44
+ - ensure the same fact is not already represented canonically.
45
+
46
+ ## 4. APPLY
47
+
48
+ ### Auto-apply is allowed when
49
+
50
+ - the state transition is deterministic and evidence-backed;
51
+ - scope is already authorized;
52
+ - no owner/business semantics are being created;
53
+ - no uncertain unique history is being deleted;
54
+ - the change is low-risk and reversible through Git.
55
+
56
+ ### Stage for owner review when
57
+
58
+ - mission or success criteria would change;
59
+ - multiple legitimate business outcomes remain;
60
+ - deletion scope is broad or uncertain;
61
+ - unique historical significance is uncertain;
62
+ - an `INFERRED` state would become an owner commitment;
63
+ - release, research-integrity, security, legal, or operational risk would be accepted.
64
+
65
+ A staged proposal should show the semantic delta, not a long prose recap.
66
+
67
+ ## 5. CONSOLIDATE
68
+
69
+ Run consolidation when canonical state becomes noisy or repetitive.
70
+
71
+ Actions:
72
+
73
+ - deduplicate facts;
74
+ - remove stale active items;
75
+ - compress completed milestones;
76
+ - preserve only high-value negative evidence;
77
+ - merge overlapping lessons;
78
+ - remove low-value chronology;
79
+ - split into scaled mode only when retrieval improves;
80
+ - update MANIFEST routes after splits/merges.
81
+
82
+ Do not perform lossy consolidation when significance is uncertain.
83
+
84
+ ## Persistence quality test
85
+
86
+ Before finishing, ask:
87
+
88
+ 1. Would a fresh agent understand what changed?
89
+ 2. Is every persisted claim useful for future decisions?
90
+ 3. Is each high-impact claim supported or explicitly provisional?
91
+ 4. Did we avoid storing conversation noise?
92
+ 5. Did we avoid duplicating the same fact?
93
+ 6. Is the canonical state now easier, not harder, to load?