@ornexus/neocortex 4.61.2 → 4.61.4
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/release-source.json +1 -1
- package/dist/sbom.cdx.json +1193 -1193
- package/install.ps1 +1 -1
- package/install.sh +1 -1
- package/package.json +2 -2
- package/packages/client/dist/commands/invoke.d.ts +8 -0
- package/packages/client/dist/commands/invoke.js +38 -2
- package/packages/client/dist/yolo/invoke-envelope-capability.js +4 -1
- package/targets-stubs/antigravity/gemini.md +1 -1
- package/targets-stubs/antigravity/skill/SKILL.md +1 -1
- package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
- package/targets-stubs/claude-code/neocortex-root.md +2 -2
- package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
- package/targets-stubs/claude-code/neocortex.md +6 -5
- package/targets-stubs/codex/AGENTS.md +1 -1
- package/targets-stubs/cursor/agent.md +2 -2
- package/targets-stubs/gemini-cli/agent.md +2 -2
- package/targets-stubs/opencode/neocortex-root.md +1 -1
- package/targets-stubs/vscode/neocortex.agent.md +2 -2
package/install.ps1
CHANGED
package/install.sh
CHANGED
package/package.json
CHANGED
|
@@ -792,6 +792,14 @@ export interface StoryWorktreeBarrierPollingOptions {
|
|
|
792
792
|
* phase-1 prompt, which resumes at C05.
|
|
793
793
|
*/
|
|
794
794
|
export declare function pollStoryWorktreeSpecBarrier(args: string, attempt: (args: string) => Promise<InvokeResult>, options?: StoryWorktreeBarrierPollingOptions): Promise<InvokeResult>;
|
|
795
|
+
/**
|
|
796
|
+
* 4.61.4: persist the server-returned C04 spec acceptance and phase-one receipt
|
|
797
|
+
* into the shared runtime evidence (git common dir), so the server can see
|
|
798
|
+
* every story's acceptance through any child's snapshot and open the barrier.
|
|
799
|
+
* The server re-validates both on every read; a persistence failure is
|
|
800
|
+
* reported, never fatal to the step result.
|
|
801
|
+
*/
|
|
802
|
+
export declare function persistStoryWorktreePhaseEvidence(projectRoot: string, result: InvokeResult): Promise<void>;
|
|
795
803
|
export declare function invoke(options: InvokeOptions): Promise<InvokeResult>;
|
|
796
804
|
/**
|
|
797
805
|
* Extract the canonical trigger for client-side pre-flight checks.
|
|
@@ -72,7 +72,7 @@ import { probeProjectIdentityMigrationCapability } from '../migrations/project-i
|
|
|
72
72
|
import { normalizeYoloopStoryPlanningEvidence } from '../../../shared/dist/yoloop/planning-graph.js';
|
|
73
73
|
import { normalizeContinuousWriteRef } from '../../../shared/dist/yoloop/wave-decision-receipt.js';
|
|
74
74
|
import { epicHeadReconciliationInputDigest, epicHeadReconciliationPathsDigest, epicHeadReconciliationRangeDigest, } from '../../../shared/dist/yoloop/epic-terminal-git.js';
|
|
75
|
-
import { applyGitLifecycleRuntimeOverlay, classifyGitLifecycleStoryCheckpointProjectionSync, ensureRuntimeEpic, ensureGitLifecycleRuntimeInitialized, executeP205TransientAuthorities, persistGitLifecycleGraphAuthority, P205_COMPLETE_COMMAND, gitLifecycleStoryWriteSet, isStoryWorktreeEvidenceContainer, mutateGitLifecycleRuntime, projectP205TransientExecutionEvidence, readGitLifecycleRuntimeSync, verifyLegacyCheckpointMigrationCandidateSync, } from '../git/git-lifecycle-store.js';
|
|
75
|
+
import { applyGitLifecycleRuntimeOverlay, classifyGitLifecycleStoryCheckpointProjectionSync, ensureRuntimeEpic, ensureGitLifecycleRuntimeInitialized, executeP205TransientAuthorities, persistGitLifecycleGraphAuthority, P205_COMPLETE_COMMAND, gitLifecycleStoryWriteSet, appendStoryWorktreeEvidence, isStoryWorktreeEvidenceContainer, mutateGitLifecycleRuntime, projectP205TransientExecutionEvidence, readGitLifecycleRuntimeSync, verifyLegacyCheckpointMigrationCandidateSync, } from '../git/git-lifecycle-store.js';
|
|
76
76
|
import { verifyRootMemoryPhysicalWriteSet } from '../private-execution/root-memory-git-evidence.js';
|
|
77
77
|
import { isRootProjectMemoryEffect } from '../private-execution/shared-root-memory-types.js';
|
|
78
78
|
import { probeYoloInvokeEnvelopeCapability } from '../yolo/invoke-envelope-capability.js';
|
|
@@ -4836,10 +4836,46 @@ export async function pollStoryWorktreeSpecBarrier(args, attempt, options = {})
|
|
|
4836
4836
|
await sleep(retryAfter);
|
|
4837
4837
|
}
|
|
4838
4838
|
}
|
|
4839
|
+
/**
|
|
4840
|
+
* 4.61.4: persist the server-returned C04 spec acceptance and phase-one receipt
|
|
4841
|
+
* into the shared runtime evidence (git common dir), so the server can see
|
|
4842
|
+
* every story's acceptance through any child's snapshot and open the barrier.
|
|
4843
|
+
* The server re-validates both on every read; a persistence failure is
|
|
4844
|
+
* reported, never fatal to the step result.
|
|
4845
|
+
*/
|
|
4846
|
+
export async function persistStoryWorktreePhaseEvidence(projectRoot, result) {
|
|
4847
|
+
const phase = result.metadata?.storyWorktreePhase;
|
|
4848
|
+
if (!result.success || !phase || typeof phase !== 'object' || Array.isArray(phase))
|
|
4849
|
+
return;
|
|
4850
|
+
const record = phase;
|
|
4851
|
+
const acceptance = record.specAcceptance;
|
|
4852
|
+
const receipt = record.phaseOneReceipt;
|
|
4853
|
+
const storyId = typeof record.storyId === 'string' ? record.storyId : undefined;
|
|
4854
|
+
const epicId = storyId && /^P[0-9]{1,12}\./.test(storyId) ? storyId.split('.')[0] : undefined;
|
|
4855
|
+
if (!epicId || (acceptance === undefined && receipt === undefined))
|
|
4856
|
+
return;
|
|
4857
|
+
try {
|
|
4858
|
+
await mutateGitLifecycleRuntime(projectRoot, (document) => {
|
|
4859
|
+
appendStoryWorktreeEvidence(document, epicId, {
|
|
4860
|
+
...(acceptance !== undefined ? { specAcceptances: [acceptance] } : {}),
|
|
4861
|
+
...(receipt !== undefined ? { receipts: [receipt] } : {}),
|
|
4862
|
+
});
|
|
4863
|
+
});
|
|
4864
|
+
}
|
|
4865
|
+
catch (error) {
|
|
4866
|
+
const reason = error instanceof Error && /^[a-z0-9-]{1,80}$/.test(error.message) ? error.message : 'story-worktree-evidence-persist-failed';
|
|
4867
|
+
process.stderr.write(`[Neocortex] story-worktree evidence not persisted (${reason}); the root must re-dispatch this phase-1 prompt.\n`);
|
|
4868
|
+
}
|
|
4869
|
+
}
|
|
4839
4870
|
export async function invoke(options) {
|
|
4840
4871
|
if (!isStoryWorktreePhaseOneInvocation(options.args))
|
|
4841
4872
|
return invokeOnce(options);
|
|
4842
|
-
|
|
4873
|
+
const projectRoot = options.projectRoot ?? process.cwd();
|
|
4874
|
+
return pollStoryWorktreeSpecBarrier(options.args, async () => {
|
|
4875
|
+
const result = await invokeOnce(options);
|
|
4876
|
+
await persistStoryWorktreePhaseEvidence(projectRoot, result);
|
|
4877
|
+
return result;
|
|
4878
|
+
});
|
|
4843
4879
|
}
|
|
4844
4880
|
async function invokeOnce(options) {
|
|
4845
4881
|
// P205.07: admission is physically first. A rejected envelope cannot reach
|
|
@@ -21,7 +21,10 @@ export async function probeYoloInvokeEnvelopeCapability(serverUrl, fetcher = glo
|
|
|
21
21
|
const timeout = setTimeout(() => controller.abort(), 5_000);
|
|
22
22
|
timeout.unref?.();
|
|
23
23
|
try {
|
|
24
|
-
|
|
24
|
+
// `/health` serves the same handler as `/api/v1/health` but is exempt from
|
|
25
|
+
// the API rate limit, so parallel story-worktree children cannot turn a
|
|
26
|
+
// 429 into a false `capability-missing`.
|
|
27
|
+
const response = await fetcher(`${serverUrl.replace(/\/+$/, '')}/health`, {
|
|
25
28
|
method: 'GET',
|
|
26
29
|
headers: { accept: 'application/json' },
|
|
27
30
|
signal: controller.signal,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex-root
|
|
3
|
-
description: "🧠 Neocortex Root Agent v4.61.
|
|
3
|
+
description: "🧠 Neocortex Root Agent v4.61.4 | OrNexus Team"
|
|
4
4
|
model: opus
|
|
5
5
|
color: blue
|
|
6
6
|
tools:
|
|
@@ -108,7 +108,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
108
108
|
┌────────────────────────────────────────────────────────────┐
|
|
109
109
|
│ │
|
|
110
110
|
│ ####### N E O C O R T E X │
|
|
111
|
-
│ ### ######## v4.61.
|
|
111
|
+
│ ### ######## v4.61.4 │
|
|
112
112
|
│ ######### ##### │
|
|
113
113
|
│ ## ############## Development Orchestrator │
|
|
114
114
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.61.
|
|
3
|
+
description: "🧠 Neocortex v4.61.4 | OrNexus Team"
|
|
4
4
|
model: opus
|
|
5
5
|
color: blue
|
|
6
6
|
permissionMode: bypassPermissions
|
|
@@ -106,7 +106,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
106
106
|
┌────────────────────────────────────────────────────────────┐
|
|
107
107
|
│ │
|
|
108
108
|
│ ####### N E O C O R T E X │
|
|
109
|
-
│ ### ######## v4.61.
|
|
109
|
+
│ ### ######## v4.61.4 │
|
|
110
110
|
│ ######### ##### │
|
|
111
111
|
│ ## ############## Development Orchestrator │
|
|
112
112
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -230,10 +230,11 @@ authorizes delegation (`native_safe`) and returns a root-owned plan:
|
|
|
230
230
|
|
|
231
231
|
### Story worktree phase prompts (v4)
|
|
232
232
|
|
|
233
|
-
`story-worktree-phase-1`: I run in a native worktree.
|
|
233
|
+
`story-worktree-phase-1`: I run in a native worktree. Before setup I run
|
|
234
234
|
`neocortex-client story-worktree adopt` with
|
|
235
|
-
`--worktree-path "$(git rev-parse --show-toplevel)"` and IDs/SHAs
|
|
236
|
-
output, never invented;
|
|
235
|
+
`--worktree-path "$(git rev-parse --show-toplevel)"` and the IDs/SHAs of
|
|
236
|
+
`metadata.storyWorktreeAdoption`, from server output, never invented; then setup
|
|
237
|
+
runs in this same worktree. I stop when the server reports phase 1 complete. `story-worktree-phase-2`: I work only
|
|
237
238
|
in my adopted worktree (`temporaryBranch` from `neocortex-client story-worktree
|
|
238
239
|
status`, path from `git worktree list`). Any refusal (e.g.
|
|
239
240
|
`native-worktree-base-mismatch`, `native-worktree-dirty`) stops me. I never
|
|
@@ -32,7 +32,7 @@ Codex built-in commands or actions.
|
|
|
32
32
|
|
|
33
33
|
<!-- END: Plugin Conflict Prevention -->
|
|
34
34
|
|
|
35
|
-
# Neocortex v4.61.
|
|
35
|
+
# Neocortex v4.61.4 | OrNexus Team
|
|
36
36
|
|
|
37
37
|
You are a Development Orchestrator. All orchestration logic is delivered by the remote Neocortex server.
|
|
38
38
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.61.
|
|
3
|
+
description: "🧠 Neocortex v4.61.4 | OrNexus Team"
|
|
4
4
|
model: inherit
|
|
5
5
|
readonly: false
|
|
6
6
|
is_background: false
|
|
@@ -104,7 +104,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
104
104
|
┌────────────────────────────────────────────────────────────┐
|
|
105
105
|
│ │
|
|
106
106
|
│ ####### N E O C O R T E X │
|
|
107
|
-
│ ### ######## v4.61.
|
|
107
|
+
│ ### ######## v4.61.4 │
|
|
108
108
|
│ ######### ##### │
|
|
109
109
|
│ ## ############## Development Orchestrator │
|
|
110
110
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex-root
|
|
3
|
-
description: "🧠 Neocortex v4.61.
|
|
3
|
+
description: "🧠 Neocortex v4.61.4 | OrNexus Team"
|
|
4
4
|
kind: local
|
|
5
5
|
tools:
|
|
6
6
|
# File operations (Gemini CLI built-ins)
|
|
@@ -62,7 +62,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
62
62
|
┌────────────────────────────────────────────────────────────┐
|
|
63
63
|
│ │
|
|
64
64
|
│ ####### N E O C O R T E X │
|
|
65
|
-
│ ### ######## v4.61.
|
|
65
|
+
│ ### ######## v4.61.4 │
|
|
66
66
|
│ ######### ##### │
|
|
67
67
|
│ ## ############## Development Orchestrator │
|
|
68
68
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -64,7 +64,7 @@ task directive, I keep root-owned inline/shell-loop execution.
|
|
|
64
64
|
┌────────────────────────────────────────────────────────────┐
|
|
65
65
|
│ │
|
|
66
66
|
│ ####### N E O C O R T E X │
|
|
67
|
-
│ ### ######## v4.61.
|
|
67
|
+
│ ### ######## v4.61.4 │
|
|
68
68
|
│ ######### ##### │
|
|
69
69
|
│ ## ############## Development Orchestrator │
|
|
70
70
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "neocortex"
|
|
3
|
-
description: "Neocortex v4.61.
|
|
3
|
+
description: "Neocortex v4.61.4 | OrNexus Team"
|
|
4
4
|
tools:
|
|
5
5
|
# Read / Edit (built-in tool sets)
|
|
6
6
|
- read
|
|
@@ -72,7 +72,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
72
72
|
┌────────────────────────────────────────────────────────────┐
|
|
73
73
|
│ │
|
|
74
74
|
│ ####### N E O C O R T E X │
|
|
75
|
-
│ ### ######## v4.61.
|
|
75
|
+
│ ### ######## v4.61.4 │
|
|
76
76
|
│ ######### ##### │
|
|
77
77
|
│ ## ############## Development Orchestrator │
|
|
78
78
|
│ ## ### ###### ## OrNexus Team │
|