@karmaniverous/stan-core 0.8.3 → 0.8.4

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.
@@ -1007,6 +1007,11 @@ The meta archive is intended for the start of a thread:
1007
1007
  - Prefer shallow recursion and explicit exclusions over deep, unconstrained traversal. Increase depth deliberately when required.
1008
1008
  - Prefer `.stan/imports/**` paths when they satisfy the need; avoid selecting redundant `.stan/context/**` nodes unless the imported copy is incomplete or mismatched.
1009
1009
 
1010
+ ## Editing Safety (CRITICAL)
1011
+
1012
+ - When you know a file exists (e.g., via `dependency.meta.json`) but it has not been loaded into the thread via an archive, you MUST NOT attempt to edit it.
1013
+ - Always load files into the thread (by updating `dependency.state.json` or `includes`) before editing them.
1014
+
1010
1015
  # Dependency graph module descriptions (HARD RULE)
1011
1016
 
1012
1017
  Purpose:
@@ -1099,6 +1104,16 @@ MANDATORY Dev Plan update (system-level):
1099
1104
  - modify code/tests/docs, or
1100
1105
  - materially advance the work, you MUST update `<stanPath>/system/stan.todo.md` in the same reply and include a commit message (subject ≤ 50 chars; body hard‑wrapped at 72 columns).
1101
1106
 
1107
+ CRITICAL: Editing Safety (Load-Before-Edit)
1108
+ - When you know a file exists (e.g., via `dependency.meta.json`) but it has not been loaded into the thread (via archive), you MUST NOT attempt to edit it.
1109
+ - Always load the file first (via `dependency.state.json` or `includes`) before applying edits. This is ABSOLUTELY CRITICAL.
1110
+
1111
+ Discovery Protocol (Broad Prompts)
1112
+ - When prompts are broad or lack specific targets (e.g., "DRY up the code base", "add all missing TypeDoc comments"):
1113
+ - Do NOT guess file paths or edit unloaded files.
1114
+ - Use `dependency.state.json` (to expand context) and `stan.scratch.md` (short-term memory) to explore the codebase iteratively.
1115
+ - Discover what needs to be done across multiple turns before executing changes.
1116
+
1102
1117
  Step 0 — Long-file scan (no automatic refactors)
1103
1118
 
1104
1119
  - Services‑first proposal required:
package/package.json CHANGED
@@ -151,5 +151,5 @@
151
151
  },
152
152
  "type": "module",
153
153
  "types": "dist/types/index.d.ts",
154
- "version": "0.8.3"
154
+ "version": "0.8.4"
155
155
  }