@rubytech/create-realagent 1.0.838 → 1.0.839

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.
Files changed (42) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/lib/graph-write/dist/index.js +1 -1
  3. package/payload/platform/lib/graph-write/dist/index.js.map +1 -1
  4. package/payload/platform/lib/graph-write/src/index.ts +1 -1
  5. package/payload/platform/plugins/admin/PLUGIN.md +2 -0
  6. package/payload/platform/plugins/admin/mcp/dist/index.js +1 -1
  7. package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
  8. package/payload/platform/plugins/admin/skills/business-profile/SKILL.md +5 -5
  9. package/payload/platform/plugins/admin/skills/onboarding/SKILL.md +11 -11
  10. package/payload/platform/plugins/admin/skills/unzip-attachment/SKILL.md +2 -0
  11. package/payload/platform/plugins/contacts/mcp/dist/index.js +1 -1
  12. package/payload/platform/plugins/contacts/mcp/dist/index.js.map +1 -1
  13. package/payload/platform/plugins/docs/references/troubleshooting.md +20 -0
  14. package/payload/platform/plugins/memory/PLUGIN.md +3 -3
  15. package/payload/platform/plugins/memory/mcp/dist/index.js +14 -14
  16. package/payload/platform/plugins/memory/mcp/dist/index.js.map +1 -1
  17. package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.d.ts +12 -11
  18. package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.d.ts.map +1 -1
  19. package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.js +22 -10
  20. package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.js.map +1 -1
  21. package/payload/platform/plugins/memory/mcp/dist/tools/profile-update.js +1 -1
  22. package/payload/platform/plugins/memory/mcp/dist/tools/profile-update.js.map +1 -1
  23. package/payload/platform/plugins/memory/references/schema-base.md +17 -17
  24. package/payload/platform/plugins/memory/skills/conversation-archive/SKILL.md +14 -14
  25. package/payload/platform/plugins/tasks/PLUGIN.md +2 -2
  26. package/payload/platform/plugins/tasks/mcp/dist/index.js +11 -11
  27. package/payload/platform/plugins/tasks/mcp/dist/index.js.map +1 -1
  28. package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.js +1 -1
  29. package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.js.map +1 -1
  30. package/payload/platform/scripts/seed-neo4j.sh +13 -3
  31. package/payload/platform/templates/agents/admin/IDENTITY.md +1 -0
  32. package/payload/platform/templates/specialists/agents/database-operator.md +1 -1
  33. package/payload/server/adminuser-self-heal-QAWOZ3JV.js +45 -0
  34. package/payload/server/chunk-7PLAT6UR.js +2103 -0
  35. package/payload/server/chunk-M6J4JM3D.js +656 -0
  36. package/payload/server/chunk-PZZ3IKUU.js +1116 -0
  37. package/payload/server/chunk-TSOYVJC4.js +10003 -0
  38. package/payload/server/client-pool-OX75YUFD.js +33 -0
  39. package/payload/server/cloudflare-task-tracker-OQTQWFWK.js +20 -0
  40. package/payload/server/maxy-edge.js +4 -3
  41. package/payload/server/neo4j-migrations-4PG2KB4W.js +665 -0
  42. package/payload/server/server.js +29 -8
@@ -6,7 +6,7 @@ After completing each step, persist progress immediately by calling `onboarding-
6
6
 
7
7
  Every user selection and every document presentation in onboarding renders through `render-component` — never as markdown text, bullet lists, or inline chat content. Selections use `single-select` or `multi-select`; file content (SOUL, KNOWLEDGE, config) uses `document-editor`. Describing options in prose or pasting file content into a chat message bypasses the UI and the user's ability to review and edit before saving. Never use directional words ("above", "below") when referring to a rendered component — just name it or refer to "the browser", "the editor", etc. The `document-editor` component renders one file at a time — never call `render-component` with `document-editor` twice in the same turn. Present one file, wait for the user's approval or edit, then present the next.
8
8
 
9
- **Turn-completion contract.** Any onboarding turn that advances `currentStep` (via `onboarding-complete-step`) OR narrates a step transition with phrases like "Moving to step N", "Proceeding to step N", "Step N done" MUST end with one of: a `render-component` call surfacing the next step's UI, OR a `?`-terminated question. Bare prose statements like "Moving to step 9 — operator persona and profile bootstrap." with nothing after are forbidden — they leave the operator with no actionable surface and force a manual nudge. Same rule applies turn-by-turn through step 9. The post-restart resume contract (Task 881) for step 7 is the canonical case: when the operator's "Cloudflare setup completed" message arrives post-restart at `currentStep=7`, the agent's first turn must acknowledge AND immediately render the step-8 prompt (or `anthropic-setup`'s next surface) without an intervening dead-end paragraph.
9
+ **Turn-completion contract.** Any onboarding turn that advances `currentStep` (via `onboarding-complete-step`) OR narrates a step transition with phrases like "Moving to step N", "Proceeding to step N", "Step N done" MUST end with one of: a `render-component` call surfacing the next step's UI, OR a `?`-terminated question. Bare prose statements like "Moving to step 9 — operator persona and profile bootstrap." with nothing after are forbidden — they leave the operator with no actionable surface and force a manual nudge. Same rule applies turn-by-turn through step 9. The post-restart resume contract for step 7 is the canonical case: when the operator's "Cloudflare setup completed" message arrives post-restart at `currentStep=7`, the agent's first turn must acknowledge AND immediately render the step-8 prompt (or `anthropic-setup`'s next surface) without an intervening dead-end paragraph.
10
10
 
11
11
  ## Step 1 — Plugin selection
12
12
 
@@ -132,7 +132,7 @@ If the user skips, let them know they can set up Cloudflare at any time by askin
132
132
 
133
133
  If the user wants to proceed, first confirm the domain state in one sentence: "Is your domain already on a Cloudflare account?" If not, quote the click-path from `plugins/cloudflare/references/dashboard-guide.md` § "Add a domain to a Cloudflare account" and wait for the user to confirm the zone is **Active**.
134
134
 
135
- Then call `render-component` with `name: "cloudflare-setup-form"` and data containing only the form copy — the form self-discovers the admin/public/apex domain options from the operator's logged-in Cloudflare dashboard (Task 589) via `/api/admin/cloudflare/domains`. Do not read `brand.json` for domain options; brand identity has no authority over what zones the operator's Cloudflare account holds. The form collects admin label + admin domain + optional public label + public domain + optional apex + admin password in one submission, then the submit handler runs `setRemotePassword`, `~/setup-tunnel.sh`, and alias-domain writes server-side and relays the script's output — including any `ACTION REQUIRED` block — back as the component's submitted payload.
135
+ Then call `render-component` with `name: "cloudflare-setup-form"` and data containing only the form copy — the form self-discovers the admin/public/apex domain options from the operator's logged-in Cloudflare dashboard via `/api/admin/cloudflare/domains`. Do not read `brand.json` for domain options; brand identity has no authority over what zones the operator's Cloudflare account holds. The form collects admin label + admin domain + optional public label + public domain + optional apex + admin password in one submission, then the submit handler runs `setRemotePassword`, `~/setup-tunnel.sh`, and alias-domain writes server-side and relays the script's output — including any `ACTION REQUIRED` block — back as the component's submitted payload.
136
136
 
137
137
  ```
