majlis 0.8.0 → 0.8.1
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/dist/cli.js +24 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -835,15 +835,20 @@ the database export.
|
|
|
835
835
|
2. Read docs/ files for narrative context, but trust the database when they conflict.
|
|
836
836
|
3. Cross-reference: same question in different language? contradicting decisions?
|
|
837
837
|
workaround masking root cause?
|
|
838
|
-
4.
|
|
838
|
+
4. **VERIFY before claiming code is live.** Dead-ended experiments are REVERTED \u2014
|
|
839
|
+
their code changes do NOT exist on the current branch. Before writing that code
|
|
840
|
+
is "live", "shipping", or "regressing", use Grep/Glob to confirm it actually
|
|
841
|
+
exists in the current codebase. If the code only existed on experiment branches,
|
|
842
|
+
say so explicitly and mark the issue as RESOLVED, not CRITICAL.
|
|
843
|
+
5. Update fragility map: thin coverage, weak components, untested judgment
|
|
839
844
|
decisions, broken provenance.
|
|
840
|
-
|
|
845
|
+
6. Update dead-end registry: compress rejected experiments into structural constraints.
|
|
841
846
|
Mark each dead-end as [structural] or [procedural].
|
|
842
|
-
|
|
847
|
+
7. REWRITE synthesis using the Write tool \u2014 shorter and denser. If it's growing,
|
|
843
848
|
you're accumulating, not compressing. You MUST use the Write tool to update
|
|
844
849
|
docs/synthesis/current.md, docs/synthesis/fragility.md, and docs/synthesis/dead-ends.md.
|
|
845
850
|
The framework does NOT auto-save your output for these files.
|
|
846
|
-
|
|
851
|
+
8. Review classification: new sub-types? resolved sub-types?
|
|
847
852
|
|
|
848
853
|
You may ONLY write to these three files:
|
|
849
854
|
- docs/synthesis/current.md
|
|
@@ -5389,8 +5394,22 @@ async function doCompress(db, root) {
|
|
|
5389
5394
|
const sizeBefore = fs11.existsSync(synthesisPath) ? fs11.statSync(synthesisPath).size : 0;
|
|
5390
5395
|
const sessionCount = getSessionsSinceCompression(db);
|
|
5391
5396
|
const dbExport = exportForCompressor(db);
|
|
5397
|
+
let currentBranch = "main";
|
|
5398
|
+
try {
|
|
5399
|
+
currentBranch = (0, import_node_child_process5.execFileSync)("git", ["rev-parse", "--abbrev-ref", "HEAD"], {
|
|
5400
|
+
cwd: root,
|
|
5401
|
+
encoding: "utf-8"
|
|
5402
|
+
}).trim();
|
|
5403
|
+
} catch {
|
|
5404
|
+
}
|
|
5392
5405
|
const result = await spawnAgent("compressor", {
|
|
5393
|
-
taskPrompt: "## Structured Data (CANONICAL \u2014 from SQLite database)\nThe database export below is the source of truth. docs/ files are agent artifacts that may contain stale or incorrect information. Cross-reference everything against this data.\n\n" + dbExport +
|
|
5406
|
+
taskPrompt: "## Structured Data (CANONICAL \u2014 from SQLite database)\nThe database export below is the source of truth. docs/ files are agent artifacts that may contain stale or incorrect information. Cross-reference everything against this data.\n\n" + dbExport + `
|
|
5407
|
+
|
|
5408
|
+
## Current Branch: ${currentBranch}
|
|
5409
|
+
Dead-ended experiments have been REVERTED \u2014 their code changes do NOT exist on this branch. Before claiming any code is "live" or "regressing", verify with Grep/Glob that it exists in the current codebase.
|
|
5410
|
+
|
|
5411
|
+
## Your Task
|
|
5412
|
+
Read ALL experiments, decisions, doubts, challenges, verification reports, reframes, and recent diffs. Cross-reference for contradictions, redundancies, and patterns. REWRITE docs/synthesis/current.md \u2014 shorter and denser. Update docs/synthesis/fragility.md with current weak areas. Update docs/synthesis/dead-ends.md with structural constraints from rejected experiments.`
|
|
5394
5413
|
}, root);
|
|
5395
5414
|
const sizeAfter = fs11.existsSync(synthesisPath) ? fs11.statSync(synthesisPath).size : 0;
|
|
5396
5415
|
recordCompression(db, sessionCount, sizeBefore, sizeAfter);
|