instar 1.3.2004 → 1.3.2005
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
- package/dist/core/PostUpdateMigrator.js +17 -18
- package/dist/core/PostUpdateMigrator.js.map +1 -1
- package/dist/data/standards-guard-index.json +1 -1
- package/dist/data/standards-guard-index.meta.json +2 -2
- package/dist/data/standards-registry.meta.json +1 -1
- package/dist/memory/MemoryIndex.d.ts.map +1 -1
- package/dist/memory/MemoryIndex.js +2 -12
- package/dist/memory/MemoryIndex.js.map +1 -1
- package/dist/memory/SemanticMemory.d.ts.map +1 -1
- package/dist/memory/SemanticMemory.js +3 -33
- package/dist/memory/SemanticMemory.js.map +1 -1
- package/dist/memory/TopicMemory.d.ts.map +1 -1
- package/dist/memory/TopicMemory.js +2 -11
- package/dist/memory/TopicMemory.js.map +1 -1
- package/dist/memory/ftsQueryTerms.d.ts +5 -0
- package/dist/memory/ftsQueryTerms.d.ts.map +1 -0
- package/dist/memory/ftsQueryTerms.js +12 -0
- package/dist/memory/ftsQueryTerms.js.map +1 -0
- package/dist/native/InstarWedgeCanary.app/Contents/MacOS/InstarWedgeCanary +0 -0
- package/dist/native/instar-desktop-host +0 -0
- package/dist/scaffold/conversationSearchGuidance.d.ts +10 -0
- package/dist/scaffold/conversationSearchGuidance.d.ts.map +1 -0
- package/dist/scaffold/conversationSearchGuidance.js +49 -0
- package/dist/scaffold/conversationSearchGuidance.js.map +1 -0
- package/dist/scaffold/templates.d.ts.map +1 -1
- package/dist/scaffold/templates.js +8 -13
- package/dist/scaffold/templates.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +21 -21
- package/src/data/standards-guard-index.json +1 -1
- package/src/data/standards-guard-index.meta.json +2 -2
- package/src/data/standards-registry.meta.json +1 -1
- package/src/scaffold/conversationSearchGuidance.ts +57 -0
- package/src/scaffold/templates.ts +8 -13
- package/upgrades/1.3.2005.md +20 -0
- package/upgrades/eli16/conversation-search-pointers.md +7 -0
- package/upgrades/side-effects/conversation-search-pointers.md +13 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./builtin-manifest.schema.json",
|
|
3
3
|
"schemaVersion": 1,
|
|
4
|
-
"generatedAt": "2026-11-
|
|
5
|
-
"instarVersion": "1.3.
|
|
4
|
+
"generatedAt": "2026-11-24T15:15:37.593Z",
|
|
5
|
+
"instarVersion": "1.3.2005",
|
|
6
6
|
"entryCount": 210,
|
|
7
7
|
"entries": {
|
|
8
8
|
"hook:session-start": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"domain": "identity",
|
|
12
12
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
13
13
|
"installedPath": ".instar/hooks/instar/session-start.sh",
|
|
14
|
-
"contentHash": "
|
|
14
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
15
15
|
"since": "2025-01-01"
|
|
16
16
|
},
|
|
17
17
|
"hook:dangerous-command-guard": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"domain": "safety",
|
|
21
21
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
22
22
|
"installedPath": ".instar/hooks/instar/dangerous-command-guard.sh",
|
|
23
|
-
"contentHash": "
|
|
23
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
24
24
|
"since": "2025-01-01"
|
|
25
25
|
},
|
|
26
26
|
"hook:grounding-before-messaging": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"domain": "safety",
|
|
30
30
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
31
31
|
"installedPath": ".instar/hooks/instar/grounding-before-messaging.sh",
|
|
32
|
-
"contentHash": "
|
|
32
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
33
33
|
"since": "2025-01-01"
|
|
34
34
|
},
|
|
35
35
|
"hook:compaction-recovery": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"domain": "identity",
|
|
39
39
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
40
40
|
"installedPath": ".instar/hooks/instar/compaction-recovery.sh",
|
|
41
|
-
"contentHash": "
|
|
41
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
42
42
|
"since": "2025-01-01"
|
|
43
43
|
},
|
|
44
44
|
"hook:external-operation-gate": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"domain": "safety",
|
|
48
48
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
49
49
|
"installedPath": ".instar/hooks/instar/external-operation-gate.js",
|
|
50
|
-
"contentHash": "
|
|
50
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
51
51
|
"since": "2025-01-01"
|
|
52
52
|
},
|
|
53
53
|
"hook:deferral-detector": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"domain": "safety",
|
|
57
57
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
58
58
|
"installedPath": ".instar/hooks/instar/deferral-detector.js",
|
|
59
|
-
"contentHash": "
|
|
59
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
60
60
|
"since": "2025-01-01"
|
|
61
61
|
},
|
|
62
62
|
"hook:self-stop-guard": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"domain": "coherence",
|
|
66
66
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
67
67
|
"installedPath": ".instar/hooks/instar/self-stop-guard.js",
|
|
68
|
-
"contentHash": "
|
|
68
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
69
69
|
"since": "2025-01-01"
|
|
70
70
|
},
|
|
71
71
|
"hook:post-action-reflection": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"domain": "evolution",
|
|
75
75
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
76
76
|
"installedPath": ".instar/hooks/instar/post-action-reflection.js",
|
|
77
|
-
"contentHash": "
|
|
77
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
78
78
|
"since": "2025-01-01"
|
|
79
79
|
},
|
|
80
80
|
"hook:external-communication-guard": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"domain": "safety",
|
|
84
84
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
85
85
|
"installedPath": ".instar/hooks/instar/external-communication-guard.js",
|
|
86
|
-
"contentHash": "
|
|
86
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
87
87
|
"since": "2025-01-01"
|
|
88
88
|
},
|
|
89
89
|
"hook:telegram-origin-guard": {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"domain": "coherence",
|
|
102
102
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
103
103
|
"installedPath": ".instar/hooks/instar/scope-coherence-collector.js",
|
|
104
|
-
"contentHash": "
|
|
104
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
105
105
|
"since": "2025-01-01"
|
|
106
106
|
},
|
|
107
107
|
"hook:scope-coherence-checkpoint": {
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"domain": "coherence",
|
|
111
111
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
112
112
|
"installedPath": ".instar/hooks/instar/scope-coherence-checkpoint.js",
|
|
113
|
-
"contentHash": "
|
|
113
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
114
114
|
"since": "2025-01-01"
|
|
115
115
|
},
|
|
116
116
|
"hook:free-text-guard": {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"domain": "safety",
|
|
120
120
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
121
121
|
"installedPath": ".instar/hooks/instar/free-text-guard.sh",
|
|
122
|
-
"contentHash": "
|
|
122
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
123
123
|
"since": "2025-01-01"
|
|
124
124
|
},
|
|
125
125
|
"hook:claim-intercept": {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"domain": "coherence",
|
|
129
129
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
130
130
|
"installedPath": ".instar/hooks/instar/claim-intercept.js",
|
|
131
|
-
"contentHash": "
|
|
131
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
132
132
|
"since": "2025-01-01"
|
|
133
133
|
},
|
|
134
134
|
"hook:claim-intercept-response": {
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"domain": "coherence",
|
|
138
138
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
139
139
|
"installedPath": ".instar/hooks/instar/claim-intercept-response.js",
|
|
140
|
-
"contentHash": "
|
|
140
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
141
141
|
"since": "2025-01-01"
|
|
142
142
|
},
|
|
143
143
|
"hook:stop-gate-router": {
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"domain": "safety",
|
|
147
147
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
148
148
|
"installedPath": ".instar/hooks/instar/stop-gate-router.js",
|
|
149
|
-
"contentHash": "
|
|
149
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
150
150
|
"since": "2025-01-01"
|
|
151
151
|
},
|
|
152
152
|
"hook:attribution-gate": {
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"domain": "safety",
|
|
156
156
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
157
157
|
"installedPath": ".instar/hooks/instar/attribution-gate.js",
|
|
158
|
-
"contentHash": "
|
|
158
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
159
159
|
"since": "2025-01-01"
|
|
160
160
|
},
|
|
161
161
|
"hook:auto-approve-permissions": {
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"domain": "safety",
|
|
165
165
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
166
166
|
"installedPath": ".instar/hooks/instar/auto-approve-permissions.js",
|
|
167
|
-
"contentHash": "
|
|
167
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
168
168
|
"since": "2025-01-01"
|
|
169
169
|
},
|
|
170
170
|
"job:health-check": {
|
|
@@ -1628,7 +1628,7 @@
|
|
|
1628
1628
|
"type": "subsystem",
|
|
1629
1629
|
"domain": "updates",
|
|
1630
1630
|
"sourcePath": "src/core/PostUpdateMigrator.ts",
|
|
1631
|
-
"contentHash": "
|
|
1631
|
+
"contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
|
|
1632
1632
|
"since": "2025-01-01"
|
|
1633
1633
|
},
|
|
1634
1634
|
"subsystem:scheduler": {
|
|
@@ -1676,7 +1676,7 @@
|
|
|
1676
1676
|
"type": "subsystem",
|
|
1677
1677
|
"domain": "memory",
|
|
1678
1678
|
"sourcePath": "src/memory/SemanticMemory.ts",
|
|
1679
|
-
"contentHash": "
|
|
1679
|
+
"contentHash": "d377a4ed189e9024ecdf66cf173fbca3986934971f13e4ac7170e4a86e018096",
|
|
1680
1680
|
"since": "2025-01-01"
|
|
1681
1681
|
},
|
|
1682
1682
|
"subsystem:multi-machine-coordinator": {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"generatedFrom": "source-tree",
|
|
4
4
|
"registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
|
|
5
|
-
"packageVersion": "1.3.
|
|
5
|
+
"packageVersion": "1.3.2005",
|
|
6
6
|
"guards": [
|
|
7
7
|
{
|
|
8
8
|
"ref": "docs/audits/phase-b/f10-triage.md",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sha256": "
|
|
2
|
+
"sha256": "3ed99ee73760832e2ecdbb66ebad95921b7abca89f87586c9e724d552b5cf100",
|
|
3
3
|
"registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
|
|
4
|
-
"packageVersion": "1.3.
|
|
4
|
+
"packageVersion": "1.3.2005"
|
|
5
5
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const SEARCH = 'GET /mobile/conversations/search?q=...&scope=pool';
|
|
2
|
+
|
|
3
|
+
export const CONVERSATION_SEARCH_REGISTRY_ROW =
|
|
4
|
+
`| Where did we discuss this before? | \`${SEARCH}\` (app, Telegram, and Slack history) |`;
|
|
5
|
+
export const CONVERSATION_SEARCH_CAPABILITY_ROW =
|
|
6
|
+
'| **Conversation Search** | Keyword and meaning search over captured app, Telegram, and Slack history |';
|
|
7
|
+
export const SEMANTIC_LEARNINGS_REGISTRY_ROW =
|
|
8
|
+
'| My past learnings about X? | `GET /semantic/search?q=X` (stored facts and learnings) |';
|
|
9
|
+
export const CONVERSATION_SEARCH_LOOKUP =
|
|
10
|
+
`5. **Need to find a previous conversation?** Use \`${SEARCH}\`.`;
|
|
11
|
+
export const CONVERSATION_SEARCH_PROACTIVE =
|
|
12
|
+
`- User asks **"didn't we talk about X?"** or **"where did I put that?"** → Search conversation history first (\`${SEARCH}\`). Check the relevant work records before concluding that nothing exists.`;
|
|
13
|
+
|
|
14
|
+
export function conversationSearchGuide(port: number): string {
|
|
15
|
+
return [
|
|
16
|
+
'**Conversation Search** — Search captured app, Telegram, and Slack messages the caller can access.',
|
|
17
|
+
`- Search: \`curl -G -H "Authorization: Bearer $AUTH" --data-urlencode "q=QUERY" "http://localhost:${port}/mobile/conversations/search?scope=pool&limit=10"\``,
|
|
18
|
+
'- Add `mode=meaning` to search by meaning. If that mode is unavailable, use keyword search. If conversation search returns 503 or is unavailable, use `GET /topic/search?q=...` for captured Telegram history.',
|
|
19
|
+
'- Read `partial`, `unsearched`, and `failedMachines` for coverage. A zero-result response only describes the history searched. Check the relevant work records for specs, branches, pull requests, or cards.',
|
|
20
|
+
].join('\n');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Replace only shipped pointers in legacy full-length agent guidance. The
|
|
24
|
+
* current reference layout regenerates these sections from the template. */
|
|
25
|
+
export function migrateConversationSearchGuidance(content: string): string {
|
|
26
|
+
const replaceLine = (line: string): string => {
|
|
27
|
+
switch (line) {
|
|
28
|
+
case '| Something I wrote before | `GET /memory/search?q=...` |':
|
|
29
|
+
return CONVERSATION_SEARCH_REGISTRY_ROW;
|
|
30
|
+
case '| **Memory Search** | Full-text search over all memory files (FTS5) |':
|
|
31
|
+
return CONVERSATION_SEARCH_CAPABILITY_ROW;
|
|
32
|
+
case '| My past learnings about X? | `GET /memory/search?q=X` |':
|
|
33
|
+
return SEMANTIC_LEARNINGS_REGISTRY_ROW;
|
|
34
|
+
case '5. **Need to find something I wrote before?** Use memory search (`GET /memory/search?q=...`).':
|
|
35
|
+
return CONVERSATION_SEARCH_LOOKUP;
|
|
36
|
+
case '- User asks **"didn\'t we talk about X?"** or **"where did I put that?"** → Use memory search (`GET /memory/search?q=...`). The full-text index covers everything I\'ve written.':
|
|
37
|
+
return CONVERSATION_SEARCH_PROACTIVE;
|
|
38
|
+
default:
|
|
39
|
+
return line;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const legacyPort = /^- Search: `curl -H "Authorization: Bearer \$AUTH" "http:\/\/localhost:(\d+)\/memory\/search\?q=QUERY&limit=10"`$/m.exec(content)?.[1];
|
|
44
|
+
if (legacyPort) {
|
|
45
|
+
const old = [
|
|
46
|
+
"**Memory Search** — Full-text search over all indexed memory files using SQLite FTS5. Find anything you've ever written to MEMORY.md, handoff notes, or state files.",
|
|
47
|
+
`- Search: \`curl -H "Authorization: Bearer $AUTH" "http://localhost:${legacyPort}/memory/search?q=QUERY&limit=10"\``,
|
|
48
|
+
`- Stats: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${legacyPort}/memory/stats\``,
|
|
49
|
+
`- Reindex: \`curl -X POST -H "Authorization: Bearer $AUTH" http://localhost:${legacyPort}/memory/reindex\``,
|
|
50
|
+
`- Sync (incremental): \`curl -X POST -H "Authorization: Bearer $AUTH" http://localhost:${legacyPort}/memory/sync\``,
|
|
51
|
+
'- **Auto-sync**: Search automatically syncs before querying, so results are always current.',
|
|
52
|
+
`- **When to use**: When looking for something you know you wrote but can't remember where. When a user asks "didn't we discuss X?" When building context for a task from past learnings.`,
|
|
53
|
+
].join('\n');
|
|
54
|
+
content = content.replace(old, () => conversationSearchGuide(Number(legacyPort)));
|
|
55
|
+
}
|
|
56
|
+
return content.split('\n').map(replaceLine).join('\n');
|
|
57
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CONVERSATION_SEARCH_CAPABILITY_ROW, CONVERSATION_SEARCH_LOOKUP, CONVERSATION_SEARCH_PROACTIVE, CONVERSATION_SEARCH_REGISTRY_ROW, SEMANTIC_LEARNINGS_REGISTRY_ROW, conversationSearchGuide } from './conversationSearchGuidance.js';
|
|
1
2
|
import { recoveryAwareness } from '../recovery/RecoveryAwareness.js';
|
|
2
3
|
import { failureCalloutAwareness } from '../core/failureCalloutAwareness.js';
|
|
3
4
|
/**
|
|
@@ -411,7 +412,7 @@ Server: curl http://localhost:${port}/health | Capabilities: curl -H "Authorizat
|
|
|
411
412
|
| Multi-machine / pairing | \`instar machines --help\` |
|
|
412
413
|
| Architecture / how I work | \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/context/dispatch\` |
|
|
413
414
|
| Someone I've interacted with | \`GET /relationships\` |
|
|
414
|
-
|
|
415
|
+
${CONVERSATION_SEARCH_REGISTRY_ROW}
|
|
415
416
|
| Writing code / debugging | Read \`.instar/context/development.md\` if it exists |
|
|
416
417
|
| Managing context / knowledge | \`instar playbook status\` or \`instar playbook doctor\` |
|
|
417
418
|
| Deploying / building | Read \`.instar/context/deployment.md\` if it exists |
|
|
@@ -1078,13 +1079,7 @@ ${remoteDesktopBullet(port)}
|
|
|
1078
1079
|
- **Automatic safety**: Restore is blocked while sessions are active and creates a pre-restore backup first.
|
|
1079
1080
|
- **When to use proactively**: Before applying dispatches that modify config, before updating agent identity, before any experiment that touches state files.
|
|
1080
1081
|
|
|
1081
|
-
|
|
1082
|
-
- Search: \`curl -H "Authorization: Bearer $AUTH" "http://localhost:${port}/memory/search?q=QUERY&limit=10"\`
|
|
1083
|
-
- Stats: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/memory/stats\`
|
|
1084
|
-
- Reindex: \`curl -X POST -H "Authorization: Bearer $AUTH" http://localhost:${port}/memory/reindex\`
|
|
1085
|
-
- Sync (incremental): \`curl -X POST -H "Authorization: Bearer $AUTH" http://localhost:${port}/memory/sync\`
|
|
1086
|
-
- **Auto-sync**: Search automatically syncs before querying, so results are always current.
|
|
1087
|
-
- **When to use**: When looking for something you know you wrote but can't remember where. When a user asks "didn't we discuss X?" When building context for a task from past learnings.
|
|
1082
|
+
${conversationSearchGuide(port)}
|
|
1088
1083
|
|
|
1089
1084
|
**Anthropic Subscription-Path Routing (June-15 readiness)** — Your internal background LLM calls (sentinels, gates, extractors) AND your headless job / agent-to-agent / dispatch spawns normally run as \`claude -p\` one-shots, which bill the Agent SDK credit pot after 2026-06-15. The subscription-path lever routes BOTH through interactive Claude sessions instead — the path that keeps working when the pot is empty. (Internal calls use a pooled REPL; rerouted job/A2A spawns run as normal interactive sessions with a completion marker, a concurrency cap, and quota backpressure — each session's \`launchLane\` in \`GET /sessions\` shows which billing lane it used.)
|
|
1090
1085
|
- What's actually wired in: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/providers/registry\` → registered provider adapters + capability flags. Both \`anthropic-headless\` and \`anthropic-interactive-pool\` listed = the escape hatch is installed.
|
|
@@ -1449,7 +1444,7 @@ ${jobTransferGuide(port).registry.trimEnd()}
|
|
|
1449
1444
|
| How full is each machine's disk? / why was an upload refused? | \`GET /disk-steward?scope=pool\` — each machine's free space, forecast and last cleanup, read live (→ Lookup details) |
|
|
1450
1445
|
| My configuration? | \`.instar/config.json\` |
|
|
1451
1446
|
| My identity/principles? | \`.instar/AGENT.md\` |
|
|
1452
|
-
|
|
1447
|
+
${SEMANTIC_LEARNINGS_REGISTRY_ROW}
|
|
1453
1448
|
| My context items / playbook? | \`instar playbook status\` or \`instar playbook list\` |
|
|
1454
1449
|
| My backup history? | \`GET /backups\` |
|
|
1455
1450
|
| My state change history? | \`GET /git/log\` |
|
|
@@ -1548,7 +1543,7 @@ When asked for something I can't do yet, I build it:
|
|
|
1548
1543
|
2. **Need periodic checks?** Create a job in \`.instar/jobs.json\`. If it reports to the user, ask whether they want to see its reports; otherwise they stay quiet.
|
|
1549
1544
|
3. **Need a new integration?** Write a script in \`.claude/scripts/\`.
|
|
1550
1545
|
4. **Need to remember something?** Write to \`.instar/MEMORY.md\`.
|
|
1551
|
-
|
|
1546
|
+
${CONVERSATION_SEARCH_LOOKUP}
|
|
1552
1547
|
6. **Need to protect state before a risky change?** Create a backup (\`POST /backups\`).
|
|
1553
1548
|
7. **Need to notify the user?** Use the messaging API.
|
|
1554
1549
|
8. **Need external API access?** Write a script that calls the API.
|
|
@@ -1693,7 +1688,7 @@ ${DOC_DELIVERY_ROW_PRODUCE_SHORT}
|
|
|
1693
1688
|
- User says **"you keep doing X"** / asks **what I've learned to do** → check \`GET /skills/learned\` and surface any proposal still without a verdict — never claim a learned skill from memory (→ Lookup details).
|
|
1694
1689
|
- A learned skill sits in **\`pending[]\`** → tell the operator in plain words what it does and what triggered it; the one tap that confirms or rejects it is theirs, never mine (→ Lookup details).
|
|
1695
1690
|
- User asks me to **remember something** → Write it to MEMORY.md and explain it persists across sessions.
|
|
1696
|
-
|
|
1691
|
+
${CONVERSATION_SEARCH_PROACTIVE}
|
|
1697
1692
|
- Before any **risky operation** (config changes, updates, experiments) → Create a backup snapshot first (\`POST /backups\`). Mention that you did it — the user should know their state is protected.
|
|
1698
1693
|
- User asks about **other agents on this machine** → Check the agent registry (\`GET /agents\`). Share what's running and on which ports.
|
|
1699
1694
|
- After **major state changes** → Commit to git (\`POST /git/commit\`); the \`git-sync\` job only covers the routine hourly sync (→ Lookup details).
|
|
@@ -2628,7 +2623,7 @@ Before answering ANY question about my capabilities or architecture from memory
|
|
|
2628
2623
|
| Multi-machine / pairing | \`instar machines --help\` |
|
|
2629
2624
|
| Architecture / how I work | \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/context/dispatch\` |
|
|
2630
2625
|
| Someone I've interacted with | \`GET /relationships\` |
|
|
2631
|
-
|
|
2626
|
+
${CONVERSATION_SEARCH_REGISTRY_ROW}
|
|
2632
2627
|
| Writing code / debugging | Read \`.instar/context/development.md\` if it exists |
|
|
2633
2628
|
| Managing context / knowledge | \`instar playbook status\` or \`instar playbook doctor\` |
|
|
2634
2629
|
| Deploying / building | Read \`.instar/context/deployment.md\` if it exists |
|
|
@@ -2758,7 +2753,7 @@ One-line awareness of every capability. For full docs, query the Self-Knowledge
|
|
|
2758
2753
|
| **Event Stream (SSE)** | Real-time server events |
|
|
2759
2754
|
| **Dashboard** | Web UI for session monitoring and file browsing |
|
|
2760
2755
|
| **Backup System** | Snapshot and restore agent state |
|
|
2761
|
-
|
|
2756
|
+
${CONVERSATION_SEARCH_CAPABILITY_ROW}
|
|
2762
2757
|
| **Git Sync** | Automatic version-control and multi-machine sync |
|
|
2763
2758
|
| **Agent Registry** | Discover all agents on this machine |
|
|
2764
2759
|
| **Skills** | Reusable behavioral capabilities as slash commands |
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Upgrade Guide — vNEXT
|
|
2
|
+
|
|
3
|
+
<!-- assembled-by: assemble-next-md -->
|
|
4
|
+
<!-- bump: patch -->
|
|
5
|
+
|
|
6
|
+
## What Changed
|
|
7
|
+
|
|
8
|
+
Agent instructions now point to captured app, Telegram, and Slack conversation history when looking for earlier discussions. The same instructions reach existing agents through the CLAUDE.md migration. Memory and Telegram keyword searches now safely handle text containing dots, hyphens, and apostrophes.
|
|
9
|
+
|
|
10
|
+
## What to Tell Your User
|
|
11
|
+
|
|
12
|
+
"When you ask if we discussed something before, I will search the conversation history and check how much the search covered. Names such as instar.sh and IDs such as SEC-123 also work in the older memory and Telegram search routes."
|
|
13
|
+
|
|
14
|
+
## Summary of New Capabilities
|
|
15
|
+
|
|
16
|
+
The agent can look up captured discussions across machines using the conversation search route.
|
|
17
|
+
|
|
18
|
+
## Evidence
|
|
19
|
+
|
|
20
|
+
Regression coverage in memory-index, semantic-memory, topic-memory, and conversation-search-guidance unit tests, plus the Telegram search HTTP and CLAUDE.md reference-layout tests.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Finding earlier conversations
|
|
2
|
+
|
|
3
|
+
When you ask whether we discussed something before, the agent now starts with conversation search. It can look through captured app, Telegram, and Slack messages it has access to and ask the agent's other machines to search their copies. It checks whether the search covered all the sources before reporting what it found. If conversation search is unavailable, the agent can check captured Telegram history.
|
|
4
|
+
|
|
5
|
+
The old instructions often sent the agent to a search that reads a small set of memory files. That explains how the agent could say it found nothing about permanent agent links while the earlier conversation was still there. Pull requests, branches, specs, and work cards have their own records, so the agent checks those when the question is about work that may already exist.
|
|
6
|
+
|
|
7
|
+
The search used by the older memory and Telegram routes now accepts text such as `instar.sh`, `SEC-123`, and contractions. A hyphen could previously produce an error and a dot could make an existing result disappear. Existing agents get the corrected instructions when they update.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Side-effects review for finding earlier conversations
|
|
2
|
+
|
|
3
|
+
**Scale and tier.** Tier 1, 18 files. The change updates lookup instructions and literal query construction using existing routes, stores, and authorization. One independent review round checked freshness and migration parity, the visibility boundary, and matching against the stores' tokenizer. It prompted the coverage guidance and a regression for contractions.
|
|
4
|
+
|
|
5
|
+
**Readers and writers.** New agents get the lookup wording through the scaffold. Existing reference-layout agents regenerate managed guidance from the scaffold. The legacy patch recognizes the shipped lines and exact shipped capability block. It preserves other text. All three existing FTS stores use the shared literal-term renderer. The existing stores own their schemas, sources, ranking, and database writes.
|
|
6
|
+
|
|
7
|
+
**Results and coverage.** Existing stopword and fallback behavior remains in SemanticMemory. The deliberate matching change is to keep punctuation inside literal phrases so the index tokenizes punctuation as it did on insertion. A token containing a dot, hyphen, or apostrophe can match adjacent indexed words. This uses FTS token boundaries. Check the original source to verify its punctuation. The guide names the search response's coverage fields and the Telegram fallback when app conversation search is unavailable.
|
|
8
|
+
|
|
9
|
+
**Authority and supervision.** These routes retain their own authorization and principal checks. The guidance only points to documented read paths. Search results and missing results are evidence for agent judgment, in keeping with Signal vs. Authority and Verify the State, Not Its Symbol. Agents read the results as evidence when deciding where to look next.
|
|
10
|
+
|
|
11
|
+
**Roll back.** Revert the text and query-renderer change. The existing indexes support either query renderer. The previously installed guidance will still point to a route that existed before this change; reference-layout agents regenerate guidance at update.
|
|
12
|
+
|
|
13
|
+
**Evidence.** Unit regressions cover actual indexed matches and misses for dotted and hyphenated names as well as apostrophes, and check fresh guidance and exact legacy replacements. HTTP integration checks the actual Telegram route. Reference-layout integration and fresh-init lifecycle check the files the agent reads.
|