138
138
  {
@@ -142,9 +142,9 @@ Then call `render-component` with `name: "cloudflare-setup-form"` and data conta
142
142
  }
143
143
  ```
144
144
 
145
- Wait for the user's submission. The `_componentDone` payload contains the `setup-tunnel.sh` output verbatim. Relay that output to the user — quote any `ACTION REQUIRED` block exactly. When the script exits zero, step-7 completion has already been persisted by the script itself (Task 562) — relay the output and stop. Do not call `onboarding-complete-step` with step 7; the script is the authority for step-7 completion, and any call you make after the script's restart dispatch would race the service restart and almost always lose. If the script failed (the endpoint returned `ok: false, field: "script"`), the form surfaced the error and stayed open — relay the output, cite `plugins/cloudflare/references/reset-guide.md` for recovery, and offer to re-render the form after any manual steps. Do not synthesise alternative recovery commands. If the user skipped (step 7 not reached), call `onboarding-complete-step` with step 7 so the next session resumes at step 8.
145
+ Wait for the user's submission. The `_componentDone` payload contains the `setup-tunnel.sh` output verbatim. Relay that output to the user — quote any `ACTION REQUIRED` block exactly. When the script exits zero, step-7 completion has already been persisted by the script itself — relay the output and stop. Do not call `onboarding-complete-step` with step 7; the script is the authority for step-7 completion, and any call you make after the script's restart dispatch would race the service restart and almost always lose. If the script failed (the endpoint returned `ok: false, field: "script"`), the form surfaced the error and stayed open — relay the output, cite `plugins/cloudflare/references/reset-guide.md` for recovery, and offer to re-render the form after any manual steps. Do not synthesise alternative recovery commands. If the user skipped (step 7 not reached), call `onboarding-complete-step` with step 7 so the next session resumes at step 8.
146
146
 
147
- **Post-restart resume contract (Task 881).** A successful Cloudflare setup arms a brand-service restart that kills the in-flight admin agent; the operator's "Cloudflare setup completed" message is replayed by the chat client itself after the restart cycle completes (`POST /api/admin/sessions/<cid>/resume` re-binds the session via the surviving `__remote_session` cookie, then the client sends the marker as a normal hidden chat POST). By the time you receive that marker, `OnboardingState.currentStep` is already 7 (the script's filesystem flag was consumed by `consumeStep7FlagUI` on the way in). From your view as the admin agent, the operator just told you "Cloudflare setup completed (actionId: …)" at currentStep=7. Acknowledge, then proceed to step 8 — do NOT re-ask the Cloudflare question, do NOT re-render the cloudflare-setup-form, do NOT call `onboarding-complete-step` with step 7 (already done). The marker turn is your single source of truth that step 7 finished cleanly; the script's flag-consume is the orthogonal proof that the state machine advanced.
147
+ **Post-restart resume contract.** A successful Cloudflare setup arms a brand-service restart that kills the in-flight admin agent; the operator's "Cloudflare setup completed" message is replayed by the chat client itself after the restart cycle completes (`POST /api/admin/sessions/<cid>/resume` re-binds the session via the surviving `__remote_session` cookie, then the client sends the marker as a normal hidden chat POST). By the time you receive that marker, `OnboardingState.currentStep` is already 7 (the script's filesystem flag was consumed by `consumeStep7FlagUI` on the way in). From your view as the admin agent, the operator just told you "Cloudflare setup completed (actionId: …)" at currentStep=7. Acknowledge, then proceed to step 8 — do NOT re-ask the Cloudflare question, do NOT re-render the cloudflare-setup-form, do NOT call `onboarding-complete-step` with step 7 (already done). The marker turn is your single source of truth that step 7 finished cleanly; the script's flag-consume is the orthogonal proof that the state machine advanced.
148
148
 
149
149
  ## Step 8 — Anthropic API key
150
150
 
@@ -177,7 +177,7 @@ Do not read any skill files. Do not call any other Anthropic tools except `anthr
177
177
 
