@foundocs/foundocs-setup 0.3.10 → 0.3.11

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.
package/README.md CHANGED
@@ -117,9 +117,11 @@ Dreaming adversarial fixtures and trace checks live in `eval/`; see `eval/README
117
117
 
118
118
  The bundled capture skill reuses existing topic folders beneath the fixed `knowledge/rules/`, `knowledge/learnings/` and `knowledge/decisions/` roots. Nested topic folders and files directly under a root are both valid. Related facts stay together rather than becoming fragments or duplicate shallow folders. Verified, reusable lessons from correcting the agent’s own mistakes are captured in the same turn; typo-only and unverified fixes are excluded.
119
119
 
120
- Dreaming inspects dispersed knowledge and similar folders within its existing six stages. Only a server-verified path-only update within the same category may be applied automatically: body, title, TL;DR, ordered tags, creation date and other metadata must stay unchanged. Semantic, category and mixed changes retain owner review. Older servers without explicit automatic-move support receive review candidates. Prior moves and proposal history guide deduplication so repeated runs avoid cosmetic renames.
120
+ Dreaming inspects dispersed knowledge and similar folders within its existing six stages. Consolidation compares concrete topic groups, destination folders and retrieval benefits, including files still directly under a category root. Clear filenames alone do not justify skipping that assessment; justified moves are submitted, while a zero-move result records why the candidate groups should stay in place. The review avoids fragmentation and cosmetic churn rather than requiring a move quota.
121
121
 
122
- The skills explain stable IDs, previous-path aliases, relative-link bases, move receipts and versioned requests. Ordinary move undo uses the discovered `get_content_moves` / `undo_content_move` tools on explicit request; a Dreaming move returns to the exact saved proposal’s owner review for `revert`. New server tools are discovered dynamically. This release updates guidance, not an older server’s capabilities, and existing installed skills still require the consent-based update flow.
122
+ Only a server-verified path-only update within the same category may be applied automatically: body, title, TL;DR, ordered tags, creation date and other metadata must stay unchanged. Semantic, category and mixed changes retain owner review. Older servers without explicit automatic-move support receive review candidates. Prior moves and proposal history guide deduplication so repeated runs avoid cosmetic renames.
123
+
124
+ The skills explain stable IDs, previous-path aliases, relative-link bases, move receipts and versioned requests. Ordinary move undo uses the discovered `get_content_moves` / `undo_content_move` tools on explicit request; a Dreaming move returns to the exact saved proposal’s owner review for `revert`. New server tools are discovered dynamically. This release updates guidance, not an older server’s capabilities. Existing installations receive the guidance through `update-skills` or their enabled SessionStart update hook.
123
125
 
124
126
  ## Session discovery
125
127
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@foundocs/foundocs-setup",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "Repeatable project setup and agent skills for the Foundocs remote MCP server",
5
5
  "foundocsRelease": {
6
- "summary": "Distinguish MCP output schema failures, authentication, access, rate limits and connection errors without exposing credentials or response data."
6
+ "summary": "Assess concrete Dreaming topic groups and retrieval benefits before skipping folder organization; submit justified path-only moves and explain valid zero-move outcomes."
7
7
  },
8
8
  "type": "module",
9
9
  "bin": {
@@ -38,3 +38,5 @@ On an explicit Dreaming request, read [the Dreaming protocol](references/dreamin
38
38
  Dreaming analyzes this project's knowledge, including dispersed or similar topical folders under the fixed `rules`, `learnings` and `decisions` roots. Documents and change events are read-only evidence. Only server-permitted exact duplicate representative links, non-authoritative related_to links and same-category path-only knowledge moves can be applied automatically. The server must verify that all non-path content and metadata remain unchanged; semantic, category or mixed changes require owner review. Inspect current capabilities rather than assuming an older server supports automatic moves. Never approve proposals yourself, permanently delete memories, or rewrite project instructions and tools.
39
39
 
40
40
  Persist progress and report server-confirmed results in the user's language. Analysis can finish with review still pending. A blocked, interrupted, or partly inspected run must not be presented as a successful full review.
41
+
42
+ Include a concrete folder-organization assessment in consolidation; follow the protocol's folder review criteria before concluding that no moves are useful. Valid root-level paths alone do not settle that assessment.
@@ -27,13 +27,22 @@ To read a complete proposal, use get_dream `{project_id, runId, changeId, offset
27
27
 
28
28
  Use these 1-based numbers when explaining stages or reporting progress. The server retains stable API IDs for existing runs: display stages 1, 2, 3, 4, 5, 6 map to API IDs 3, 4, 5, 6, 7, 8 respectively. Use the API IDs in checkpoint `stage` and candidate `stages`; preserve IDs from saved runs.
29
29
 
30
- - **1 — Memory Consolidation:** Distinguish byte-identical, same-scope duplicates from similar assertions. Find related knowledge dispersed across topical folders and propose placing it in an existing suitable folder within its category. Direct-root files are valid; nesting is useful only when it improves retrieval. A path-only consolidation may qualify below; differences in environment, exceptions, provenance, metadata, or applicability disqualify automatic duplicate linking. A semantic merge is a reviewed rewrite; preserve every unique condition and source.
30
+ - **1 — Memory Consolidation:** Distinguish byte-identical, same-scope duplicates from similar assertions. Assess topical placement using the folder review below, including knowledge still stored directly under a category root. Submit justified moves through the permitted Dreaming path; related links do not replace folder organization. Differences in environment, exceptions, provenance, metadata, or applicability disqualify automatic duplicate linking. A semantic merge is a reviewed rewrite; preserve every unique condition and source.
31
31
  - **2 — Conflict Resolution:** Compare matching subjects, scope, environment, and time period. Distinguish historical evolution from contradiction. Cite both sources and recommend a reviewed replacement, narrower scopes, or retaining the current state. A newer date never outranks an explicit rule by itself.
32
32
  - **3 — Knowledge Abstraction:** Identify recurring causes across independent experiences. Cite supporting cases, shared conditions, counterexamples, and limits. Prefer at least two independent cases; copied retellings count as one. Observations may describe patterns; activating generalized knowledge requires a reviewed create mutation.
33
33
  - **4 — Forgetting & Decay:** Require concrete evidence of obsolescence or lost applicability. Age and low retrieval frequency alone do not justify archival or lower importance, especially for rules and decisions. Explain retrieval impact and reversibility. Propose recoverable archive or importance changes for review; never permanent deletion.
34
34
  - **5 — Memory Linking:** Link supported shared subject matter without claiming causality or authority. Deduplicate existing relations. Only related_to and eligible duplicate_of are auto candidates. supersedes, contradicts, supports, and derived_from need review and source evidence.
35
35
  - **6 — Reflection:** State documented outcome, supported explanation, useful next action, and applicability. Positive retrieval feedback measures retrieval usefulness, not task success. One incident can support a bounded lesson, never an unsupported universal rule.
36
36
 
37
+ ## Folder organization review
38
+
39
+ For inspected targets, compare plausible same-category topic groups with their current placement and nearby existing folders. Keep the run's selected scope: listing nearby paths does not make their bodies inspected or authorize mutations outside the frozen targets.
40
+
41
+ - Group by shared subject and applicability, using the inspected content as evidence. Reuse a suitable existing folder, or choose a coherent topic folder when it makes related knowledge easier to find together. A folder does not need to exist already to be useful.
42
+ - For each plausible group, record the affected paths, proposed destination and retrieval benefit in its candidate or consolidation checkpoint reason. If retaining the paths, explain the specific scope mismatch, mixed topic or other reason that makes the group unhelpful. Clear filenames and valid root-level storage alone are insufficient reasons to skip this comparison.
43
+ - When a move is justified, submit it using the server-permitted disposition below. Do not stop at mentioning a possible folder or substitute only a related_to link. Preserve independent scopes and avoid one-file folders, cosmetic renames and repeated moves without a retrieval benefit.
44
+ - Zero moves remain valid when the comparison supports retaining the current placement. Report that conclusion and its concrete basis; do not create folders or proposals just to fill a quota. If the assessment remains unprocessed, defer the stage and report the remaining scope rather than marking it completed.
45
+
37
46
  ## Folder moves and undo
38
47
 
39
48
  Knowledge has fixed `knowledge/rules/`, `knowledge/learnings/` and `knowledge/decisions/` roots, with arbitrary topical nesting below them. Use the existing six stages for folder findings; do not add another stage or create empty folder records. Inspect live dream_memory policy before requesting an automatic move. If the connected server does not explicitly support server-verified same-category path-only updates, submit a review candidate instead. Tool presence or a client-side claim that a move is harmless is insufficient. Do not retry a missing capability with generic content writes.