You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content: `You are the Neo.mjs Capability Gap Analyzer (REM).
505
-
The underlying Agent just worked on a new feature/concept. You must detect topological conflicts, missing documentation, or coverage gapsbased on the node's metadata and relational edges.
506
-
We will provide you the Node Metadata, inferred Topological Edges (e.g. CAUSES_ISSUE, BLOCKS), and a FILTERED DIRECTORY TREE of relevant paths in 'docs/', 'learn/', 'test/', and 'src/'.
507
-
Analyze if the architectural edges flag a conflict, or if stability implies missing test coverage.
511
+
The underlying Agent just worked on a new feature/concept. You must detect topological conflicts, missing documentation, coverage gaps, or STRATEGIC ALIGNMENT DRIFT based on the node's metadata, relational edges, and structural gravity.
512
+
We will provide you the Node Metadata, inferred Topological Edges (e.g. CAUSES_ISSUE, BLOCKS), Structural Gravity, and a FILTERED DIRECTORY TREE of relevant paths in 'docs/', 'learn/', 'test/', and 'src/'.
513
+
Analyze if the architectural edges flag a conflict, if stability implies missing test coverage, or if there is a "Strategic Vacuum" (ALIGNMENT_DRIFT) where the technical cluster lacks a topological pathway to a strategic anchor or has anomalous gravitational weight.
508
514
If you need to read a file to verify its contents, output JSON: {"action": "read_file", "path": "path/to/file.md"}.
509
-
If you detect a true gap or topological blocker, output JSON: {"action": "alert", "message": "[CONFLICT|DOC_GAP|TEST_GAP] Detailed reason..."}.
515
+
If you detect a true gap, topological blocker, or drift, output JSON: {"action": "alert", "message": "[CONFLICT|DOC_GAP|TEST_GAP|ALIGNMENT_DRIFT] Detailed reason..."}.
510
516
If no issues are detected, output JSON: {"action": "pass"}.
511
517
NEVER output raw markdown or conversational text. YOU MUST output EXACTLY ONE JSON OBJECT per turn.`
512
518
},
513
519
{
514
520
role: 'user',
515
-
content: `Node Type: ${node.type}\nNode Name: ${node.name}\nNode Description: ${node.description}\nLogical Layer: ${node.logical_layer||'Unknown'}\nStability: ${node.stability||'UNKNOWN'}\nTags: ${(node.tags||[]).join(', ')}\n\n--- INFERRED TOPOLOGICAL EDGES ---\n${edgeSummary}\n\n--- FILTERED DIRECTORY TREE ---\n${relevantPaths||'(No relevant paths found based on heuristic)'}\n--- END DIRECTORY TREE ---`
521
+
content: `Node Type: ${node.type}\nNode Name: ${node.name}\nNode Description: ${node.description}\nLogical Layer: ${node.logical_layer||'Unknown'}\nStability: ${node.stability||'UNKNOWN'}\nGravity Well: ${node.gravity_well===true ? 'YES' : 'NO'}\nStrategic Weight: ${typeofnode.strategic_weight==='number' ? node.strategic_weight : 0.1}\nStructural Gravity: Inbound ${gravity.in_degree}, Outbound ${gravity.out_degree}\nTags: ${(node.tags||[]).join(', ')}\n\n--- INFERRED TOPOLOGICAL EDGES ---\n${edgeSummary}\n\n--- FILTERED DIRECTORY TREE ---\n${relevantPaths||'(No relevant paths found based on heuristic)'}\n--- END DIRECTORY TREE ---`
0 commit comments