178
178
  *(skip if `currentStep` >= 9)*
179
179
 
180
- Pin the operator's persona and bootstrap the graph nodes that satisfy the graph-write gate. The persona choice is the trust-shaping moment for this step — answering "what's your business?" with an employer's name silently registers a `LocalBusiness` owned by the wrong party, so we must surface the question explicitly before any write. "Just for me" covers anyone using {{productName}} for personal use, including someone with an employer that is not being registered here.
180
+ Pin the operator's persona and bootstrap the graph nodes the platform requires before any further writes. The persona choice is the trust-shaping moment for this step — answering "what's your business?" with an employer's name silently registers a `LocalBusiness` owned by the wrong party, so we must surface the question explicitly before any write. "Just for me" covers anyone using {{productName}} for personal use, including someone with an employer that is not being registered here.
181
181
 
182
182
  **Render the persona select first.** Call `render-component` with `name: "single-select"` and data:
183
183
 
@@ -203,7 +203,7 @@ Pin the operator's persona and bootstrap the graph nodes that satisfy the graph-
203
203
 
204
204
  **Call `onboarding-step9-mode` with the chosen mode before any graph write or skill invocation.** The tool emits the diagnostic log line and returns the deterministic next-action prose.
205
205
 
206
- **Open the action record with `task-create` (process-provenance + audit input contract).** Before any graph write or skill invocation, call `task-create` with:
206
+ **Open the action record with `task-create`.** Before any graph write or skill invocation, call `task-create` with:
207
207
 
208
208
  - `name`: "Establish operator owner — onboarding step 9"
209
209
  - `description`: a one-line summary describing the chosen mode and what entities will be produced
@@ -213,7 +213,7 @@ Pin the operator's persona and bootstrap the graph nodes that satisfy the graph-
213
213
  - `inputs`: the form payload known at creation time — `{ mode: "personal" | "business-owner" }`
214
214
  - `inputSchema`: `{ secretFields: [] }` — the step-9 mode select carries no secrets; declare the empty list explicitly so the contract is visible at the call site
215
215
 
216
- The returned `taskId` is the action-provenance handle for this step — every subsequent `memory-write` for an action-provenance-gated label (`Person`, `UserProfile`, `AdminUser`, `Organization`, `LocalBusiness`) MUST pass it as `producedByTaskId` so the inbound `:PRODUCED` edge from the Task is composed into the write. The Task is auto-linked to the current `AdminConversation` via `RAISED_DURING` (this is what makes `MATCH (c:AdminConversation)<-[:RAISED_DURING]-(t:Task)-[:PRODUCED]->(entity)` traversable from the conversation that initiated onboarding).
216
+ The returned `taskId` is the audit handle for this step — every subsequent `memory-write` for `Person`, `UserProfile`, `AdminUser`, `Organization`, or `LocalBusiness` MUST pass it as `producedByTaskId` so the platform composes a `:PRODUCED` edge from the Task into the write. The Task is auto-linked to the current `AdminConversation` via `RAISED_DURING`, so `MATCH (c:AdminConversation)<-[:RAISED_DURING]-(t:Task)-[:PRODUCED]->(entity)` traverses from the conversation that initiated onboarding.
217
217
 
218
218
  **Recording what you collect.** The `onboarding-establish-owner` Task is the audit record for step 9. Record every operator-meaningful fact you collect using the existing surfaces — `description` for the running summary, `note` (via `task-update`) for facts as they land (email collected, phone declined, resolved Person/UserProfile elementIds), `appendStep` for phase markers. Agent's judgement decides which slot. Contract: by `task-complete`, a reader of the Task properties can reconstruct what was collected, what was declined, and which entities were touched without consulting any other source. No secrets in any property regardless of slot — `task-create`'s `inputs` is centrally redacted via `inputSchema.secretFields`; the post-creation slots carry no schema, so the agent's responsibility is to never write secret material into them.
219
219
 
@@ -221,11 +221,11 @@ Then branch on the mode.
221
221
 
222
222
  ### `business-owner`
223
223
 
