@rubytech/create-realagent 1.0.825 → 1.0.828

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 (102) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/lib/task-secrets/dist/index.d.ts +40 -0
  3. package/payload/platform/lib/task-secrets/dist/index.d.ts.map +1 -0
  4. package/payload/platform/lib/task-secrets/dist/index.js +44 -0
  5. package/payload/platform/lib/task-secrets/dist/index.js.map +1 -0
  6. package/payload/platform/lib/task-secrets/src/__tests__/redact-secrets.test.ts +127 -0
  7. package/payload/platform/lib/task-secrets/src/index.ts +77 -0
  8. package/payload/platform/lib/task-secrets/tsconfig.json +9 -0
  9. package/payload/platform/lib/task-secrets/vitest.config.ts +9 -0
  10. package/payload/platform/neo4j/schema.cypher +34 -2
  11. package/payload/platform/package.json +2 -2
  12. package/payload/platform/plugins/admin/hooks/archive-ingest-surface-gate.sh +19 -13
  13. package/payload/platform/plugins/admin/skills/business-profile/SKILL.md +2 -2
  14. package/payload/platform/plugins/admin/skills/onboarding/SKILL.md +13 -12
  15. package/payload/platform/plugins/admin/skills/plugin-management/SKILL.md +4 -4
  16. package/payload/platform/plugins/admin/skills/public-agent-manager/SKILL.md +2 -2
  17. package/payload/platform/plugins/admin/skills/stream-log-review/SKILL.md +6 -6
  18. package/payload/platform/plugins/admin/skills/unzip-attachment/references/safety.md +1 -1
  19. package/payload/platform/plugins/cloudflare/references/manual-setup.md +3 -3
  20. package/payload/platform/plugins/cloudflare/skills/setup-tunnel/SKILL.md +4 -4
  21. package/payload/platform/plugins/docs/references/cloudflare.md +2 -2
  22. package/payload/platform/plugins/docs/references/internals.md +2 -2
  23. package/payload/platform/plugins/docs/references/plugins-guide.md +1 -1
  24. package/payload/platform/plugins/docs/references/troubleshooting.md +2 -1
  25. package/payload/platform/plugins/linkedin-import/skills/linkedin-import/SKILL.md +2 -2
  26. package/payload/platform/plugins/linkedin-import/skills/linkedin-import/references/connections.md +1 -1
  27. package/payload/platform/plugins/memory/PLUGIN.md +1 -1
  28. package/payload/platform/plugins/memory/mcp/dist/index.js +6 -41
  29. package/payload/platform/plugins/memory/mcp/dist/index.js.map +1 -1
  30. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/llm-classifier.test.js +51 -0
  31. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/llm-classifier.test.js.map +1 -1
  32. package/payload/platform/plugins/memory/mcp/dist/lib/llm-classifier.d.ts +19 -4
  33. package/payload/platform/plugins/memory/mcp/dist/lib/llm-classifier.d.ts.map +1 -1
  34. package/payload/platform/plugins/memory/mcp/dist/lib/llm-classifier.js +139 -56
  35. package/payload/platform/plugins/memory/mcp/dist/lib/llm-classifier.js.map +1 -1
  36. package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-ingest.test.d.ts +2 -0
  37. package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-ingest.test.d.ts.map +1 -0
  38. package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-ingest.test.js +61 -0
  39. package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-ingest.test.js.map +1 -0
  40. package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest.d.ts +34 -0
  41. package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest.d.ts.map +1 -1
  42. package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest.js +241 -0
  43. package/payload/platform/plugins/memory/mcp/dist/tools/memory-ingest.js.map +1 -1
  44. package/payload/platform/plugins/memory/references/graph-primitives.md +5 -5
  45. package/payload/platform/plugins/memory/references/schema-base.md +6 -3
  46. package/payload/platform/plugins/memory/skills/document-ingest/SKILL.md +6 -6
  47. package/payload/platform/plugins/tasks/PLUGIN.md +1 -1
  48. package/payload/platform/plugins/tasks/mcp/dist/index.js +11 -2
  49. package/payload/platform/plugins/tasks/mcp/dist/index.js.map +1 -1
  50. package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.d.ts +19 -2
  51. package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.d.ts.map +1 -1
  52. package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.js +17 -1
  53. package/payload/platform/plugins/tasks/mcp/dist/tools/task-create.js.map +1 -1
  54. package/payload/platform/plugins/whatsapp-import/PLUGIN.md +17 -15
  55. package/payload/platform/plugins/whatsapp-import/bin/ingest.mjs +313 -366
  56. package/payload/platform/plugins/whatsapp-import/bin/whatsapp-ingest.sh +27 -60
  57. package/payload/platform/plugins/whatsapp-import/lib/dist/delta-cursor.d.ts +18 -0
  58. package/payload/platform/plugins/whatsapp-import/lib/dist/delta-cursor.d.ts.map +1 -0
  59. package/payload/platform/plugins/whatsapp-import/lib/dist/delta-cursor.js +31 -0
  60. package/payload/platform/plugins/whatsapp-import/lib/dist/delta-cursor.js.map +1 -0
  61. package/payload/platform/plugins/whatsapp-import/lib/dist/derive-keys.d.ts +27 -12
  62. package/payload/platform/plugins/whatsapp-import/lib/dist/derive-keys.d.ts.map +1 -1
  63. package/payload/platform/plugins/whatsapp-import/lib/dist/derive-keys.js +40 -20
  64. package/payload/platform/plugins/whatsapp-import/lib/dist/derive-keys.js.map +1 -1
  65. package/payload/platform/plugins/whatsapp-import/lib/dist/index.d.ts +7 -4
  66. package/payload/platform/plugins/whatsapp-import/lib/dist/index.d.ts.map +1 -1
  67. package/payload/platform/plugins/whatsapp-import/lib/dist/index.js +9 -6
  68. package/payload/platform/plugins/whatsapp-import/lib/dist/index.js.map +1 -1
  69. package/payload/platform/plugins/whatsapp-import/lib/dist/sessionize.d.ts +25 -0
  70. package/payload/platform/plugins/whatsapp-import/lib/dist/sessionize.d.ts.map +1 -0
  71. package/payload/platform/plugins/whatsapp-import/lib/dist/sessionize.js +48 -0
  72. package/payload/platform/plugins/whatsapp-import/lib/dist/sessionize.js.map +1 -0
  73. package/payload/platform/plugins/whatsapp-import/lib/dist/to-classifier-input.d.ts +3 -0
  74. package/payload/platform/plugins/whatsapp-import/lib/dist/to-classifier-input.d.ts.map +1 -0
  75. package/payload/platform/plugins/whatsapp-import/lib/dist/to-classifier-input.js +47 -0
  76. package/payload/platform/plugins/whatsapp-import/lib/dist/to-classifier-input.js.map +1 -0
  77. package/payload/platform/plugins/whatsapp-import/lib/src/__tests__/delta-append.test.ts +163 -0
  78. package/payload/platform/plugins/whatsapp-import/lib/src/__tests__/sessionize.test.ts +91 -0
  79. package/payload/platform/plugins/whatsapp-import/lib/src/__tests__/to-classifier-input.test.ts +59 -0
  80. package/payload/platform/plugins/whatsapp-import/lib/src/delta-cursor.ts +54 -0
  81. package/payload/platform/plugins/whatsapp-import/lib/src/derive-keys.ts +55 -32
  82. package/payload/platform/plugins/whatsapp-import/lib/src/index.ts +9 -6
  83. package/payload/platform/plugins/whatsapp-import/lib/src/sessionize.ts +81 -0
  84. package/payload/platform/plugins/whatsapp-import/lib/src/to-classifier-input.ts +48 -0
  85. package/payload/platform/plugins/whatsapp-import/skills/whatsapp-import/SKILL.md +66 -73
  86. package/payload/platform/plugins/whatsapp-import/skills/whatsapp-import/references/conversation-archive-shape.md +143 -0
  87. package/payload/platform/plugins/whatsapp-import/skills/whatsapp-import/references/export-parse.md +2 -2
  88. package/payload/platform/templates/specialists/agents/database-operator.md +17 -18
  89. package/payload/server/chunk-T2OPNP3L.js +654 -0
  90. package/payload/server/chunk-ZTBTX3IO.js +642 -0
  91. package/payload/server/cloudflare-task-tracker-BAMJY4MH.js +17 -0
  92. package/payload/server/cloudflare-task-tracker-CR6TL4VL.js +19 -0
  93. package/payload/server/public/assets/{admin-DOkUspG1.js → admin-BNwPsMhJ.js} +2 -2
  94. package/payload/server/public/assets/{graph-LLMJa4Ch.js → graph-N_Bw-8oT.js} +1 -1
  95. package/payload/server/public/assets/{page-DoaF3DB0.js → page-BKLGP-th.js} +1 -1
  96. package/payload/server/public/graph.html +2 -2
  97. package/payload/server/public/index.html +2 -2
  98. package/payload/server/server.js +291 -172
  99. package/payload/platform/plugins/whatsapp-import/lib/src/__tests__/filter-gate.test.ts +0 -172
  100. package/payload/platform/plugins/whatsapp-import/lib/src/__tests__/ingest-idempotence.test.ts +0 -141
  101. package/payload/platform/plugins/whatsapp-import/lib/src/filter.ts +0 -136
  102. package/payload/platform/plugins/whatsapp-import/skills/whatsapp-import-enrich/SKILL.md +0 -333
