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
docs: Add Strategic Co-Founder Protocol to AGENTS.md (#9684)
- Mandates the use of mutate_frontier tool when the user pivots context.
- Maintains dynamic alignment in Native Graph topology for agent orchestration.
Copy file name to clipboardExpand all lines: AGENTS.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,14 @@ Adhering to this recovery protocol is paramount for:
113
113
-**Accurate Analysis:** Ensuring that future session summaries and memory queries are based on a complete and truthful record.
114
114
-**Agent Learning:** Providing the necessary data for the agent to learn from its past interactions, including its own errors and recovery attempts.
115
115
116
-
## 5. Request Triage
116
+
## 5. The Strategic Co-Founder Protocol (Active Context Mutation)
117
+
118
+
If the user explicitly pivots the top-level focus of the session (e.g., "Let's switch from the Database to the Next.js UI layer", or "Let's focus on Item 2 of the epic"), you **MUST** actively update the Native Graph so that the context window strategy remains aligned.
119
+
120
+
-**Action:** You MUST invoke the `mutate_frontier` tool, passing the new conceptual target as `targetNodeId` (e.g. `nextjs-ui`).
121
+
-**Why:** This establishes a high-weight edge in the native graph topology, ensuring the Context Priming Engine (`get_context_frontier`) passes the updated reality to future turns and sessions (Session Amnesia prevention). This also functions as the trigger for background Librarian workflows to perform deep topological re-organizations.
122
+
123
+
## 6. Request Triage
117
124
118
125
First, classify the user's request into one of two categories:
119
126
@@ -125,13 +132,13 @@ First, classify the user's request into one of two categories:
125
132
126
133
**Note:** A conceptual discussion can become an actionable task. The moment the intent shifts from "what if..." to "let's do...", you must treat it as a new actionable request and apply the Ticket-First Gate.
127
134
128
-
## 6. Git Protocol
135
+
## 7. Git Protocol
129
136
130
137
-**Ticket ID Required:** The commit subject line **MUST** end with `(#TICKET_ID)`.
131
138
-**Correct:**`feat: Add infinite canvas (#8392)`
132
139
-**Standard:** Follow Conventional Commits.
133
140
134
-
## 7. Ticket Closure Protocol (Definition of Done)
141
+
## 8. Ticket Closure Protocol (Definition of Done)
135
142
136
143
You **MUST** perform these steps in order before marking a task as complete:
137
144
@@ -142,7 +149,7 @@ You **MUST** perform these steps in order before marking a task as complete:
142
149
- The task is complete (summarize the result).
143
150
4.**Close:** Only after steps 1-3 are complete can you close the ticket.
Working on the Neo platform requires long, complex sessions. To prevent your context window from becoming corrupted with multiple competing versions of the same file after several edits, you MUST adhere to this protocol:
148
155
@@ -152,15 +159,15 @@ Working on the Neo platform requires long, complex sessions. To prevent your con
152
159
4.**Use `grep_search` for Method Verification:** If you need to verify the current state of a specific method after changes, use `grep_search` with the `context` parameter to surgically extract only that method.
153
160
5.**No Shell Fallbacks:** You are strictly forbidden from using `cat` or `grep` via `run_shell_command` to read files. Always use the native `read_file` or `grep_search` tools.
154
161
155
-
## 9. Testing and Validation Protocol
162
+
## 10. Testing and Validation Protocol
156
163
157
164
To maintain repository hygiene and improve test coverage, you MUST adhere to the following rules when validating your work:
158
165
159
166
1.**Micro-Benchmarking (V8 Physics):** If you need to quickly test raw JavaScript engine performance or syntax (e.g., variable hoisting, iteration speed), you may use `run_shell_command` with `node -e '...'`. This is preferred for ephemeral, non-framework tests.
160
167
2.**No Throwaway Scripts:** You are strictly **FORBIDDEN** from using `run_shell_command` (e.g., `cat << EOF > test.js`) to create temporary testing scripts on the filesystem.
161
168
3.**Permanent Coverage:** If you are testing or validating Neo.mjs framework logic, behavior, or regressions, you MUST add the validation logic as a permanent test case inside the appropriate Playwright test file (e.g., `test/playwright/unit/data/Store.spec.mjs`). Use the `replace` or `write_file` tools to do this. A task is not complete unless its framework logic is permanently verifiable.
162
169
163
-
## 10. File Editing Tool Selection (The "Append Gap")
170
+
## 11. File Editing Tool Selection (The "Append Gap")
164
171
165
172
Due to the constraints of the agentic environment, you MUST adhere to the following rules when modifying files to prevent JSON escaping errors and tool contract violations:
Copy file name to clipboardExpand all lines: ai/mcp/server/memory-core/openapi.yaml
+48Lines changed: 48 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -266,6 +266,54 @@ paths:
266
266
schema:
267
267
$ref: '#/components/schemas/ErrorResponse'
268
268
269
+
/context/frontier/mutate:
270
+
post:
271
+
summary: Mutate Context Frontier
272
+
operationId: mutate_frontier
273
+
x-pass-as-object: true
274
+
description: |
275
+
Actively manages the [Frontier] node. When project priorities pivot, this injects those new priorities into the Graph's Edge relationships in real-time.
276
+
tags: [System]
277
+
requestBody:
278
+
required: true
279
+
content:
280
+
application/json:
281
+
schema:
282
+
type: object
283
+
required:
284
+
- targetNodeId
285
+
properties:
286
+
targetNodeId:
287
+
type: string
288
+
description: The target node ID to pivot focus to.
289
+
weight:
290
+
type: number
291
+
description: Importance weight, typically very high for a new pivot.
0 commit comments