@ornexus/neocortex 4.61.5 → 4.62.0
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 +31 -34
- package/install.sh +1 -1
- package/package.json +5 -2
- package/packages/client/dist/adapters/adapter-registry.js +1 -108
- package/packages/client/dist/adapters/antigravity-adapter.js +2 -77
- package/packages/client/dist/adapters/claude-code-adapter.js +3 -79
- package/packages/client/dist/adapters/codex-adapter.js +2 -80
- package/packages/client/dist/adapters/cursor-adapter.js +4 -115
- package/packages/client/dist/adapters/gemini-adapter.js +2 -71
- package/packages/client/dist/adapters/grok-adapter.js +2 -42
- package/packages/client/dist/adapters/index.js +1 -22
- package/packages/client/dist/adapters/platform-detector.js +1 -220
- package/packages/client/dist/adapters/target-adapter.js +0 -12
- package/packages/client/dist/adapters/vscode-adapter.js +2 -72
- package/packages/client/dist/agent/refresh-stubs.js +2 -443
- package/packages/client/dist/agent/update-agent-yaml.js +1 -102
- package/packages/client/dist/agent/update-description.d.ts +8 -1
- package/packages/client/dist/agent/update-description.js +2 -260
- package/packages/client/dist/cache/crypto-utils.js +1 -78
- package/packages/client/dist/cache/encrypted-cache.js +1 -338
- package/packages/client/dist/cache/in-memory-asset-cache.js +1 -73
- package/packages/client/dist/cache/index.js +1 -13
- package/packages/client/dist/cache/protected-pi-boundary.js +1 -44
- package/packages/client/dist/checkpoint/checkpoint-client-reader.js +2 -127
- package/packages/client/dist/checkpoint/index.js +1 -11
- package/packages/client/dist/checkpoint/shared-checkpoint-types.js +1 -32
- package/packages/client/dist/cli.js +5 -364
- package/packages/client/dist/commands/activate.js +8 -394
- package/packages/client/dist/commands/architecture-answers.js +7 -274
- package/packages/client/dist/commands/architecture-memory-terminal.js +4 -253
- package/packages/client/dist/commands/architecture-non-ui-continuation.js +1 -100
- package/packages/client/dist/commands/architecture-root-binding.js +1 -51
- package/packages/client/dist/commands/cache-status.js +2 -112
- package/packages/client/dist/commands/config.js +1 -88
- package/packages/client/dist/commands/doctor.js +2 -635
- package/packages/client/dist/commands/invoke.d.ts +17 -0
- package/packages/client/dist/commands/invoke.js +148 -7822
- package/packages/client/dist/commands/legacy-epic-terminal.js +1 -71
- package/packages/client/dist/commands/legacy-story-branch.js +1 -96
- package/packages/client/dist/commands/legacy-story-pr.js +1 -276
- package/packages/client/dist/commands/mutation-qa-checkpoint.js +5 -285
- package/packages/client/dist/commands/mutation-qa-gate.js +1 -54
- package/packages/client/dist/commands/mutation-qa-git.js +1 -41
- package/packages/client/dist/commands/mutation-qa-policy.js +1 -102
- package/packages/client/dist/commands/mutation-qa-run.js +3 -219
- package/packages/client/dist/commands/mutation-qa-verdict.js +1 -149
- package/packages/client/dist/commands/mutation-qa.js +1 -220
- package/packages/client/dist/commands/native-agent.js +2 -136
- package/packages/client/dist/commands/planning-diagnosis.js +1 -43
- package/packages/client/dist/commands/planning-generation.js +1 -53
- package/packages/client/dist/commands/planning-memory.js +1 -40
- package/packages/client/dist/commands/planning-research.js +1 -42
- package/packages/client/dist/commands/private-session.js +1 -75
- package/packages/client/dist/commands/property-qa.js +1 -139
- package/packages/client/dist/commands/qa-control.js +1 -16
- package/packages/client/dist/commands/qa-scan-browser-launch.js +1 -55
- package/packages/client/dist/commands/qa-scan-browser-route.js +1 -28
- package/packages/client/dist/commands/qa-scan-capture.js +5 -663
- package/packages/client/dist/commands/qa-scan-discovery.js +3 -376
- package/packages/client/dist/commands/qa-scan-review.js +5 -826
- package/packages/client/dist/commands/qa-synthetic-backend-capture.js +1 -266
- package/packages/client/dist/commands/qa-synthetic-backend-review.js +1 -297
- package/packages/client/dist/commands/qa-synthetic-backend.js +2 -340
- package/packages/client/dist/commands/qa-synthetic-broker-port.js +1 -85
- package/packages/client/dist/commands/qa-synthetic-browser.js +1 -39
- package/packages/client/dist/commands/refactor-characterization.js +21 -671
- package/packages/client/dist/commands/refactor-commit.js +13 -399
- package/packages/client/dist/commands/refactor-control.js +3 -142
- package/packages/client/dist/commands/refactor-cpp-assertions.js +3 -93
- package/packages/client/dist/commands/refactor-review.js +5 -283
- package/packages/client/dist/commands/refactor-root.js +7 -588
- package/packages/client/dist/commands/refresh-memory.js +3 -174
- package/packages/client/dist/commands/shared-architecture-non-ui.js +1 -24
- package/packages/client/dist/commands/story-checkpoint.d.ts +5 -1
- package/packages/client/dist/commands/story-checkpoint.js +1 -203
- package/packages/client/dist/commands/story-worktree.js +5 -258
- package/packages/client/dist/config/host-auth-broker.js +1 -60
- package/packages/client/dist/config/host-auth-reference.js +1 -93
- package/packages/client/dist/config/profile-directory.js +1 -13
- package/packages/client/dist/config/resolver-selection.js +1 -278
- package/packages/client/dist/config/secure-config.js +12 -281
- package/packages/client/dist/config.js +2 -224
- package/packages/client/dist/constants.js +1 -25
- package/packages/client/dist/context/context-collector.js +2 -222
- package/packages/client/dist/context/context-sanitizer.js +1 -145
- package/packages/client/dist/continuity/autonomous-governance.js +1 -285
- package/packages/client/dist/continuity/continuity-client-state-store.js +1 -1587
- package/packages/client/dist/continuity/invoke-hooks.js +1 -129
- package/packages/client/dist/continuity/migrations/001-initial-schema.js +2 -12
- package/packages/client/dist/continuity/migrations/002-processing-output-summary-indexes.js +2 -12
- package/packages/client/dist/continuity/migrations/003-headless-execution-attempts.js +2 -12
- package/packages/client/dist/continuity/migrations/004-outbox-delivery-state.js +2 -12
- package/packages/client/dist/continuity/migrations/005-bounded-headless-queue.js +2 -12
- package/packages/client/dist/continuity/migrations/006-native-agent-dispatches.js +2 -10
- package/packages/client/dist/continuity/native-agent-store.js +1 -69
- package/packages/client/dist/continuity/native-agent-types.js +1 -105
- package/packages/client/dist/continuity/outbox.js +1 -117
- package/packages/client/dist/continuity/runner-bootstrap-policy.js +1 -172
- package/packages/client/dist/continuity/sqlite-store.js +81 -2612
- package/packages/client/dist/effects/invoke-effect-gateways.js +1 -62
- package/packages/client/dist/errors/error-messages.js +2 -258
- package/packages/client/dist/errors/frontmatter-diagnostics.d.ts +10 -1
- package/packages/client/dist/errors/frontmatter-diagnostics.js +1 -125
- package/packages/client/dist/evidence/collector.js +1 -347
- package/packages/client/dist/evidence/index.js +1 -1
- package/packages/client/dist/evidence/types.js +0 -2
- package/packages/client/dist/fs/atomic-state-replace.js +1 -152
- package/packages/client/dist/generated/command-registry.generated.js +1 -4076
- package/packages/client/dist/generated/public-projections.generated.js +1 -149
- package/packages/client/dist/git/direct-yolo-c01-retry.js +4 -138
- package/packages/client/dist/git/direct-yolo-checkpoint.d.ts +94 -9
- package/packages/client/dist/git/direct-yolo-checkpoint.js +3 -1592
- package/packages/client/dist/git/epic-operational-state.js +2 -672
- package/packages/client/dist/git/git-lifecycle-step-ids.js +1 -14
- package/packages/client/dist/git/git-lifecycle-store.d.ts +88 -0
- package/packages/client/dist/git/git-lifecycle-store.js +9 -2529
- package/packages/client/dist/git/legacy-story-branch-checkpoint.js +9 -259
- package/packages/client/dist/git/legacy-story-branch-setup.js +4 -348
- package/packages/client/dist/git/legacy-story-pr.js +70 -3538
- package/packages/client/dist/git/neocortex-trailers.js +2 -53
- package/packages/client/dist/git/release-gate-env.d.ts +62 -0
- package/packages/client/dist/git/release-gate-env.js +1 -0
- package/packages/client/dist/git/secure-filesystem-boundary.d.ts +24 -0
- package/packages/client/dist/git/secure-filesystem-boundary.js +20 -186
- package/packages/client/dist/git/story-worktree-cleanup.js +4 -1058
- package/packages/client/dist/git/story-worktree-integration.d.ts +62 -0
- package/packages/client/dist/git/story-worktree-integration.js +3 -603
- package/packages/client/dist/git/story-worktree-manager.js +3 -843
- package/packages/client/dist/git/story-worktree-paths.js +1 -150
- package/packages/client/dist/git/story-write-set-extension.d.ts +44 -0
- package/packages/client/dist/git/story-write-set-extension.js +1 -0
- package/packages/client/dist/graph-retrieval/pre-command-hook.js +1 -284
- package/packages/client/dist/graph-retrieval/shared-graph-retrieval-contract.js +1 -237
- package/packages/client/dist/i18n/first-run.js +2 -60
- package/packages/client/dist/index.js +1 -50
- package/packages/client/dist/invocation/invoke-input.js +1 -24
- package/packages/client/dist/license/host-auth-recovery.js +1 -401
- package/packages/client/dist/license/index.js +1 -5
- package/packages/client/dist/license/license-client.js +1 -337
- package/packages/client/dist/machine/fingerprint.js +2 -163
- package/packages/client/dist/machine/index.js +1 -5
- package/packages/client/dist/memory/project-memory-path-scope.js +1 -62
- package/packages/client/dist/memory/project-memory-writer.js +41 -1117
- package/packages/client/dist/memory/shared-project-memory-types.js +2 -259
- package/packages/client/dist/migrations/epic-lifecycle-backfill.js +3 -1060
- package/packages/client/dist/migrations/project-identity-capability.js +1 -50
- package/packages/client/dist/migrations/project-identity.js +7 -493
- package/packages/client/dist/migrations/state-json.js +4 -393
- package/packages/client/dist/policy/architecture-policy.js +2 -184
- package/packages/client/dist/policy/index.js +1 -7
- package/packages/client/dist/policy/shared-policy-types.js +0 -38
- package/packages/client/dist/policy/subagent-approval-policy.js +1 -57
- package/packages/client/dist/private-execution/clean-baseline.js +2 -279
- package/packages/client/dist/private-execution/codex-executor.js +4 -574
- package/packages/client/dist/private-execution/codex-host-runtime.js +1 -137
- package/packages/client/dist/private-execution/codex-lifecycle-guard.js +1 -97
- package/packages/client/dist/private-execution/codex-scoped-permissions.js +1 -128
- package/packages/client/dist/private-execution/delivery.js +13 -410
- package/packages/client/dist/private-execution/diagnosis-root-review.js +2 -294
- package/packages/client/dist/private-execution/frozen-handoff.js +6 -19
- package/packages/client/dist/private-execution/implementation-validation.js +2 -106
- package/packages/client/dist/private-execution/isolated-admission.js +23 -1432
- package/packages/client/dist/private-execution/isolated-session.js +5 -725
- package/packages/client/dist/private-execution/isolated-workspace.js +1 -122
- package/packages/client/dist/private-execution/pact-consumer-runtime.js +3 -409
- package/packages/client/dist/private-execution/pact-test-source.js +1 -258
- package/packages/client/dist/private-execution/pact-toolchain.js +3 -290
- package/packages/client/dist/private-execution/pact-write-set.js +1 -172
- package/packages/client/dist/private-execution/planning-diagnosis-checkpoint.js +5 -406
- package/packages/client/dist/private-execution/planning-generation-checkpoint.js +5 -462
- package/packages/client/dist/private-execution/planning-memory-checkpoint.js +3 -139
- package/packages/client/dist/private-execution/planning-research-checkpoint.js +4 -325
- package/packages/client/dist/private-execution/private-report-store.js +1 -42
- package/packages/client/dist/private-execution/property-test-candidate.js +1 -103
- package/packages/client/dist/private-execution/property-test-choices.js +3 -147
- package/packages/client/dist/private-execution/property-test-plan.js +7 -271
- package/packages/client/dist/private-execution/property-test-review.js +4 -258
- package/packages/client/dist/private-execution/property-test-runtime.js +9 -372
- package/packages/client/dist/private-execution/property-test-source.js +1 -139
- package/packages/client/dist/private-execution/root-checkpoint.js +1 -80
- package/packages/client/dist/private-execution/root-memory-git-evidence.js +3 -135
- package/packages/client/dist/private-execution/root-memory-recovery.js +1 -93
- package/packages/client/dist/private-execution/root-memory-request.js +1 -29
- package/packages/client/dist/private-execution/root-memory-scope.js +1 -178
- package/packages/client/dist/private-execution/root-memory-writer.js +1 -102
- package/packages/client/dist/private-execution/session-lease.js +1 -63
- package/packages/client/dist/private-execution/shared-private-admission-types.js +1 -50
- package/packages/client/dist/private-execution/shared-project-validation.js +1 -66
- package/packages/client/dist/private-execution/shared-root-memory-types.js +1 -61
- package/packages/client/dist/private-execution/ux-source-validation.js +1 -372
- package/packages/client/dist/private-execution/ux-write-set.js +2 -191
- package/packages/client/dist/registry/registry-reconciliation.js +1 -234
- package/packages/client/dist/resilience/circuit-breaker.js +1 -170
- package/packages/client/dist/resilience/degradation-manager.js +1 -164
- package/packages/client/dist/resilience/freshness-indicator.js +1 -100
- package/packages/client/dist/resilience/index.js +1 -8
- package/packages/client/dist/resilience/recovery-detector.js +1 -74
- package/packages/client/dist/resolvers/asset-resolver.js +0 -13
- package/packages/client/dist/resolvers/local-resolver.js +8 -255
- package/packages/client/dist/resolvers/remote-resolver.js +1 -233
- package/packages/client/dist/runner/binary.js +1 -404
- package/packages/client/dist/runner/cli.js +17 -1571
- package/packages/client/dist/runner/epic-background-dispatcher.js +1 -124
- package/packages/client/dist/runner/headless/adapters.js +1 -49
- package/packages/client/dist/runner/headless/background-root.js +1 -85
- package/packages/client/dist/runner/headless/child-env.d.ts +92 -0
- package/packages/client/dist/runner/headless/child-env.js +1 -0
- package/packages/client/dist/runner/headless/claude-code-adapter.js +1 -79
- package/packages/client/dist/runner/headless/continuous-story-workspace.js +11 -1776
- package/packages/client/dist/runner/headless/epic-git-reconciliation-inventory.js +1 -69
- package/packages/client/dist/runner/headless/epic-merge-candidate-qa.js +2 -111
- package/packages/client/dist/runner/headless/epic-terminal-git-cli-adapter.d.ts +1 -0
- package/packages/client/dist/runner/headless/epic-terminal-git-cli-adapter.js +10 -1464
- package/packages/client/dist/runner/headless/epic-terminal-git-runner.js +2 -357
- package/packages/client/dist/runner/headless/fake-adapter.js +1 -62
- package/packages/client/dist/runner/headless/managed-environment-cleanup.js +1 -274
- package/packages/client/dist/runner/headless/managed-profile.js +1 -149
- package/packages/client/dist/runner/headless/opencode-adapter.js +2 -145
- package/packages/client/dist/runner/headless/prepared-story-bundle.js +1 -43
- package/packages/client/dist/runner/headless/resolver.js +1 -231
- package/packages/client/dist/runner/headless/run-yolo.js +1 -886
- package/packages/client/dist/runner/headless/run-yoloop.js +2 -2657
- package/packages/client/dist/runner/headless/types.js +2 -575
- package/packages/client/dist/runner/host-capacity.js +1 -59
- package/packages/client/dist/runner/local-console.js +13 -396
- package/packages/client/dist/runner/portal-sync-worker.js +1 -1487
- package/packages/client/dist/runner/project-identity.js +1 -106
- package/packages/client/dist/runner/scheduler.js +7 -995
- package/packages/client/dist/runner-cli.js +2 -18
- package/packages/client/dist/state/invocation-shape.js +1 -13
- package/packages/client/dist/state/project-state-snapshot.js +1 -1754
- package/packages/client/dist/state/state-json-repair.js +3 -785
- package/packages/client/dist/state/structural-dag-projection.js +1 -118
- package/packages/client/dist/telemetry/index.js +1 -5
- package/packages/client/dist/telemetry/offline-queue.js +1 -131
- package/packages/client/dist/tier/index.js +1 -5
- package/packages/client/dist/tier/tier-aware-client.js +1 -405
- package/packages/client/dist/types/index.js +1 -38
- package/packages/client/dist/version.js +1 -27
- package/packages/client/dist/yolo/change-evidence-collector.d.ts +10 -0
- package/packages/client/dist/yolo/change-evidence-collector.js +1 -262
- package/packages/client/dist/yolo/invoke-envelope-capability.d.ts +2 -0
- package/packages/client/dist/yolo/invoke-envelope-capability.js +1 -65
- package/packages/client/dist/yolo/project-manifest-projection-collector.d.ts +28 -0
- package/packages/client/dist/yolo/project-manifest-projection-collector.js +1 -0
- package/packages/client/dist/yolo/spec-envelope-collector.d.ts +9 -0
- package/packages/client/dist/yolo/spec-envelope-collector.js +5 -184
- package/packages/client/dist/yoloop/discovery-hook.js +2 -300
- package/packages/client/dist/yoloop/index.js +1 -8
- package/packages/client/dist/yoloop/invoke-hooks.js +12 -669
- package/packages/client/dist/yoloop/shared-discover-epics.d.ts +16 -0
- package/packages/client/dist/yoloop/shared-discover-epics.js +1 -1007
- package/packages/client/dist/yoloop/shared-yoloop-types.js +1 -33
- package/packages/client/dist/yoloop/target-normalization.js +1 -180
- package/packages/client/dist/yoloop/yoloop-client-state-store.js +1 -1920
- package/packages/shared/dist/frontmatter-context-contract.js +164 -52
- package/packages/shared/dist/project-manifest-projection.js +199 -0
- package/packages/shared/dist/project-validation-commands.js +14 -6
- package/packages/shared/dist/yolo/spec-envelope-rules.js +85 -0
- package/packages/shared/dist/yolo/spec-envelope.js +33 -7
- package/packages/shared/dist/yoloop/epic-terminal-git.js +94 -6
- package/packages/shared/dist/yoloop/story-write-scope.js +212 -0
- package/targets-stubs/antigravity/gemini.md +1 -1
- package/targets-stubs/antigravity/install-antigravity.sh +13 -4
- 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 +5 -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/lib/managed-config-merge.js +77 -1
- package/targets-stubs/lib/managed-profile.sh +7 -0
- package/targets-stubs/opencode/neocortex-root.md +1 -1
- package/targets-stubs/vscode/install-vscode.sh +21 -0
- package/targets-stubs/vscode/neocortex.agent.md +2 -2
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Public lifecycle state identifiers assembled at runtime so distributable
|
|
3
|
-
* client JavaScript does not expose raw server step-routing literals.
|
|
4
|
-
*/
|
|
5
|
-
function lifecycleStepId(phase, ordinal, action) {
|
|
6
|
-
return ['step', phase, ordinal, ...action].join('-');
|
|
7
|
-
}
|
|
8
|
-
export const GIT_LIFECYCLE_COMMIT_PUSH_STEP_ID = lifecycleStepId('c', '08', ['commit', 'push']);
|
|
9
|
-
export const GIT_LIFECYCLE_UPDATE_PROJECT_MEMORY_STEP_ID = lifecycleStepId('c', '07', ['update', 'project', 'memory']);
|
|
10
|
-
export const GIT_LIFECYCLE_REVIEW_PR_STEP_ID = lifecycleStepId('c', '11', ['review', 'pr']);
|
|
11
|
-
export const GIT_LIFECYCLE_MERGE_PR_STEP_ID = lifecycleStepId('c', '12', ['merge', 'pr']);
|
|
12
|
-
export const GIT_LIFECYCLE_SETUP_BRANCH_STEP_ID = lifecycleStepId('c', '01', ['setup', 'branch']);
|
|
13
|
-
export const GIT_LIFECYCLE_SYNC_MAIN_STEP_ID = lifecycleStepId('c', '09', ['sync', 'main']);
|
|
14
|
-
export const GIT_LIFECYCLE_CREATE_PR_STEP_ID = lifecycleStepId('c', '10', ['create', 'pr']);
|
|
1
|
+
function _(E,I,t){return["step",E,I,...t].join("-")}const c=_("c","08",["commit","push"]),e=_("c","07",["update","project","memory"]),o=_("c","11",["review","pr"]),C=_("c","12",["merge","pr"]),T=_("c","01",["setup","branch"]),r=_("c","09",["sync","main"]),p=_("c","10",["create","pr"]);export{c as GIT_LIFECYCLE_COMMIT_PUSH_STEP_ID,p as GIT_LIFECYCLE_CREATE_PR_STEP_ID,C as GIT_LIFECYCLE_MERGE_PR_STEP_ID,o as GIT_LIFECYCLE_REVIEW_PR_STEP_ID,T as GIT_LIFECYCLE_SETUP_BRANCH_STEP_ID,r as GIT_LIFECYCLE_SYNC_MAIN_STEP_ID,e as GIT_LIFECYCLE_UPDATE_PROJECT_MEMORY_STEP_ID};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type EpicAggregateQaReceipt, type EpicHeadReconciliationReceiptV1 } from '../../../shared/dist/yoloop/epic-terminal-git.js';
|
|
2
2
|
import { type AnchoredDirectoryIdentity } from './secure-filesystem-boundary.js';
|
|
3
|
+
import { type ReleaseGateEnvContract } from './release-gate-env.js';
|
|
3
4
|
export declare const GIT_LIFECYCLE_RUNTIME_DIRECTORY = "neocortex-yoloop";
|
|
4
5
|
export declare const GIT_LIFECYCLE_RUNTIME_FILE = "runtime.json";
|
|
5
6
|
export declare const P205_COMPLETE_COMMAND: "node scripts/test-root.mjs --gate complete";
|
|
@@ -157,6 +158,63 @@ export interface EpicHeadReconciliationAuthority {
|
|
|
157
158
|
readonly __epicHeadReconciliationOpaqueAuthority: never;
|
|
158
159
|
}
|
|
159
160
|
export type EpicTerminalReleaseAuthority = P205TransientExecutionAuthority | EpicHeadReconciliationAuthority;
|
|
161
|
+
/** Canonical P205-CI-02 gate budgets, used when a manifest omits `budgets` (P226.02 D3). */
|
|
162
|
+
export declare const P205_DEFAULT_COMPLETE_GATE_WORST_CASE_MS = 2700000;
|
|
163
|
+
export declare const P205_DEFAULT_CANCELLATION_GRACE_MS = 300000;
|
|
164
|
+
export interface P205GateBudget {
|
|
165
|
+
readonly completeGateWorstCaseMs: number;
|
|
166
|
+
readonly cancellationGraceMs: number;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* P226-CON-GATE-REASONS closed allowlist. Only these typed gate reasons may
|
|
170
|
+
* cross `publicReason` and the invoke snapshot projection verbatim.
|
|
171
|
+
*/
|
|
172
|
+
export declare function isP226GateReasonCode(value: unknown): value is string;
|
|
173
|
+
/**
|
|
174
|
+
* Strict gate stderr parser (P226.02 D4). Only the last non-empty line of the
|
|
175
|
+
* bounded tail is inspected; anything else is `p205-gate-failed:unknown`. The
|
|
176
|
+
* input is never echoed, persisted or included in the result.
|
|
177
|
+
*/
|
|
178
|
+
export declare function parseP205GateFailureReason(stderrTail: string | undefined): string;
|
|
179
|
+
/** Budget from the committed manifest; absent → canonical defaults, invalid → fail closed. */
|
|
180
|
+
export declare function readP205GateBudget(raw: unknown): P205GateBudget;
|
|
181
|
+
/**
|
|
182
|
+
* Bind the working `P205-CI-02-ENV` contract to its committed bytes. Absent in
|
|
183
|
+
* both → `null` (minimal environment + undeclared debt); present only in the
|
|
184
|
+
* checkout, or differing from the commit → `p205-transient-producer-dirty`;
|
|
185
|
+
* unreadable/unsafe/malformed → `p205-gate-env-contract-invalid`.
|
|
186
|
+
*/
|
|
187
|
+
export declare function bindCommittedReleaseGateEnvContract(projectRoot: string, committedContractText: string | null): ReleaseGateEnvContract | null;
|
|
188
|
+
/**
|
|
189
|
+
* Environment handed to the P205 gate process (P226.02 AC1, P226-CON-GATE-ENV).
|
|
190
|
+
* The P226.01 `P205-CI-02-ENV` sibling contract must be byte-for-byte the
|
|
191
|
+
* committed one at `headSha` (like the manifest and runner); its projection is
|
|
192
|
+
* the fixed minimal environment plus the declared names present in the parent
|
|
193
|
+
* environment. A missing required name throws `p205-datasource-missing:<NAME>`
|
|
194
|
+
* and an invalid contract `p205-gate-env-contract-invalid`, both before any
|
|
195
|
+
* gate process starts. Both execution paths receive exactly the returned object.
|
|
196
|
+
*/
|
|
197
|
+
export declare function projectP205GateEnvironment(projectRoot: string, committedContractText: string | null, parentEnv?: Readonly<Record<string, string | undefined>>, platform?: string): Readonly<Record<string, string>>;
|
|
198
|
+
/** Names never handed to the gate: the fixed list above plus every `GIT_*` variable. */
|
|
199
|
+
export declare function isP205GateEnvDenied(name: string, caseInsensitive?: boolean): boolean;
|
|
200
|
+
/** Injectable process primitives for the gate terminator (tests only swap these). */
|
|
201
|
+
export interface P205GateTerminatorDeps {
|
|
202
|
+
readonly platform: NodeJS.Platform;
|
|
203
|
+
readonly killProcess: (pid: number, signal: NodeJS.Signals) => void;
|
|
204
|
+
readonly spawnDetached: (command: string, args: readonly string[]) => {
|
|
205
|
+
once(event: 'error', listener: () => void): unknown;
|
|
206
|
+
unref(): void;
|
|
207
|
+
};
|
|
208
|
+
readonly systemRoot?: string;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Terminate the gate process tree for one timeout phase (P226.02 AC3, D-001).
|
|
212
|
+
* POSIX signals the whole process group (`-pid`). win32 has no process groups,
|
|
213
|
+
* so the first (`term`) phase already runs `taskkill /PID <pid> /T /F` while
|
|
214
|
+
* the root is still alive and the tree is still reachable; the `kill` phase is
|
|
215
|
+
* a direct-child fallback.
|
|
216
|
+
*/
|
|
217
|
+
export declare function terminateP205GateTree(pid: number, phase: 'term' | 'kill', deps?: P205GateTerminatorDeps): void;
|
|
160
218
|
export declare function executeP205TransientAuthority(projectRoot: string, input: {
|
|
161
219
|
readonly headSha: string;
|
|
162
220
|
readonly graphRevision: string;
|
|
@@ -206,6 +264,28 @@ export declare function ensureGitLifecycleRuntimeInitialized(projectRoot: string
|
|
|
206
264
|
export declare function persistGitLifecycleGraphAuthority(projectRoot: string, authority: unknown, nowIso?: string): Promise<GitLifecycleGraphAuthorityPersistenceResult>;
|
|
207
265
|
export declare function mutateGitLifecycleRuntime<T>(projectRoot: string, mutate: (document: GitLifecycleRuntimeDocument) => T, options?: GitLifecycleMutationOptions): Promise<GitLifecycleMutationResult<T>>;
|
|
208
266
|
/** Merge the runtime overlay over tracked state without mutating either input. */
|
|
267
|
+
/**
|
|
268
|
+
* Hotfix 4.61.6: root-authorized story write-set extension. The root records
|
|
269
|
+
* paths a story legitimately touches beyond its tracked `files_to_modify`
|
|
270
|
+
* (accepted C14 extensions) in the closed runtime story overlay. Every write
|
|
271
|
+
* set consumer reads `files_to_modify` UNION `write_set_extension.paths`; the
|
|
272
|
+
* claim revision is the digest of that union.
|
|
273
|
+
*/
|
|
274
|
+
export declare const STORY_WRITE_SET_MAX_ENTRIES = 256;
|
|
275
|
+
export interface StoryWriteSetExtension {
|
|
276
|
+
readonly schemaVersion: 1;
|
|
277
|
+
readonly kind: 'root-write-set-extension';
|
|
278
|
+
readonly paths: readonly string[];
|
|
279
|
+
readonly digest: string;
|
|
280
|
+
readonly approvedAt: string;
|
|
281
|
+
readonly approvedBy: 'root_agent';
|
|
282
|
+
}
|
|
283
|
+
/** Exact, relative, non-governance repository file paths only (no directory scopes). */
|
|
284
|
+
export declare function isStoryWriteSetExtensionPath(value: unknown): value is string;
|
|
285
|
+
export declare function storyWriteSetExtensionDigest(paths: readonly string[]): string;
|
|
286
|
+
export declare function isStoryWriteSetExtension(value: unknown): value is StoryWriteSetExtension;
|
|
287
|
+
/** Valid extension paths of an effective/runtime story record, or none (fail closed on malformed). */
|
|
288
|
+
export declare function storyWriteSetExtensionPaths(story: Record<string, unknown> | undefined): readonly string[];
|
|
209
289
|
export declare function applyGitLifecycleRuntimeOverlay(tracked: Record<string, unknown>, runtime: GitLifecycleRuntimeDocument): Record<string, unknown>;
|
|
210
290
|
/** Return (creating when absent) the mutable P225.05 story-worktree journal. */
|
|
211
291
|
export declare function ensureStoryWorktreeJournal(document: GitLifecycleRuntimeDocument): StoryWorktreeJournal;
|
|
@@ -305,8 +385,16 @@ export declare function consumeEpicTerminalReleaseAuthority(authority: EpicTermi
|
|
|
305
385
|
readonly aggregateQaReceipt: EpicAggregateQaReceipt;
|
|
306
386
|
readonly headReconciliationReceipt?: EpicHeadReconciliationReceiptV1 | null;
|
|
307
387
|
}): boolean;
|
|
388
|
+
/**
|
|
389
|
+
* P226.05 (WS-05/F2): ordered claim candidates for a story write-set -- the
|
|
390
|
+
* authored set first, then (when valid and different) its expansion with the
|
|
391
|
+
* five control files. Every claim verifier tries them in this order.
|
|
392
|
+
*/
|
|
393
|
+
export declare function gitLifecycleStoryClaimCandidates(storyId: string, authorizedWriteSet: readonly string[]): readonly (readonly string[])[];
|
|
308
394
|
/** Reconstruct the same closed claim used by the direct or continuous planner. */
|
|
309
395
|
export declare function gitLifecycleStoryWriteSet(storyId: string, story: Record<string, unknown> | undefined, checkpoint: Record<string, unknown> | undefined): readonly string[];
|
|
396
|
+
/** P226.05: the lifecycle store's coverage decision, exported for parity tests. */
|
|
397
|
+
export declare function gitLifecycleWriteSetCovers(scope: string, path: string): boolean;
|
|
310
398
|
/** Pre-P205 admission for only the exact seven immutable P174 migrations. */
|
|
311
399
|
export declare function verifyLegacyCheckpointMigrationCandidateSync(projectRoot: string, value: unknown, storyId: string, epicId: string, executionBranch: string, authorizedWriteSet: readonly string[]): boolean;
|
|
312
400
|
export declare function computeImmutableStoryQaEvidenceDigest(input: {
|