224
- Invoke the `business-profile` skill, passing the `taskId` so the skill can thread it as `producedByTaskId` into every `memory-write` it issues. The skill follows its first-run path: create the `AdminUser` node, create the `LocalBusiness` node, create the `Organization` node, collect identity + address + whichever additional domains (hours, services, FAQs, brand assets) the user provides. When `business-profile` reports that the required nodes exist in the graph, call `task-update` with both `appendStep:"business-profile-complete"` AND `note:"Business profile complete — AdminUser=<elementId>, LocalBusiness=<elementId>, Organization=<elementId>"` (the resolved elementIds from the skill's writes; one call carries both the phase marker and the audit content). Then write the `HAS_PROFILE` edge from the personal-profile `Person` to the operator's `UserProfile` via `memory-update` (one `memory-search` to resolve both elementIds; the `UserProfile` already exists from step 6 onwards via the lazy-create in `loadUserProfile`). Then call `task-complete(taskId)` and `onboarding-complete-step` with step 9. Do not mark step 9 complete before the required nodes + the HAS_PROFILE edge exist — the gate's precondition must be real, not just recorded.
224
+ Invoke the `business-profile` skill, passing the `taskId` so the skill can thread it as `producedByTaskId` into every `memory-write` it issues. The skill follows its first-run path: create the `AdminUser` node, create the `LocalBusiness` node, create the `Organization` node, collect identity + address + whichever additional domains (hours, services, FAQs, brand assets) the user provides. When `business-profile` reports that the required nodes exist in the graph, call `task-update` with both `appendStep:"business-profile-complete"` AND `note:"Business profile complete — AdminUser=<elementId>, LocalBusiness=<elementId>, Organization=<elementId>"` (the resolved elementIds from the skill's writes; one call carries both the phase marker and the audit content). Then write the `HAS_PROFILE` edge from the personal-profile `Person` to the operator's `UserProfile` via `memory-update` (one `memory-search` to resolve both elementIds; the `UserProfile` already exists from step 6 onwards via the lazy-create in `loadUserProfile`). Then call `task-complete(taskId)` and `onboarding-complete-step` with step 9. Do not mark step 9 complete before the required nodes + the HAS_PROFILE edge exist — the precondition must be real, not just recorded.
225
225
 
226
226
  ### `personal`
227
227
 
228
- Personal mode does not register a `LocalBusiness`. The `AdminUser` and personal-profile `Person` nodes were written deterministically at PIN setup time (Task 830 `writeAdminUserAndPerson`, run as `createdBy.agent === 'system'` and therefore exempt from the action-provenance gate), so this step only enriches the existing Person with operator-identity fields and links it to the `UserProfile`:
228
+ Personal mode does not register a `LocalBusiness`. The `AdminUser` and personal-profile `Person` nodes were written deterministically at PIN setup time (the bootstrap path runs as `createdBy.agent === 'system'`), so this step only enriches the existing Person with operator-identity fields and links it to the `UserProfile`:
229
229
 
230
230
  1. **Elicit Person properties that help {{productName}} serve this operator.** Open by default — identity (email, phone, names), context (where they live, languages they speak, what they do, who they work for), or anything else the operator volunteers that makes future assistance more useful. The personal-profile Person is comprehensive, not enumerated: ask in one short conversational message for what feels natural to volunteer at first contact, accept whatever the operator offers, do not chase a fixed list. The user may decline any field; record what they provide.
231
231
  2. **Persist via `profile-update.personFields`.** Pass a single object whose keys are the Person properties the operator volunteered, in the operator's volunteered phrasing — the central schema validator handles synonyms (e.g. `phone` rejects with "use telephone") and Forbidden Properties (e.g. `name` rejects with "use givenName + familyName"); the agent does not pre-rewrite. The tool resolves the personal-profile Person via `(au:AdminUser {userId:$you})-[:OWNS]->(p:Person)` server-side and throws loudly if the OWNS edge is missing rather than silently no-oping (the PIN-setup path is the only place that edge is created — a missing edge means PIN setup never ran or was rolled back).
@@ -236,6 +236,6 @@ Personal mode does not register a `LocalBusiness`. The `AdminUser` and personal-
236
236
 
237
237
  After step 9 completes in personal mode, tell the user that {{productName}} is configured for personal use — their employer (if any) is not registered here. If they later become the operator for a business of their own, they can ask {{productName}} to set up a business profile, which invokes the `business-profile` skill directly.
238
238
 
239
- **Post-onboarding work-preference elicitation (Task 888) — no step-9 change.** After step 9 completes, the per-turn `## About the Owner` block surfaces the field-level Coverage signal as the canonical post-onboarding elicitation source: `### Coverage / Missing: communication.preferredChannel, scheduling.workdayStartTime, …`. Onboarding deliberately does NOT pre-elicit these in a questionnaire — the agent drips them organically, one per turn, via the IDENTITY.md § Conversational Memory contract. Step 9's role is to bootstrap identity + persona; work-preferences are accumulated through normal conversation thereafter, with `notApplicable: true` covering the "doesn't apply to me" case (declined fields stop re-prompting).
239
+ **Post-onboarding work-preference elicitation — no step-9 change.** After step 9 completes, the per-turn `## About the Owner` block surfaces the field-level Coverage signal as the canonical post-onboarding elicitation source: `### Coverage / Missing: communication.preferredChannel, scheduling.workdayStartTime, …`. Onboarding deliberately does NOT pre-elicit these in a questionnaire — the agent drips them organically, one per turn, via the IDENTITY.md § Conversational Memory contract. Step 9's role is to bootstrap identity + persona; work-preferences are accumulated through normal conversation thereafter, with `notApplicable: true` covering the "doesn't apply to me" case (declined fields stop re-prompting).
240
240
 
241
- If the user declines to bootstrap during step 9 in any mode, leave step 9 incomplete AND call `task-update(taskId, status:"failed", errorMessage:"<one-line reason>")` so the action record reflects the abandonment instead of dangling in `running` forever. The next session will resume here with a fresh `task-create` (the prior failed Task stays in the graph as the audit record). Any attempt to write user-domain data will surface `Write blocked (no-admin-user)` or `Write blocked (no-local-business)` via the gate, pulling the agent back into this step.
241
+ If the user declines to bootstrap during step 9 in any mode, leave step 9 incomplete AND call `task-update(taskId, status:"failed", errorMessage:"<one-line reason>")` so the action record reflects the abandonment instead of dangling in `running` forever. The next session will resume here with a fresh `task-create` (the prior failed Task stays in the graph as the audit record). Any attempt to write user-domain data will surface `Write blocked (no-admin-user)` or `Write blocked (no-local-business)`, pulling the agent back into this step.
@@ -8,6 +8,8 @@ Activate when the `[ATTACHMENTS:]` block of the current turn contains an entry w
8
8
 
9
9
  Do **not** activate for agent-generated zips (those are already trusted — they originate from `storeGeneratedFile`). The MIME allow-list restricts this skill to admin-uploaded archives by construction: no other code path produces a `[ATTACHMENTS:]` line with a zip MIME.
10
10
 
11
+ The `[ATTACHMENTS:]` block is contractually present on every turn that originally had attachments, including post-`max-turns-interrupted` recovery retries (Task 915). Do **not** add a filesystem fallback search — the resolved `Path:` line is authoritative.
12
+
11
13
  ## Invariants
12
14
 
13
15
  These are not guidelines. Every one of them is mechanically enforced by the shell primitives below; if any check fails, abort the flow, emit the named log line, and tell the operator verbatim what tripped it.
@@ -23,7 +23,7 @@ if (!accountId) {
23
23
  }
24
24
  const agentSlug = process.env.AGENT_SLUG;
25
25
  const sessionId = process.env.SESSION_ID;
26
- server.tool("contact-create", "Create a new contact (schema:Person) in the graph. Any single identifying property — name, email, or telephone — suffices; the agent judges what to capture and dedup/conflicts are managed downstream. When email or telephone is supplied, contact-create deduplicates against existing live persons and returns the match instead of writing a duplicate. Write doctrine (Task 673): the new contact must link to at least one existing node (typically a Conversation or Organization). Pass elementIds found via memory-search.", {
26
+ server.tool("contact-create", "Create a new contact (schema:Person) in the graph. Any single identifying property — name, email, or telephone — suffices; the agent judges what to capture and dedup/conflicts are managed downstream. When email or telephone is supplied, contact-create deduplicates against existing live persons and returns the match instead of writing a duplicate. The new contact must link to at least one existing node (typically a Conversation or Organization) pass elementIds found via memory-search.", {
27
27
  givenName: z.string().optional().describe("First name (optional — supply whichever identifying fields you have)"),
28
28
  familyName: z.string().optional().describe("Last name"),
29
29
  email: z.string().email().optional().describe("Email address — when present, used as the dedup key"),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,aAAa,CAAC,UAAU,CAAC,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa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,21 @@
1
1
  # Troubleshooting
2
2
 
3
+ ## First user-domain write rejected by `[graph-write-gate] reject reason=no-admin-user`
4
+
5
+ **Symptom:** Admin chat reports "couldn't save that — set up your business profile first" or `[graph-write-gate] reject reason=no-admin-user` appears in `server.log` on the operator's first non-bootstrap write (a website, service, opening hours, etc.). Reproduces on Minimal-onboarded installs from before the seed-stamping fix shipped.
6
+
7
+ **Diagnose:** Tail the gate reject and self-heal lines together:
8
+
9
+ ```
10
+ grep -E "adminuser-self-heal|graph-write-gate.*reject" <server.log>
11
+ ```
12
+
13
+ - `[adminuser-self-heal] healed=1 …` followed by no `[graph-write-gate] reject` lines on subsequent writes — heal fired, the gate is now passing. Operator can retry.
14
+ - `[adminuser-self-heal] healed=0 …` + `[graph-write-gate] reject … subReason=admin-user-no-accountid` — heal couldn't reach the broken node. Most likely cause: the env-side `ACCOUNT_ID` doesn't match any `:AdminUser.userId`. Cross-check `users.json[0].userId` against `MATCH (au:AdminUser) RETURN au.userId, au.accountId` — if the userId mismatches, the post-Task-904 `[admin-invariant]` line in the same log will show `direction=users-without-account` and the repair is to align the stores per `.docs/agents.md` § "Three-store admin auth invariant", not to retry the heal.
15
+ - `[graph-write-gate] reject … subReason=no-admin-user-node` — the graph has no `:AdminUser` at all. Re-run the seed (`platform/scripts/seed-neo4j.sh`) under the install's env vars; the boot self-heal won't help because there's nothing to heal.
16
+
17
+ The `subReason=admin-user-no-accountid` path should be impossible on any install whose admin server has booted at least once after the boot self-heal shipped — if it fires, the diagnostic recipe is the cross-check above, not "rerun the heal."
18
+
3
19
  ## Fresh install opens to "Set your remote password" on the LAN URL
4
20
 
5
21
  **Symptom:** On a brand-new device, the LAN URL printed by `create-maxy` (e.g. `http://maxy.local:19200`) opens to a remote-password setup page instead of admin onboarding. This was a Task-647-era regression and should not occur on any install built.
@@ -42,6 +58,10 @@ tail -200 ~/.maxy/logs/maxy-ui.log | rg '\[remote-auth\].*resolvedKind='
42
58
  - Platform process has stopped — restart it
43
59
  - Network issue if accessing remotely — check your Cloudflare tunnel is running
44
60
 
61
+ **If the chat shows a single `[agent-loop-stop] same error twice — aborting` line and stops:** {{productName}} hit the same structured tool failure twice in a row inside one turn (e.g. a permission gate refused the same write twice). The runtime aborted the turn after the second occurrence to save tokens instead of running until the SDK turn budget exhausted. The blocker text names the tool and the first line of the error. Resolve the underlying cause (re-run the named skill, fix the missing prerequisite, etc.) and send your next message — the next turn cold-starts with a fresh client. To see the diagnostic, ask {{productName}}: "Show me the most recent agent-loop-stop log line."
62
+
63
+ **Agent searches the filesystem after uploading a zip.** If you uploaded a zip and the agent burns several turns running `find` / `Glob` instead of unzipping, that is the symptom of the recovery-retry attachment-context regression (now closed by the recovery context preservation contract in `.docs/agents.md`). Greppable confirmation is the `[context-overflow-recovery] retry … attachmentsCarried=<n>` line in the conversation stream log. If you see `[context-overflow-recovery] WARN attachment-context-lost`, the regression has returned — surface to support.
64
+
45
65
  ---
46
66
 
47
67
  ## Memory Not Working
@@ -58,11 +58,11 @@ Ranking is ephemeral and contextual — nothing is written back to the graph. Wh
58
58
 
59
59
  Use `expandHops: 0` for listing and inventory queries (returns node properties only — compact output). Use `expandHops: 1` (default) for deep context queries where related nodes add value. Queries that combine a high `limit` with `expandHops: 1` on node types that have many relationships (e.g. KnowledgeDocument with HAS_SECTION) are most likely to trigger trimming.
60
60
 
61
- ## Process provenance — `producedByTaskId`
61
+ ## Anchoring writes to a Task — `producedByTaskId`
62
62
 
63
- `memory-write` accepts an optional `producedByTaskId` parameter. When set, an inbound `:PRODUCED` edge from that `:Task` node is composed into the write's `relationships` array before the storage gate runs. The gate verifies the Task and the new node share the same `accountId`; mismatch is rejected loud.
63
+ `memory-write` accepts an optional `producedByTaskId` parameter. When set, the platform composes an inbound `:PRODUCED` edge from that `:Task` node into the write's `relationships` array before the write runs. The Task and the new node must share the same `accountId`; mismatch is rejected loud.
64
64
 
65
- Writes targeting `:Person`, `:UserProfile`, `:AdminUser`, `:Organization`, `:LocalBusiness`, `:CloudflareTunnel`, or `:CloudflareHostname` REQUIRE this thread (or `createdBy.agent === 'system'` for bootstrap paths). The typical pattern: call `task-create` at the start of a flow with `kind` and `raisedDuringConversationKey`; capture the returned `taskId`; pass it as `producedByTaskId` on every subsequent `memory-write` for an action-provenance-gated label. See `.docs/neo4j.md § Process provenance doctrine`.
65
+ Writes targeting `:Person`, `:UserProfile`, `:AdminUser`, `:Organization`, `:LocalBusiness`, `:CloudflareTunnel`, or `:CloudflareHostname` require this anchor (deterministic bootstrap paths run as `createdBy.agent === 'system'` and are exempt). The typical pattern: call `task-create` at the start of a flow with `kind` and `raisedDuringConversationKey`; capture the returned `taskId`; pass it as `producedByTaskId` on every subsequent `memory-write` for one of those labels.
66
66
 
67
67
  ## Graph Hygiene
68
68
 
@@ -416,7 +416,7 @@ server.tool("memory-rank", "Retrieve entities from the knowledge graph and rank
416
416
  }
417
417
  });
418
418
  if (!readOnly) {
419
- server.tool("memory-write", "Create a new node in the knowledge graph with automatic embedding computation. Write doctrine (Task 673): every node must be created with at least one relationship. Call memory-search first to find target elementIds. Process-provenance (Task 885): writes targeting :Person, :UserProfile, :AdminUser, :Organization, :LocalBusiness, :CloudflareTunnel, or :CloudflareHostname require an inbound :PRODUCED edge from a :Task — pass the active Task's elementId as `producedByTaskId` and the edge will be composed automatically.", {
419
+ server.tool("memory-write", "Create a new node in the knowledge graph with automatic embedding computation. Every node must be created with at least one relationship call memory-search first to find target elementIds. Writes targeting :Person, :UserProfile, :AdminUser, :Organization, :LocalBusiness, :CloudflareTunnel, or :CloudflareHostname additionally require an inbound :PRODUCED edge from a :Task — pass the active Task's elementId as `producedByTaskId` and the edge will be composed automatically.", {
420
420
  labels: z
421
421
  .array(z.string())
422
422
  .describe("Node labels (e.g. ['Person'], ['Question'], ['DefinedTerm'])"),
@@ -437,7 +437,7 @@ if (!readOnly) {
437
437
  producedByTaskId: z
438
438
  .string()
439
439
  .optional()
440
- .describe("Active Task elementId (Task 885). When set, an inbound :PRODUCED edge from this Task is composed into relationships before the write — required for action-provenance-gated labels (Person, UserProfile, AdminUser, Organization, LocalBusiness, CloudflareTunnel, CloudflareHostname). Task must share the same accountId; mismatch is rejected."),
440
+ .describe("Active Task elementId. When set, an inbound :PRODUCED edge from this Task is composed into relationships before the write — required for Person, UserProfile, AdminUser, Organization, LocalBusiness, CloudflareTunnel, and CloudflareHostname writes. Task must share the same accountId; mismatch is rejected."),
441
441
  }, async ({ labels, properties, scope, relationships, producedByTaskId }) => {
442
442
  try {
443
443
  const result = await memoryWrite({
@@ -617,7 +617,7 @@ if (!readOnly) {
617
617
  };
618
618
  }
619
619
  });
620
- server.tool("memory-ingest-extract", "Extract text from an uploaded file and cache it server-side for memory-classify and memory-ingest (Task 737). " +
620
+ server.tool("memory-ingest-extract", "Extract text from an uploaded file and cache it server-side for memory-classify and memory-ingest. " +
621
621
  "Supports PDF (via pdftotext), plain text, and markdown. " +
622
622
  "Rejects CSV (structured data — use memory-write instead) and images (metadata-only). " +
623
623
  "Returns file metadata + a short preview; the full text lives in the in-process cache keyed by attachmentId. " +
@@ -646,7 +646,7 @@ if (!readOnly) {
646
646
  };
647
647
  }
648
648
  });
649
- server.tool("memory-classify", "Classify an unstructured document into typed sections via Claude Haiku (Task 737). " +
649
+ server.tool("memory-classify", "Classify an unstructured document into typed sections via Claude Haiku. " +
650
650
  "Reads the cached text written by memory-ingest-extract (same attachmentId), runs the classifier against " +
651
651
  "the live ontology label set, and returns a JSON structure ready for memory-ingest. Every returned `kind` is " +
652
652
  "verified server-side against the ontology — invalid labels become `UNMAPPED` so the writer falls back to " +
@@ -681,7 +681,7 @@ if (!readOnly) {
681
681
  };
682
682
  }
683
683
  });
684
- server.tool("memory-ingest", "Write a classified document into the graph as typed nodes anchored to the document subject (Task 737). " +
684
+ server.tool("memory-ingest", "Write a classified document into the graph as typed nodes anchored to the document subject. " +
685
685
  "Requires prior calls to memory-ingest-extract (text cache) and memory-classify (typed structure). " +
686
686
  "Each section becomes either a typed graph node (Position, Service, Credential, etc.) anchored to the named " +
687
687
  "subject via the natural ontology edge plus a (KnowledgeDocument)-[:REFERENCES]->(typed) link, or — for " +
@@ -698,8 +698,8 @@ if (!readOnly) {
698
698
  sections: z.array(z.object({
699
699
  kind: z.string().describe("Section kind from the closed enumeration (Position/Education/Chapter/Parties/.../Other), or a standalone-node kind like 'Project'."),
700
700
  title: z.string(),
701
- body: z.string().describe("Server-reconstructed body text (Task 896): memory-classify slices documentText.slice(sourceStart, sourceEnd) and stamps it here, so this stays the writer's contract."),
702
- summary: z.string().describe("1-3 sentence summary of the section (Task 896 clause 1) — already truncated to 500 chars by memory-classify; stored as :Section.summary."),
701
+ body: z.string().describe("Server-reconstructed body text: memory-classify slices documentText.slice(sourceStart, sourceEnd) and stamps it here, so this stays the writer's contract."),
702
+ summary: z.string().describe("1-3 sentence summary of the section — already truncated to 500 chars by memory-classify; stored as :Section.summary."),
703
703
  sourceStart: z.number().int().nonnegative().describe("Whole-document char offset where the section begins (inclusive). Translated to whole-doc coords by the chunked-classify path."),
704
704
  sourceEnd: z.number().int().nonnegative().describe("Whole-document char offset where the section ends (exclusive)."),
705
705
  properties: z.record(z.string(), z.unknown()),
@@ -737,7 +737,7 @@ if (!readOnly) {
737
737
  sourceType: z.string().optional().describe("Provenance: 'upload' or 'web'."),
738
738
  documentKeywords: z.array(z.string()).optional().describe("Classifier-extracted topic keywords."),
739
739
  userKeywords: z.array(z.string()).optional().describe("Keywords explicitly provided by the user. Merged additively with documentKeywords."),
740
- sessionId: z.string().optional().describe("Session UUID for provenance stamping (Task 740). Optional override; the server falls back to the SESSION_ID env var set by the admin agent at MCP spawn. The agent only needs to pass this when calling outside the normal admin-session context."),
740
+ sessionId: z.string().optional().describe("Session UUID for provenance stamping. Optional override; the server falls back to the SESSION_ID env var set by the admin agent at MCP spawn. The agent only needs to pass this when calling outside the normal admin-session context."),
741
741
  }, async ({ attachmentId, documentSummary, anchorNodeId, anchorLabel, sections, documentEdges, orphanCandidates, scope, sourceUrl, sourceType, documentKeywords, userKeywords, sessionId: sessionIdOverride }) => {
742
742
  try {
743
743
  const result = await memoryIngest({
@@ -783,7 +783,7 @@ if (!readOnly) {
783
783
  };
784
784
  }
785
785
  });
786
- server.tool("memory-archive-write", "Bulk-archive write surface for flat datasets (Task 744; Task 894 narrowed scope). " +
786
+ server.tool("memory-archive-write", "Bulk-archive write surface for flat datasets. " +
787
787
  "Writes typed entities + natural edges in 500-row UNWIND batches. The Cypher body is fixed " +
788
788
  "server-side per `archiveType`; the agent supplies parsed rows + the discriminant, never " +
789
789
  "raw Cypher. Use ONLY for flat first-class entity exports (LinkedIn Connections.csv and " +
@@ -838,7 +838,7 @@ if (!readOnly) {
838
838
  // `memory/bin/conversation-archive-ingest.{mjs,sh}`. Phase-2 insight
839
839
  // derivation will operate on :Section:Conversation chunks regardless of
840
840
  // source.
841
- server.tool("memory-ingest-web", "Adapter for web-content ingestion (Task 737). Accepts a URL and its pre-fetched readable content " +
841
+ server.tool("memory-ingest-web", "Adapter for web-content ingestion. Accepts a URL and its pre-fetched readable content " +
842
842
  "(the agent calls WebFetch first, then passes the text here), writes content to a temp file, and delegates " +
843
843
  "to memory-ingest-extract — caching the text under a freshly-generated attachmentId. The skill then drives " +
844
844
  "memory-classify and memory-ingest using that attachmentId, exactly as for a file upload. " +
@@ -887,7 +887,7 @@ if (!readOnly) {
887
887
  "re-runs the same predicate per elementId before trashing, so a stale or forged token never deletes. " +
888
888
  "Never author custom delete-selection Cypher for bulk flows; always use this tool.", {
889
889
  filter: z.enum(["empty", "single-assistant"]).describe("Selection predicate. 'empty' = no :PART_OF Messages. 'single-assistant' = exactly one :PART_OF " +
890
- "Message with role='assistant'. Content-matching filter ('no-real-user-input') is deferred to Task 656."),
890
+ "Message with role='assistant'. A content-matching filter ('no-real-user-input') is not yet available."),
891
891
  agentType: z.enum(["admin", "public"]).optional().describe("Scope to conversations matching c.agentType. Omit to scope across both."),
892
892
  limit: z.number().int().positive().optional().describe("Max candidates to return (default 200, hard cap 1000)."),
893
893
  dryRun: z.boolean().optional().describe("Preview matches without minting an actionable filterToken. Candidates are listed in the response, but no delete can be performed against them — caller must re-run without dryRun to receive a token."),
@@ -926,7 +926,7 @@ if (!readOnly) {
926
926
  server.tool("memory-delete", "Soft-delete a single graph node by elementId. Adds the :Trashed label, preserves relationships, " +
927
927
  "and excludes the node from memory-search and any read filtered via notTrashed. For KnowledgeDocument, " +
928
928
  "cascades to linked Section and Chunk children. For Conversation, cascades to attached :PART_OF Messages " +
929
- "(Task 655). Hard removal happens later via memory-empty-trash after the grace period (default 30 days). " +
929
+ ". Hard removal happens later via memory-empty-trash after the grace period (default 30 days). " +
930
930
  "For bulk-delete flows, pass filterToken from memory-find-candidates — the server re-verifies the predicate " +
931
931
  "before trashing. For GDPR Right-to-Erasure, use contact-erase instead (bypasses this primitive and " +
932
932
  "hard-deletes per Article 17).", {
@@ -1366,7 +1366,7 @@ if (!readOnly) {
1366
1366
  await dbSession.close();
1367
1367
  }
1368
1368
  });
1369
- server.tool("profile-update", "Create, update, or reinforce a user preference; set top-level UserProfile fields (timezone, locale, givenName, role, expertise) via profileFields; AND set operator-identity fields (email, telephone) on the operator's personal-profile Person via personFields (Task 886 §D — Person is the canonical operator-identity store; UserProfile carries preferences and behavioural state only). Supports modes: reinforce (re-observed, boost confidence), update (value changed), contradict (value contradicts prior), merge (combine overlapping preferences).", {
1369
+ server.tool("profile-update", "Create, update, or reinforce a user preference; set top-level UserProfile fields (timezone, locale, givenName, role, expertise) via profileFields; AND set operator-identity fields (email, telephone) on the operator's personal-profile Person via personFields. Person is the canonical operator-identity store; UserProfile carries preferences and behavioural state only. Supports modes: reinforce (re-observed, boost confidence), update (value changed), contradict (value contradicts prior), merge (combine overlapping preferences).", {
1370
1370
  category: z.enum(["communication", "scheduling", "decision", "workflow", "content", "interaction"])
1371
1371
  .describe("Preference category"),
1372
1372
  key: z.string().describe("Preference identifier (e.g. 'response_length', 'meeting_time')"),
@@ -1383,7 +1383,7 @@ if (!readOnly) {
1383
1383
  email: z.string().optional(),
1384
1384
  telephone: z.string().optional(),
1385
1385
  }).optional()
1386
- .describe("Operator-identity fields written to the OWNS-bound Person (Task 886 §D). Use canonical `telephone` (NOT `phone` — that is the schema synonym, not the canonical name). Tool throws if the AdminUser-OWNS-Person edge is missing rather than silently no-op."),
1386
+ .describe("Operator-identity fields written to the OWNS-bound Person. Use canonical `telephone` (NOT `phone` — that is the schema synonym, not the canonical name). Tool throws if the AdminUser-OWNS-Person edge is missing rather than silently no-op."),
1387
1387
  mergeSourceIds: z.array(z.string()).optional()
1388
1388
  .describe("For mode 'merge': preferenceIds of sources to combine into this preference"),
1389
1389
  }, async ({ category, key, value, source, mode, conversationId, profileFields, personFields, mergeSourceIds }) => {