@@ -97,6 +97,14 @@ function bumpEdge(breakdown, edgeType) {
97
97
  // Main entry point
98
98
  // ---------------------------------------------------------------------------
99
99
  export async function memoryIngest(params) {
100
+ // Task 891 — ConversationArchive branch. Diverges enough from the document
101
+ // path (no extract cache, no anchor edges, no related entities, delta-append
102
+ // semantics) that it has its own end-to-end implementation in
103
+ // ingestConversationArchive(). The brief consolidates these as one entry
104
+ // (`memoryIngest` with `parentLabel`) so callers see one tool.
105
+ if (params.parentLabel === "ConversationArchive") {
106
+ return ingestConversationArchive(params);
107
+ }
100
108
  const { accountId, attachmentId, documentSummary, anchorNodeId, anchorLabel, sections, documentEdges = [], orphanCandidates = [], scope, sourceUrl, sourceType, documentKeywords: rawDocKeywords, userKeywords: rawUserKeywords, sessionId, } = params;
101
109
  if (!scope) {
102
110
  throw new Error("scope is required — valid values: 'public', 'shared', 'admin', 'user:{identifier}'");
@@ -533,4 +541,237 @@ async function writeRelatedNode(opts) {
533
541
  });
534
542
  return result.records[0].get("nodeId");
535
543
  }
544
+ // ---------------------------------------------------------------------------
545
+ // ConversationArchive ingest (Task 891) — chat-mode branch.
546
+ //
547
+ // MERGE :ConversationArchive on conversationIdentity → cleanup THIS export's
548
+ // chunks by archiveSha256 (delta discipline: prior exports' chunks survive)
549
+ // → CREATE new chunks → extend NEXT chain from existing tail → MERGE
550
+ // :PARTICIPANT_IN edges → update lastIngestedMessageHash + lastIngestedMessageAt.
551
+ //
552
+ // No anchor edges, no related entities, no documentEdges, no orphan candidates.
553
+ // Sections in this branch are :Section:Conversation chunks; properties pass
554
+ // through verbatim (summary, keywords, firstMessageAt, lastMessageAt,
555
+ // participantNames, messageCount).
556
+ // ---------------------------------------------------------------------------
557
+ const CHAT_PROVENANCE_AGENT = "whatsapp-import";
558
+ const CHAT_PROVENANCE_SOURCE = "whatsapp";
559
+ async function ingestConversationArchive(params) {
560
+ const { accountId, attachmentId: conversationIdentity, // semantic rename per parentLabel
561
+ documentSummary, sections, scope, documentKeywords: rawDocKeywords, userKeywords: rawUserKeywords, sessionId, archiveSha256, archiveSourceFile, lastIngestedMessageHash, lastIngestedMessageAt, participantElementIds = [], } = params;
562
+ if (!scope) {
563
+ throw new Error("scope is required");
564
+ }
565
+ if (!archiveSha256 || !archiveSha256.trim()) {
566
+ throw new Error("archiveSha256 is required for parentLabel='ConversationArchive'");
567
+ }
568
+ if (!archiveSourceFile || !archiveSourceFile.trim()) {
569
+ throw new Error("archiveSourceFile is required for parentLabel='ConversationArchive'");
570
+ }
571
+ if (!lastIngestedMessageHash || !lastIngestedMessageHash.trim()) {
572
+ throw new Error("lastIngestedMessageHash is required for parentLabel='ConversationArchive'");
573
+ }
574
+ if (!lastIngestedMessageAt || !lastIngestedMessageAt.trim()) {
575
+ throw new Error("lastIngestedMessageAt is required for parentLabel='ConversationArchive'");
576
+ }
577
+ const keywords = (() => {
578
+ const u = (rawUserKeywords ?? []).map((k) => k.toLowerCase().trim()).filter(Boolean);
579
+ const d = (rawDocKeywords ?? []).map((k) => k.toLowerCase().trim()).filter(Boolean);
580
+ if (u.length === 0 && d.length === 0)
581
+ return undefined;
582
+ return [...new Set([...u, ...d])];
583
+ })();
584
+ const t0 = Date.now();
585
+ const log = (stage, detail) => console.error(`[memory-ingest] [CA:${conversationIdentity.slice(0, 8)}] ${stage}${detail ? ` — ${detail}` : ""} (${Date.now() - t0}ms)`);
586
+ log("start", `${sections.length} chunks, archiveSha256=${archiveSha256.slice(0, 12)}, scope=${scope}`);
587
+ const now = new Date().toISOString();
588
+ const dbSession = getSession();
589
+ let archiveNodeId = "";
590
+ const kindBreakdown = {};
591
+ const edgeBreakdown = {};
592
+ try {
593
+ // 1. Embed every chunk body. Summary too (parent embedding).
594
+ const textsToEmbed = [documentSummary, ...sections.map((s) => s.body)];
595
+ log("embedding", `${textsToEmbed.length} texts`);
596
+ const embeddings = await embedBatch(textsToEmbed);
597
+ const archiveEmbedding = embeddings[0];
598
+ // 2. MERGE :ConversationArchive on conversationIdentity. ON CREATE stamps
599
+ // immutable identity props; ON MATCH bumps the cursor + last-ingest
600
+ // timestamps so the next delta-append run finds the right point.
601
+ const archiveResult = await dbSession.run(`MERGE (a:ConversationArchive { conversationIdentity: $conversationIdentity })
602
+ ON CREATE SET a.accountId = $accountId,
603
+ a.scope = $scope,
604
+ a.summary = $documentSummary,
605
+ a.keywords = $keywords,
606
+ a.embedding = $archiveEmbedding,
607
+ a.archiveSourceFile = $archiveSourceFile,
608
+ a.createdAt = $createdAt,
609
+ a.createdBySession = $sessionId,
610
+ a.createdByAgent = $createdByAgent,
611
+ a.source = $source
612
+ SET a.updatedAt = $updatedAt,
613
+ a.lastIngestedMessageHash = $lastIngestedMessageHash,
614
+ a.lastIngestedMessageAt = $lastIngestedMessageAt,
615
+ a.lastIngestedBySession = $sessionId,
616
+ a.lastIngestedArchiveSha256 = $archiveSha256
617
+ RETURN elementId(a) AS nodeId, count(a) AS affected`, {
618
+ conversationIdentity,
619
+ accountId,
620
+ scope,
621
+ documentSummary,
622
+ keywords: keywords ?? [],
623
+ archiveEmbedding,
624
+ archiveSourceFile,
625
+ createdAt: now,
626
+ updatedAt: now,
627
+ sessionId: sessionId ?? "",
628
+ createdByAgent: CHAT_PROVENANCE_AGENT,
629
+ source: CHAT_PROVENANCE_SOURCE,
630
+ lastIngestedMessageHash,
631
+ lastIngestedMessageAt,
632
+ archiveSha256,
633
+ });
634
+ if (archiveResult.records[0]?.get("affected")?.toNumber?.() !== 1) {
635
+ throw new Error("memory-ingest: ConversationArchive MERGE returned no row — Cypher silent no-op");
636
+ }
637
+ archiveNodeId = archiveResult.records[0].get("nodeId");
638
+ log("archive-merged", `nodeId=${archiveNodeId.slice(0, 12)}`);
639
+ // 3. Cleanup chunks of THIS export (idempotency for re-running the same
640
+ // export bytes). Delta-append re-imports of NEWER exports leave prior
641
+ // chunks alone because their archiveSha256 differs.
642
+ const cleanup = await dbSession.run(`MATCH (a:ConversationArchive { conversationIdentity: $conversationIdentity })
643
+ -[hs:HAS_SECTION]->(c:Section:Conversation { archiveSha256: $archiveSha256 })
644
+ DETACH DELETE c
645
+ RETURN count(c) AS removed`, { conversationIdentity, archiveSha256 });
646
+ const removed = cleanup.records[0]?.get("removed")?.toNumber?.() ?? 0;
647
+ if (removed > 0) {
648
+ log("cleanup", `dropped ${removed} prior chunks for this archiveSha256`);
649
+ }
650
+ // 4. Find existing tail of NEXT chain (if any). Delta-append wires the
651
+ // new first chunk after this tail; first-ever ingest finds nothing.
652
+ const tailResult = await dbSession.run(`MATCH (a:ConversationArchive { conversationIdentity: $conversationIdentity })
653
+ -[:HAS_SECTION]->(c:Section:Conversation)
654
+ WHERE NOT (c)-[:NEXT]->(:Section:Conversation)
655
+ RETURN elementId(c) AS tailId LIMIT 1`, { conversationIdentity });
656
+ let previousChunkId = tailResult.records[0]?.get("tailId") ?? null;
657
+ if (previousChunkId) {
658
+ log("tail-found", `extending NEXT chain from elementId=${previousChunkId.slice(0, 12)}`);
659
+ }
660
+ // 5. CREATE chunk nodes + HAS_SECTION + NEXT chain.
661
+ let chunksWritten = 0;
662
+ let nextEdgesCreated = 0;
663
+ for (let i = 0; i < sections.length; i++) {
664
+ const section = sections[i];
665
+ const bodyEmbedding = embeddings[i + 1];
666
+ const baseProps = {
667
+ accountId,
668
+ title: section.title,
669
+ body: section.body,
670
+ bodyPreview: section.body.slice(0, PREVIEW_LENGTH),
671
+ position: i,
672
+ scope,
673
+ embedding: bodyEmbedding,
674
+ createdAt: now,
675
+ updatedAt: now,
676
+ createdByAgent: CHAT_PROVENANCE_AGENT,
677
+ createdBySource: CHAT_PROVENANCE_AGENT,
678
+ createdBySession: sessionId ?? "",
679
+ source: CHAT_PROVENANCE_SOURCE,
680
+ archiveSha256,
681
+ archiveSourceFile,
682
+ };
683
+ const chunkProps = { ...section.properties, ...baseProps };
684
+ const r = await dbSession.run(`CREATE (c:Section:Conversation)
685
+ SET c = $props
686
+ WITH c
687
+ MATCH (a:ConversationArchive { conversationIdentity: $conversationIdentity })
688
+ CREATE (a)-[hs:HAS_SECTION]->(c)
689
+ SET hs.createdByAgent = $createdByAgent,
690
+ hs.createdBySession = $createdBySession,
691
+ hs.source = $source,
692
+ hs.archiveSha256 = $archiveSha256,
693
+ hs.createdAt = $createdAt
694
+ RETURN elementId(c) AS nodeId`, {
695
+ props: chunkProps,
696
+ conversationIdentity,
697
+ createdByAgent: CHAT_PROVENANCE_AGENT,
698
+ createdBySession: sessionId ?? "",
699
+ source: CHAT_PROVENANCE_SOURCE,
700
+ archiveSha256,
701
+ createdAt: now,
702
+ });
703
+ const chunkId = r.records[0].get("nodeId");
704
+ chunksWritten++;
705
+ bumpKind(kindBreakdown, "Conversation");
706
+ bumpEdge(edgeBreakdown, "HAS_SECTION");
707
+ if (previousChunkId) {
708
+ const nextRes = await dbSession.run(`MATCH (prev:Section:Conversation), (cur:Section:Conversation)
709
+ WHERE elementId(prev) = $prev AND elementId(cur) = $cur
710
+ CREATE (prev)-[n:NEXT]->(cur)
711
+ SET n.createdByAgent = $createdByAgent,
712
+ n.createdBySession = $createdBySession,
713
+ n.source = $source,
714
+ n.archiveSha256 = $archiveSha256,
715
+ n.createdAt = $createdAt
716
+ RETURN count(n) AS created`, {
717
+ prev: previousChunkId,
718
+ cur: chunkId,
719
+ createdByAgent: CHAT_PROVENANCE_AGENT,
720
+ createdBySession: sessionId ?? "",
721
+ source: CHAT_PROVENANCE_SOURCE,
722
+ archiveSha256,
723
+ createdAt: now,
724
+ });
725
+ if (nextRes.records[0]?.get("created")?.toNumber?.() !== 1) {
726
+ throw new Error("memory-ingest: NEXT edge CREATE returned no row — silent no-op");
727
+ }
728
+ nextEdgesCreated++;
729
+ bumpEdge(edgeBreakdown, "NEXT");
730
+ }
731
+ previousChunkId = chunkId;
732
+ }
733
+ // 6. MERGE :PARTICIPANT_IN edges from each operator-confirmed participant
734
+ // to the archive. Idempotent — re-runs are no-ops on the edge set.
735
+ let participantEdgesMerged = 0;
736
+ for (const elemId of participantElementIds) {
737
+ const pres = await dbSession.run(`MATCH (a:ConversationArchive { conversationIdentity: $conversationIdentity })
738
+ MATCH (p) WHERE elementId(p) = $elemId AND (p:Person OR p:AdminUser)
739
+ MERGE (p)-[r:PARTICIPANT_IN]->(a)
740
+ ON CREATE SET r.createdByAgent = $createdByAgent,
741
+ r.createdBySession = $createdBySession,
742
+ r.source = $source,
743
+ r.createdAt = $createdAt
744
+ RETURN count(r) AS merged`, {
745
+ conversationIdentity,
746
+ elemId,
747
+ createdByAgent: CHAT_PROVENANCE_AGENT,
748
+ createdBySession: sessionId ?? "",
749
+ source: CHAT_PROVENANCE_SOURCE,
750
+ createdAt: now,
751
+ });
752
+ const merged = pres.records[0]?.get("merged")?.toNumber?.() ?? 0;
753
+ if (merged !== 1) {
754
+ throw new Error(`memory-ingest: PARTICIPANT_IN MERGE for elementId=${elemId} returned no row — Person/AdminUser may not exist or label mismatch`);
755
+ }
756
+ participantEdgesMerged++;
757
+ bumpEdge(edgeBreakdown, "PARTICIPANT_IN");
758
+ }
759
+ log("neo4j-done", `archive=${archiveNodeId.slice(0, 12)} chunks=${chunksWritten} next-edges=${nextEdgesCreated} participants=${participantEdgesMerged}`);
760
+ return {
761
+ documentNodeId: archiveNodeId,
762
+ sectionCount: chunksWritten,
763
+ kindBreakdown,
764
+ edgeBreakdown,
765
+ relatedCount: 0,
766
+ standaloneCount: 0,
767
+ orphanCandidates: [],
768
+ documentSummary,
769
+ keywords,
770
+ };
771
+ }
772
+ finally {
773
+ await dbSession.close();
774
+ log("complete");
775
+ }
776
+ }
536
777
  //# sourceMappingURL=memory-ingest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"memory-ingest.js","sourceRoot":"","sources":["../../src/tools/memory-ingest.ts"],"names":[],"mappings":"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a;YAC7B,YAAY,EAAE,aAAa;YAC3B,aAAa;YACb,aAAa;YACb,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,CAAC;YAClB,gBAAgB,EAAE,EAAE;YACpB,eAAe;YACf,QAAQ;SACT,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;QACxB,GAAG,CAAC,UAAU,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -17,7 +17,7 @@ filter in the query.
17
17
 
18
18
  For visual exploration ("can I see this graphically?", "show me the graph"),
19
19
  tell the user to open the **Graph** menu item in the burger menu — it opens
20
- a Maxy-native force-directed view of their own brand's subgraph (Task 587).
20
+ a Maxy-native force-directed view of their own brand's subgraph.
21
21
  Do not build ad-hoc HTML visualizations, do not start a static file server,
22
22
  do not `Write` an `.html` file and navigate Playwright to it. The one-sentence
23
23
  reply ("Open the Graph menu item in the top-right — it opens a visual view
@@ -57,8 +57,8 @@ A missing memory tool is a deterministic failure of the per-account
57
57
  memory server: the platform's `[mcp-init-error] server=memory` line in
58
58
  the per-conversation stream log already names it; the user-facing reply
59
59
  exists so the operator knows the session cannot proceed without an
60
- operator-side fix (Task 743 propagates Task 560's loud-fail contract
61
- from graph to memory).
60
+ operator-side fix (the loud-fail contract applies equally
61
+ to graph and memory tool initialisation).
62
62
 
63
63
  ## Mutation intents
64
64
 
@@ -79,7 +79,7 @@ graph as a single action.
79
79
  | User intent | Tool | When to pick this, not the next row |
80
80
  |---|---|---|
81
81
  | "remove admin X", "take away their admin access", "revoke admin" | `mcp__admin__admin-remove` | Device-level admin offboarding — detaches the `(AdminUser)-[:ADMIN_OF]->(LocalBusiness)` edge and updates `platform/config/users.json`. Not for scrubbing personal data — use the GDPR contact-erase tools for that. |
82
- | "delete this specific node", "remove this entry by its id", "get rid of node X", "remove orphans", "prune", "clean up" | `mcp__memory__memory-delete` | Soft-deletes a single node by `elementId` (adds `:Trashed`, preserves relationships, snapshots unique keys, invisible to `memory-search` and any `notTrashed`-filtered read). For KnowledgeDocument, cascades to Sections and Chunks. Enumerate candidates first with a Cypher read, confirm with the user, then delete each by `elementId`. There is no bulk "delete everything without relationships" tool. Per the Task 673 write doctrine (`.docs/neo4j.md` § Write doctrine), **new** orphans should be impossible — every writer now rejects zero-edge calls at the MCP tool-surface. Existing orphans from pre-Task-673 data are legitimate backfill candidates (see Task 677) but are not produced by any live writer; if you see a freshly-created orphan, it is a bug in a writer that bypassed `writeNodeWithEdges`, not expected state. |
82
+ | "delete this specific node", "remove this entry by its id", "get rid of node X", "remove orphans", "prune", "clean up" | `mcp__memory__memory-delete` | Soft-deletes a single node by `elementId` (adds `:Trashed`, preserves relationships, snapshots unique keys, invisible to `memory-search` and any `notTrashed`-filtered read). For KnowledgeDocument, cascades to Sections and Chunks. Enumerate candidates first with a Cypher read, confirm with the user, then delete each by `elementId`. There is no bulk "delete everything without relationships" tool. Per the write doctrine (`.docs/neo4j.md` § Write doctrine), **new** orphans should be impossible — every writer now rejects zero-edge calls at the MCP tool-surface. Existing orphans from legacy data are legitimate backfill candidates but are not produced by any live writer; if you see a freshly-created orphan, it is a bug in a writer that bypassed `writeNodeWithEdges`, not expected state. |
83
83
  | "undo that delete", "I deleted X by mistake, bring it back", "restore the contact I just trashed" | `mcp__memory__memory-restore` | Removes `:Trashed`, restores snapshotted unique-key properties. Fails loudly when an active node already holds the unique slot (e.g. a fresh `OnboardingState` was created while the old one was in trash) — the error names the conflicting `elementId` so you can ask the user how to resolve. |
84
84
  | "empty the trash", "purge old soft-deletes", "what's been sitting in trash and ready to clear" | `mcp__memory__memory-empty-trash` | Hard-deletes trashed nodes whose `trashedAt` is older than `graceDays` (default 30); `dryRun=true` lists candidates without mutating. Use `dryRun` first, show the list to the user, then run for real. For KnowledgeDocument candidates, the on-disk attachment directory is removed too. |
85
85
  | "scrub this conversation's memory", "remove this claim the bot picked up", "forget what we said in that thread" | `mcp__memory__conversation-memory-expunge` | Removes deny-listable content from `:Memory` nodes scoped to one conversation. Requires an explicit pattern and conversationId. Not for deleting individual nodes — use `memory-delete`. |
@@ -292,7 +292,7 @@ Or use `maxy-graph-get_neo4j_schema` for a richer one-shot structural summary.
292
292
 
293
293
  ### Fulltext
294
294
 
295
- Use the universal `entity_search` index (Task 748) for keyword-style search
295
+ Use the universal `entity_search` index for keyword-style search
296
296
  across every operator-meaningful label — Person, Organization, Task, Event,
297
297
  Conversation, KnowledgeDocument, Email, etc. — on every textual property
298
298
  the platform's writers assign:
@@ -37,8 +37,9 @@ When loading this reference, confirm which schema files were consulted by noting
37
37
  | CloudflareTunnel | `CloudflareTunnel` | platform-native | — | `accountId`, `tunnelId`, `tunnelName` |
38
38
  | CloudflareHostname | `CloudflareHostname` | platform-native | — | `accountId`, `hostnameValue`, `tunnelId` |
39
39
  | Position | `Position` | platform-native (analogue of `schema:OrganizationRole`) | — | `accountId`, `title`, `startDate` |
40
- | WhatsApp Conversation | `WhatsAppConversation` | extends `schema:Conversation` | — | `accountId`, `conversationId`, `archiveSourceFile`, `firstMessageAt`, `lastMessageAt`, `participantCount`, `messageCount`, `scope`, `createdByAgent`, `createdBySession`, `createdAt` |
41
- | WhatsApp Message | `WhatsAppMessage` | extends `schema:Message` | — | `accountId`, `conversationId`, `messageId`, `dateSent`, `body`, `senderName`, `sequenceIndex`, `scope`, `createdByAgent`, `createdBySession`, `createdAt` |
40
+ | WhatsApp Conversation (legacy) | `WhatsAppConversation` | extends `schema:Conversation` | — | `accountId`, `conversationId`, `archiveSourceFile`, `firstMessageAt`, `lastMessageAt`, `participantCount`, `messageCount`, `scope`, `createdByAgent`, `createdBySession`, `createdAt` |
41
+ | WhatsApp Message (legacy) | `WhatsAppMessage` | extends `schema:Message` | — | `accountId`, `conversationId`, `messageId`, `dateSent`, `body`, `senderName`, `sequenceIndex`, `scope`, `createdByAgent`, `createdBySession`, `createdAt` |
42
+ | ConversationArchive (Task 891) | `ConversationArchive` | platform-native (chunked WhatsApp / messaging archive parent) | — | `accountId`, `conversationIdentity`, `archiveSourceFile`, `summary`, `keywords`, `lastIngestedMessageHash`, `lastIngestedMessageAt`, `lastIngestedArchiveSha256`, `scope`, `createdByAgent`, `createdBySession`, `createdAt` |
42
43
 
43
44
  **Branding properties on LocalBusiness:** `primaryColor`, `accentColor`, `backgroundColor`, `tagline` — optional, used to brand the public chat endpoint. Written via `memory-update` on the LocalBusiness node. Hex color values must match `#[0-9a-fA-F]{3,8}`. Logo and icon are linked via `HAS_BRAND_ASSET → ImageObject` with `purpose: "logo"` or `"icon"`.
44
45
 
@@ -50,7 +51,7 @@ When loading this reference, confirm which schema files were consulted by noting
50
51
 
51
52
  **Position** carries a single role held by a `UserProfile` at an `Organization` — its title, dates, and per-role properties (e.g. achievement bullets in `description`, `endDate` for a finished role). Each role is its own node so it can carry its own structure; multiple Positions per UserProfile (career history); one Organization may host many Positions across many UserProfiles. Written by the `document-ingest` skill when a CV section classifies as `Position` (Task 737). The natural pattern is `(:UserProfile)-[:HAS_POSITION]->(:Position)-[:AT]->(:Organization)` — never set the employer name as a property on Position; always create the AT edge to the (MERGEd) Organization.
52
53
 
53
- **Process-provenance properties on Task (Task 885):** `kind` (string discriminator, e.g. `"onboarding-establish-owner"`, `"cloudflare-tunnel-login"`), `steps` (string[], append-only as the action progresses), `startedAt` (ISO timestamp, set when status transitions to `running`), `completedAt` (ISO timestamp, set when status transitions to `completed` or `failed`), `errorMessage` (string, set when status=`failed`), `inputsProvided` (string[] of property names supplied at action start — values are never persisted on the Task itself, only the names, so the audit trail records what was asked without leaking secrets). All optional. The `running` status value joins the existing `pending|active|completed|failed|cancelled` enum to discriminate "an action is mid-flight in this conversation" from `active` ("a commitment the operator has accepted"). See `.docs/neo4j.md § Process provenance doctrine` for the full lifecycle.
54
+ **Process-provenance properties on Task:** `kind` (string discriminator, e.g. `"onboarding-establish-owner"`, `"cloudflare-tunnel-login"`), `steps` (string[], append-only as the action progresses), `startedAt` (ISO timestamp, set when status transitions to `running`), `completedAt` (ISO timestamp, set when status transitions to `completed` or `failed`), `errorMessage` (string, set when status=`failed`; cleared to `null` when the same Task transitions to `completed`), `inputsProvided` (string[] of property names supplied at action start — the canonical "call shape" record), `inputs.<field>` (Record of arbitrary non-secret JSON values from the action's form payload, redacted at write time per the schema declared at the form definition see `.docs/neo4j.md § Audit Task input contract`). All optional. Per-kind value-field enumeration is removed from this schema doc — values vary by what the action records, governed by the central `redactSecrets` primitive rather than per-kind allow-lists. The `running` status value joins the existing `pending|active|completed|failed|cancelled` enum to discriminate "an action is mid-flight in this conversation" from `active` ("a commitment the operator has accepted").
54
55
 
55
56
  ---
56
57
 
@@ -165,6 +166,8 @@ The closed enumeration:
165
166
 
166
167
  `Preface`, `Abstract` (alias for Summary / ExecutiveSummary), `Introduction`, `TableOfContents`, `Chapter`, `Conclusion`, `Appendix`, `Bibliography` (alias for References), `Glossary`, `Acknowledgments` — each becomes `:Section:<Kind>` linked to the document via `(:KnowledgeDocument)-[:HAS_SECTION]->` and chained to siblings via `(:Section)-[:NEXT]->(:Section)` in reading order.
167
168
 
169
+ `Conversation` (Task 891) — chat-mode chunks emitted by `memory-classify` with `mode='chat'`. Becomes `:Section:Conversation` linked via `(:ConversationArchive)-[:HAS_SECTION]->` (a different parent than KnowledgeDocument). Properties beyond the base section shape: `summary`, `keywords`, `firstMessageAt`, `lastMessageAt`, `participantNames`, `messageCount`, `archiveSha256`. The `:Section` validator rules (embedding, body, position) apply uniformly.
170
+
168
171
  **Contract-clause kinds (HAS_SECTION + NEXT, plus special-case extras for two kinds):**
169
172
 
170
173
  `Parties`, `Recitals`, `Definitions`, `Scope`, `Term`, `Payment`, `Confidentiality`, `IntellectualProperty`, `Warranties`, `Indemnification`, `Liability`, `Termination`, `GoverningLaw`, `ForceMajeure`, `Notices`, `EntireAgreement`, `Amendment`, `Assignment`, `Severability`, `Signatures`.
@@ -5,7 +5,7 @@ description: Universal document ingestion — maps any unstructured document (PD
5
5
 
6
6
  # Document Ingest
7
7
 
8
- Ingests any unstructured document (PDF, text, transcript, web page) into the graph. Every classified section becomes one `:Section` node carrying a secondary label from a closed enumeration (`:Section:Position`, `:Section:Chapter`, `:Section:Parties`, …); identity-kind anchor edges go from the document subject directly at the multi-labeled section node. There are no per-doctype skills (no `cv-import`, no `contract-import`) — the classifier in `memory-classify` decides which kind every section maps to. The skill orchestrates the pipeline; the classifier reads the loaded ontology; the writer enforces the validator. **Classifier failure is terminal — the ingest aborts entirely; nothing is written. Loud failures, never silent landfill (Task 740).**
8
+ Ingests any unstructured document (PDF, text, transcript, web page) into the graph. Every classified section becomes one `:Section` node carrying a secondary label from a closed enumeration (`:Section:Position`, `:Section:Chapter`, `:Section:Parties`, …); identity-kind anchor edges go from the document subject directly at the multi-labeled section node. There are no per-doctype skills (no `cv-import`, no `contract-import`) — the classifier in `memory-classify` decides which kind every section maps to. The skill orchestrates the pipeline; the classifier reads the loaded ontology; the writer enforces the validator. **Classifier failure is terminal — the ingest aborts entirely; nothing is written. Loud failures, never silent landfill.**
9
9
 
10
10
  ## Anchor confirmation (mandatory first step)
11
11
 
@@ -55,7 +55,7 @@ EXTRACT --> CLASSIFY --> INGEST --> WIRE-BRIEF-ENTITIES
55
55
 
56
56
  Pulls text from the file and caches it under the `attachmentId`. Inputs: `storagePath`, `filename`, `mimeType`, `attachmentId` (all from the attachment metadata block in your brief). Returns metadata + a 240-char preview. The full text lives in the in-process cache.
57
57
 
58
- After extract returns, look at the document's char count and emit a one-line size→latency estimate in chat **before** calling `memory-classify`, so the operator knows whether to expect a 10s turnaround or a 90–180s wait. The `memory-classify` server enforces a 180s ceiling on the Haiku call (Task 781) — anything above the >20K band may push toward that ceiling and time out loudly.
58
+ After extract returns, look at the document's char count and emit a one-line size→latency estimate in chat **before** calling `memory-classify`, so the operator knows whether to expect a 10s turnaround or a 90–180s wait. The `memory-classify` server enforces a 180s ceiling on the Haiku call — anything above the >20K band may push toward that ceiling and time out loudly.
59
59
 
60
60
  | chars | estimate |
61
61
  |---|---|
@@ -77,7 +77,7 @@ Calls Haiku with the loaded ontology and the cached text. Inputs: `attachmentId`
77
77
  - `orphanCandidates` — nodes the classifier wanted to emit but could not natural-edge. Surfaced loudly to the operator (see Output contract below)
78
78
  - `hallucinatedRelated` — diagnostic count of related-kind values dropped server-side as ontology misses
79
79
 
80
- **Failure is terminal.** If the call returns `{kind: "fallback", reason}`, the LLM was unavailable, malformed, or otherwise unusable. **Do not call `memory-ingest`. Do not write anything.** Return to the dispatching agent immediately with a structured blocker: `Classifier unavailable — <reason>. Document not ingested. Operator must <remediation>.` The dispatching agent surfaces this to the operator in plain English. There is no longer any "fallback-to-UNMAPPED-section" write path — Task 740 deleted it.
80
+ **Failure is terminal.** If the call returns `{kind: "fallback", reason}`, the LLM was unavailable, malformed, or otherwise unusable. **Do not call `memory-ingest`. Do not write anything.** Return to the dispatching agent immediately with a structured blocker: `Classifier unavailable — <reason>. Document not ingested. Operator must <remediation>.` The dispatching agent surfaces this to the operator in plain English. There is no "fallback-to-UNMAPPED-section" write path — that fallback was removed by design.
81
81
 
82
82
  After step 2 succeeds, emit a chat message before step 3 naming what the classifier produced: **"Classified into N sections, covering: <topic keywords>."** This is step 2 of the four-step narrative the operator sees per ingest.
83
83
 
@@ -95,9 +95,9 @@ Writes the classified document. Inputs: `attachmentId`, `documentSummary`, `anch
95
95
 
96
96
  After step 3 succeeds, emit the third chat message naming everything the writer created or connected (see "Four-step operator narrative" below). Continue to step 4 (`wire-brief-entities`) before the final fourth chat message.
97
97
 
98
- Re-ingesting the same `attachmentId` is safe — the writer drops prior `:Section` children (any secondary label), prior `:Project` standalone nodes, and prior KD-level edges (every edge stamped `sourceDocumentId=<this attachmentId>` plus the legacy `PARTY` edge type by name — covers Task 790 classifier-emitted PARTICIPANT/FROM/TO/CC/SPEAKER and agent-emitted brief-wired edges) before re-creating. Shared related entities (Organizations, Persons MERGEd by identifying property) are spared.
98
+ Re-ingesting the same `attachmentId` is safe — the writer drops prior `:Section` children (any secondary label), prior `:Project` standalone nodes, and prior KD-level edges (every edge stamped `sourceDocumentId=<this attachmentId>` plus the legacy `PARTY` edge type by name — covers classifier-emitted PARTICIPANT/FROM/TO/CC/SPEAKER and agent-emitted brief-wired edges) before re-creating. Shared related entities (Organizations, Persons MERGEd by identifying property) are spared.
99
99
 
100
- ### 4. `wire-brief-entities` (Task 790)
100
+ ### 4. `wire-brief-entities`
101
101
 
102
102
  After `memory-ingest` returns the new KnowledgeDocument's `documentNodeId`, this step iterates the entities the dispatch brief named and connects each to the new document with the natural KD-level edge.
103
103
 
@@ -142,7 +142,7 @@ The leading `[document-ingest] wire-brief-entities` token is grep-able from the
142
142
 
143
143
  If the brief lists no entities (single-author personal CV, generic FAQ, etc.), this step is a no-op: emit `[document-ingest] wire-brief-entities resolved=0 orphans=0 edges=0` and continue. The four-step narrative reverts to three lines for downstream chat (no fourth narrative line is emitted when this step does nothing).
144
144
 
145
- ## Four-step operator narrative (Task 740, extended Task 790)
145
+ ## Four-step operator narrative
146
146
 
147
147
  Each ingest produces up to four chat messages, each at the moment it happens. Failures replace the relevant step's message with a blocker. Step 4 collapses to nothing visible when the brief named no entities (the agent still emits the `[document-ingest] wire-brief-entities resolved=0 orphans=0 edges=0` log line for grep-ability, but no fourth chat message).
148
148
 
@@ -60,7 +60,7 @@ Run `task-ready` and surface the ready set if the user has open tasks. This answ
60
60
 
61
61
  ## Tools
62
62
 
63
- - `task-create` — Create a task, optionally linked to a person (RAISED_BY) and entities (AFFECTS). Process-provenance: pass `kind` (e.g. `"onboarding-establish-owner"`, `"cloudflare-tunnel-login"`) to mark the Task as a durable-action record with status `running`, `inputsProvided` (property names only — values are never persisted on the Task), and `raisedDuringConversationKey` to write a `:RAISED_DURING` edge to the originating Conversation.
63
+ - `task-create` — Create a task, optionally linked to a person (RAISED_BY) and entities (AFFECTS). Process-provenance: pass `kind` (e.g. `"onboarding-establish-owner"`, `"cloudflare-tunnel-login"`) to mark the Task as a durable-action record with status `running`. Audit input contract: pass `inputs` with the form payload and `inputSchema` declaring any secret fields — values land on the Task as `inputs.<field>` props after `redactSecrets` strips schema-tagged keys. `inputsProvided` records the call-shape (names submitted) alongside the value-bearing `inputs.*`. Pass `raisedDuringConversationKey` to write a `:RAISED_DURING` edge to the originating Conversation when it differs from the current session.
64
64
  - `task-update` — Update name, description, status, priority, due date, or append a note (append-only). Process-provenance: pass `appendStep` to atomically append one entry to `steps[]` (call once per action phase); `errorMessage` is required when status transitions to `failed`; `completed` and `failed` transitions auto-set `completedAt`.
65
65
  - `task-list` — List tasks filtered by status, priority, or related entity
66
66
  - `task-get` — Fetch a task with full details and all relationships
@@ -49,7 +49,7 @@ const noteSchema = z.string().optional().describe("Note appended to task history
49
49
  // ---------------------------------------------------------------------------
50
50
  // task-create
51
51
  // ---------------------------------------------------------------------------
52
- server.tool("task-create", "Create a Task node in the graph. Write doctrine (Task 673): the new Task must link to at least one node — the current session's Conversation (automatic when called inside an admin session), a raisedBy Person, or at least one affects entity. Embeds for memory-search discovery. Process-provenance (Task 885): pass `kind` to discriminate this Task as an action record (e.g. \"onboarding-establish-owner\", \"cloudflare-tunnel-login\"), with status `running` to mark it mid-flight; pass `inputsProvided` (property names only — never values) to record what the action was asked for; pass `raisedDuringConversationKey` when the action was raised by a different surface than the current session.", {
52
+ server.tool("task-create", "Create a Task node in the graph. Write doctrine (Task 673): the new Task must link to at least one node — the current session's Conversation (automatic when called inside an admin session), a raisedBy Person, or at least one affects entity. Embeds for memory-search discovery. Process-provenance (Task 885): pass `kind` to discriminate this Task as an action record (e.g. \"onboarding-establish-owner\", \"cloudflare-tunnel-login\"), with status `running` to mark it mid-flight; pass `inputsProvided` to record the call shape; pass `raisedDuringConversationKey` when the action was raised by a different surface than the current session. Outcome contract (Task 890): pass `inputs` with the action's form payload and `inputSchema` declaring any secret-tagged keys — values land on the Task as `inputs.<field>` props after secrets are stripped centrally.", {
53
53
  name: z.string().describe("Short task title"),
54
54
  description: z.string().describe("Full scope and acceptance criteria — embedded for semantic search"),
55
55
  status: statusSchema,
@@ -58,12 +58,21 @@ server.tool("task-create", "Create a Task node in the graph. Write doctrine (Tas
58
58
  raisedBy: z.string().optional().describe("Person elementId — creates a RAISED_BY relationship"),
59
59
  affects: z.array(z.string()).optional().describe("Entity elementIds — creates AFFECTS relationships for conflict detection"),
60
60
  kind: z.string().optional().describe("Process-provenance discriminator (Task 885) — e.g. \"onboarding-establish-owner\", \"cloudflare-tunnel-login\". Marks this Task as an action record with a lifecycle (started/step/done) and enables `[task] action-*` log lines."),
61
- inputsProvided: z.array(z.string()).optional().describe("Property names supplied at action start (Task 885). NAMES ONLY values are never persisted on the Task to avoid leaking secrets into the audit trail."),
61
+ inputsProvided: z.array(z.string()).optional().describe("Property names supplied at action start (Task 885) — the call shape record. Coexists with `inputs.*` redacted values (Task 890)."),
62
+ inputs: z.record(z.any()).optional().describe("Form payload (Task 890 outcome contract). Persisted as `inputs.<field>` props after `redactSecrets` strips any keys declared in `inputSchema.secretFields`. Pass values the operator supplied that are meaningful for the audit (mode, hostname, emailProvided). Never include passwords or other secret material in the schema's secretFields list — they will be dropped server-side regardless."),
63
+ inputSchema: z
64
+ .object({
65
+ secretFields: z.array(z.string()).optional().describe("Field names whose values must never land on the Task. Declared at the form definition; the writer strips them before persisting."),
66
+ })
67
+ .optional()
68
+ .describe("Form schema declaring secret-tagged fields (Task 890). Omit when the action records no secrets."),
62
69
  raisedDuringConversationKey: z.string().optional().describe("Conversation sessionKey for the RAISED_DURING edge (Task 885). Defaults to the current session. Use this when the Task is raised by an out-of-band surface (e.g. an HTTP endpoint) but should still link to a specific conversation."),
63
70
  }, async (params) => {
64
71
  try {
65
72
  const result = await taskCreate({
66
73
  ...params,
74
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
75
+ inputs: params.inputs,
67
76
  accountId,
68
77
  sessionKey: sessionId,
69
78
  createdBy: { agent: agentSlug, session: sessionId, tool: "task-create" },