@ornexus/neocortex 4.60.61 → 4.60.62

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 (86) hide show
  1. package/dist/release-source.json +1 -0
  2. package/dist/sbom.cdx.json +150 -47
  3. package/install.ps1 +1 -1
  4. package/install.sh +1 -1
  5. package/package.json +9 -4
  6. package/packages/client/dist/cli.js +52 -2
  7. package/packages/client/dist/commands/invoke.d.ts +1 -0
  8. package/packages/client/dist/commands/invoke.js +80 -73
  9. package/packages/client/dist/commands/legacy-epic-terminal.d.ts +9 -0
  10. package/packages/client/dist/commands/legacy-epic-terminal.js +1 -0
  11. package/packages/client/dist/commands/legacy-story-pr.d.ts +2 -1
  12. package/packages/client/dist/commands/legacy-story-pr.js +1 -1
  13. package/packages/client/dist/commands/mutation-qa-checkpoint.d.ts +39 -0
  14. package/packages/client/dist/commands/mutation-qa-checkpoint.js +5 -0
  15. package/packages/client/dist/commands/mutation-qa-gate.d.ts +35 -0
  16. package/packages/client/dist/commands/mutation-qa-gate.js +1 -0
  17. package/packages/client/dist/commands/mutation-qa-git.d.ts +2 -0
  18. package/packages/client/dist/commands/mutation-qa-git.js +1 -0
  19. package/packages/client/dist/commands/mutation-qa-policy.d.ts +15 -0
  20. package/packages/client/dist/commands/mutation-qa-policy.js +1 -0
  21. package/packages/client/dist/commands/mutation-qa-run.d.ts +14 -0
  22. package/packages/client/dist/commands/mutation-qa-run.js +3 -0
  23. package/packages/client/dist/commands/mutation-qa-verdict.d.ts +21 -0
  24. package/packages/client/dist/commands/mutation-qa-verdict.js +1 -0
  25. package/packages/client/dist/commands/mutation-qa.d.ts +22 -0
  26. package/packages/client/dist/commands/mutation-qa.js +1 -0
  27. package/packages/client/dist/commands/property-qa.d.ts +1 -0
  28. package/packages/client/dist/commands/property-qa.js +1 -0
  29. package/packages/client/dist/commands/qa-scan-capture.d.ts +52 -0
  30. package/packages/client/dist/commands/qa-scan-capture.js +11 -0
  31. package/packages/client/dist/commands/qa-scan-discovery.d.ts +36 -0
  32. package/packages/client/dist/commands/qa-scan-discovery.js +3 -0
  33. package/packages/client/dist/commands/qa-scan-review.d.ts +119 -0
  34. package/packages/client/dist/commands/qa-scan-review.js +5 -0
  35. package/packages/client/dist/commands/refactor-characterization.d.ts +47 -0
  36. package/packages/client/dist/commands/refactor-characterization.js +12 -0
  37. package/packages/client/dist/commands/refactor-commit.d.ts +45 -0
  38. package/packages/client/dist/commands/refactor-commit.js +13 -0
  39. package/packages/client/dist/commands/refactor-review.d.ts +37 -0
  40. package/packages/client/dist/commands/refactor-review.js +5 -0
  41. package/packages/client/dist/commands/refactor-root.d.ts +85 -0
  42. package/packages/client/dist/commands/refactor-root.js +7 -0
  43. package/packages/client/dist/generated/command-registry.generated.d.ts +9 -9
  44. package/packages/client/dist/generated/command-registry.generated.js +1 -1
  45. package/packages/client/dist/generated/public-projections.generated.d.ts +20 -20
  46. package/packages/client/dist/generated/public-projections.generated.js +1 -1
  47. package/packages/client/dist/git/legacy-story-pr.d.ts +137 -6
  48. package/packages/client/dist/git/legacy-story-pr.js +51 -43
  49. package/packages/client/dist/license/license-client.js +1 -1
  50. package/packages/client/dist/private-execution/delivery.d.ts +49 -4
  51. package/packages/client/dist/private-execution/delivery.js +4 -2
  52. package/packages/client/dist/private-execution/isolated-admission.d.ts +7 -0
  53. package/packages/client/dist/private-execution/isolated-admission.js +10 -10
  54. package/packages/client/dist/private-execution/private-report-store.d.ts +17 -0
  55. package/packages/client/dist/private-execution/private-report-store.js +1 -0
  56. package/packages/client/dist/private-execution/property-test-candidate.d.ts +14 -0
  57. package/packages/client/dist/private-execution/property-test-candidate.js +1 -0
  58. package/packages/client/dist/private-execution/property-test-choices.d.ts +15 -0
  59. package/packages/client/dist/private-execution/property-test-choices.js +3 -0
  60. package/packages/client/dist/private-execution/property-test-plan.d.ts +65 -0
  61. package/packages/client/dist/private-execution/property-test-plan.js +7 -0
  62. package/packages/client/dist/private-execution/property-test-review.d.ts +58 -0
  63. package/packages/client/dist/private-execution/property-test-review.js +4 -0
  64. package/packages/client/dist/private-execution/property-test-runtime.d.ts +18 -0
  65. package/packages/client/dist/private-execution/property-test-runtime.js +9 -0
  66. package/packages/client/dist/private-execution/property-test-source.d.ts +8 -0
  67. package/packages/client/dist/private-execution/property-test-source.js +1 -0
  68. package/packages/client/dist/state/project-state-snapshot.js +1 -1
  69. package/packages/shared/dist/generated/command-registry.generated.js +9 -9
  70. package/packages/shared/dist/generated/invocation-schema.generated.js +2 -2
  71. package/packages/shared/dist/generated/public-projections.generated.js +18 -18
  72. package/packages/shared/dist/invocation/index.d.ts +1 -1
  73. package/packages/shared/dist/invocation/index.js +13 -0
  74. package/packages/shared/dist/merge-readiness/c12-registry-projection.js +111 -0
  75. package/packages/shared/dist/merge-readiness/c12-remote-observation.js +60 -0
  76. package/targets-stubs/antigravity/gemini.md +1 -1
  77. package/targets-stubs/antigravity/skill/SKILL.md +1 -1
  78. package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
  79. package/targets-stubs/claude-code/neocortex-root.md +2 -2
  80. package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
  81. package/targets-stubs/claude-code/neocortex.md +2 -2
  82. package/targets-stubs/codex/AGENTS.md +1 -1
  83. package/targets-stubs/cursor/agent.md +2 -2
  84. package/targets-stubs/gemini-cli/agent.md +2 -2
  85. package/targets-stubs/opencode/neocortex-root.md +1 -1
  86. package/targets-stubs/vscode/neocortex.agent.md +2 -2
@@ -1,4 +1,5 @@
1
1
  import { type C12RemoteObservation, type C12RemoteReasonCode } from '../../../shared/dist/merge-readiness/c12-remote-observation.js';
2
+ import type { ScopedCiFollowUpDebt } from '../../../shared/dist/types/scoped-ci-policy.js';
2
3
  type Result<T> = {
3
4
  readonly ok: true;
4
5
  readonly value: T;
@@ -264,6 +265,24 @@ export interface LegacyStoryC11CheckpointReceipt {
264
265
  readonly checkpointAccepted: true;
265
266
  readonly localOnly: true;
266
267
  }
268
+ /** Read-only categorical PR observation for the root C11 report. No raw check
269
+ * name, URL or provider text is returned, and C12 must reobserve independently. */
270
+ export declare function observeLegacyStoryPrReviewC11(options: {
271
+ readonly projectRoot: string;
272
+ readonly storyId: string;
273
+ readonly prNumber: number;
274
+ readonly provider?: LegacyStoryPrProvider;
275
+ readonly mergeProvider?: LegacyStoryPrMergeProvider;
276
+ }): Promise<Result<{
277
+ readonly schemaVersion: 1;
278
+ readonly kind: 'legacy-story-c11-remote-observation';
279
+ readonly storyId: string;
280
+ readonly prNumber: number;
281
+ readonly observation: C12RemoteObservation;
282
+ readonly checkpointAccepted: false;
283
+ readonly mergeAuthorized: false;
284
+ readonly publicSafe: true;
285
+ }>>;
267
286
  export declare function planLegacyStoryPrReview(options: {
268
287
  readonly projectRoot: string;
269
288
  readonly storyId: string;
@@ -280,6 +299,7 @@ export declare function acceptLegacyStoryPrReviewC11(options: {
280
299
  readonly reportFile: string;
281
300
  readonly authorize: boolean;
282
301
  readonly provider?: LegacyStoryPrProvider;
302
+ readonly mergeProvider?: LegacyStoryPrMergeProvider;
283
303
  /** Synthetic seam; the productive CLI always executes the P205 complete gate. */
284
304
  readonly verifyQa?: (plan: LegacyStoryPrPlan) => Promise<string>;
285
305
  readonly afterStatePersist?: () => Promise<void>;
@@ -335,6 +355,7 @@ export interface LegacyStoryPrPreparedReceipt {
335
355
  readonly originalHeadSha: string;
336
356
  readonly candidateHeadSha: string;
337
357
  readonly qaSha256: string;
358
+ readonly registryRecorded: boolean;
338
359
  readonly reused: boolean;
339
360
  readonly physicalMerge: false;
340
361
  readonly localOnly: true;
@@ -348,6 +369,9 @@ export declare function prepareLegacyStoryPrMergeC12(options: {
348
369
  readonly prNumber: number;
349
370
  readonly authorize: boolean;
350
371
  readonly provider?: LegacyStoryPrProvider;
372
+ /** Explicit root choice to commit closed remote-CI debt with the reviewed candidate. */
373
+ readonly recordRemoteDebt?: boolean;
374
+ readonly mergeProvider?: LegacyStoryPrMergeProvider;
351
375
  /** Synthetic seam; the productive CLI always executes the P205 complete gate. */
352
376
  readonly verifyQa?: (plan: LegacyStoryPrPlan) => Promise<string>;
353
377
  readonly afterCommit?: () => Promise<void>;
@@ -370,9 +394,7 @@ export interface LegacyStoryPrMergedReceipt {
370
394
  readonly checkpointAccepted: false;
371
395
  readonly localOnly: true;
372
396
  }
373
- /** Narrow root review gate until the scoped-CI debt adapter is integrated.
374
- * Non-blocking remote findings cannot be silently omitted or treated as green. */
375
- export interface LegacyStoryPrRootMergeDecision {
397
+ interface C12RootMergeDecisionBase {
376
398
  readonly schemaVersion: 1;
377
399
  readonly kind: 'legacy-story-c12-root-merge-decision';
378
400
  readonly storyId: string;
@@ -384,9 +406,26 @@ export interface LegacyStoryPrRootMergeDecision {
384
406
  readonly remoteObservationDigest: string;
385
407
  readonly canMerge: true;
386
408
  readonly blockingChecks: readonly [];
409
+ }
410
+ /** A clean categorical rollup does not attest that all remote checks exist. */
411
+ export interface LegacyStoryPrCleanMergeDecision extends C12RootMergeDecisionBase {
387
412
  readonly nonBlockingChecks: readonly [];
388
413
  readonly followUpDebt: readonly [];
389
414
  }
415
+ export interface LegacyStoryPrRecordedDebtMergeDecision extends C12RootMergeDecisionBase {
416
+ readonly nonBlockingChecks: readonly {
417
+ readonly checkName: C12RemoteReasonCode;
418
+ readonly bucket: 'nonBlockingChecks';
419
+ readonly reason: ScopedCiFollowUpDebt['reason'];
420
+ readonly origin: 'remote_ci_cd';
421
+ readonly safeToContinueYoloop: true;
422
+ }[];
423
+ readonly followUpDebt: readonly ScopedCiFollowUpDebt[];
424
+ readonly registrySha256: string;
425
+ readonly registryItemIds: readonly string[];
426
+ readonly publicSafe: true;
427
+ }
428
+ export type LegacyStoryPrRootMergeDecision = LegacyStoryPrCleanMergeDecision | LegacyStoryPrRecordedDebtMergeDecision;
390
429
  export interface LegacyStoryPrRemoteDebtPlan {
391
430
  readonly schemaVersion: 1;
392
431
  readonly kind: 'legacy-story-c12-remote-debt-required';
@@ -402,6 +441,36 @@ export interface LegacyStoryPrRemoteDebtPlan {
402
441
  readonly canMerge: false;
403
442
  readonly publicSafe: true;
404
443
  }
444
+ export interface LegacyStoryPrPrePrepareDebtPlan {
445
+ readonly schemaVersion: 1;
446
+ readonly kind: 'legacy-story-c12-pre-prepare-debt-plan';
447
+ readonly storyId: string;
448
+ readonly epicId: string;
449
+ readonly prNumber: number;
450
+ readonly originalHeadSha: string;
451
+ readonly baseSha: string;
452
+ readonly remoteObservationDigest: string;
453
+ readonly reasonCodes: readonly C12RemoteReasonCode[];
454
+ readonly followUpDebt: readonly ScopedCiFollowUpDebt[];
455
+ readonly registryExists: boolean;
456
+ readonly registryBeforeSha256: string;
457
+ readonly registryProjectedItemIds: readonly string[];
458
+ readonly registryProjectedAdded: number;
459
+ readonly registryProjectedExisting: number;
460
+ readonly registryMutationAuthorized: false;
461
+ readonly canMerge: false;
462
+ readonly publicSafe: true;
463
+ }
464
+ /** Read-only C12 observation before the reviewed metadata is committed. This
465
+ * gives the root the canonical debt input at the only point where a future
466
+ * tracked-registry write can join the reviewed PR candidate commit. */
467
+ export declare function planLegacyStoryPrRemoteDebtBeforePrepareC12(options: {
468
+ readonly projectRoot: string;
469
+ readonly storyId: string;
470
+ readonly prNumber: number;
471
+ readonly provider?: LegacyStoryPrProvider;
472
+ readonly mergeProvider?: LegacyStoryPrMergeProvider;
473
+ }): Promise<Result<LegacyStoryPrPrePrepareDebtPlan>>;
405
474
  export interface LegacyStoryPrRemoteDebtReceipt {
406
475
  readonly schemaVersion: 1;
407
476
  readonly kind: 'legacy-story-c12-remote-debt-journaled';
@@ -412,15 +481,16 @@ export interface LegacyStoryPrRemoteDebtReceipt {
412
481
  readonly remoteObservationDigest: string;
413
482
  readonly reasonCodes: readonly C12RemoteReasonCode[];
414
483
  readonly reasonCounts: C12RemoteObservation['reasonCounts'];
484
+ readonly followUpDebt: readonly ScopedCiFollowUpDebt[];
415
485
  readonly reused: boolean;
416
486
  readonly durableObservation: true;
417
487
  readonly registryRecorded: false;
418
488
  readonly canMerge: false;
419
489
  readonly publicSafe: true;
420
490
  }
421
- /** Root-only readback of the prepared PR candidate. This produces a closed
422
- * decision only for a categorized clean rollup, otherwise a non-authorizing
423
- * debt plan. It neither persists debt, runs QA nor merges. */
491
+ /** Root-only readback of the prepared PR candidate. Remote-only findings may
492
+ * authorize an attempt only when the exact categorical debt is already in
493
+ * the reviewed candidate registry; this does not guarantee provider merge. */
424
494
  export declare function planLegacyStoryPrMergeDecisionC12(options: {
425
495
  readonly projectRoot: string;
426
496
  readonly storyId: string;
@@ -511,4 +581,65 @@ export declare function acceptLegacyStoryPrPostMergeC12(options: {
511
581
  readonly afterCommit?: () => Promise<void>;
512
582
  readonly afterPush?: () => Promise<void>;
513
583
  }): Promise<Result<LegacyStoryPrPostMergeReceipt>>;
584
+ export interface LegacyEpicTerminalPlan {
585
+ readonly schemaVersion: 1;
586
+ readonly kind: 'legacy-epic-terminal-plan';
587
+ readonly epicId: string;
588
+ readonly repositorySha256: string;
589
+ readonly baseBranchSha256: string;
590
+ readonly baseHeadSha: string;
591
+ readonly storyCount: number;
592
+ readonly storyEvidenceSha256: string;
593
+ readonly physicalStoriesVerified: true;
594
+ readonly quotaReleaseAuthorized: false;
595
+ readonly checkpointAccepted: false;
596
+ readonly localOnly: true;
597
+ readonly publicSafe: true;
598
+ }
599
+ /** Read-only, root-owned precursor for legacy epic accounting. It proves all
600
+ * accepted C12 checkpoints at the exact pushed base HEAD but never frees quota
601
+ * or declares the server workflow complete. A later accounting transaction must
602
+ * independently revalidate this basis at its own effect boundary. */
603
+ export declare function planLegacyEpicFinalization(options: {
604
+ readonly projectRoot: string;
605
+ readonly epicId: string;
606
+ readonly mergeProvider?: LegacyStoryPrMergeProvider;
607
+ readonly issueProvider?: LegacyStoryIssueProvider;
608
+ }): Promise<Result<LegacyEpicTerminalPlan>>;
609
+ export interface LegacyEpicTerminalAcceptance {
610
+ readonly schemaVersion: 1;
611
+ readonly kind: 'legacy-epic-terminal-root-accepted';
612
+ readonly epicId: string;
613
+ readonly baseHeadSha: string;
614
+ readonly storyCount: number;
615
+ readonly planSha256: string;
616
+ readonly qaEvidenceDigest: string;
617
+ readonly reused: boolean;
618
+ readonly rootAcceptanceRecorded: true;
619
+ readonly quotaReleaseAuthorized: false;
620
+ readonly serverAccountingAccepted: false;
621
+ readonly localOnly: true;
622
+ readonly publicSafe: true;
623
+ }
624
+ /** Rechecks the physical C12 chain before projecting a private root QA record.
625
+ * This is local evidence only; the server must independently bind a future
626
+ * quota transaction to fresh physical truth at its own effect boundary. */
627
+ export declare function readLegacyEpicTerminalAcceptance(options: {
628
+ readonly projectRoot: string;
629
+ readonly epicId: string;
630
+ readonly mergeProvider?: LegacyStoryPrMergeProvider;
631
+ readonly issueProvider?: LegacyStoryIssueProvider;
632
+ }): Promise<Result<LegacyEpicTerminalAcceptance>>;
633
+ /** Explicit root acceptance runs fresh P205 on the exact pushed terminal HEAD
634
+ * and persists only a private digest-bound local record. No server accounting
635
+ * or quota effect is implied by this function or its public projection. */
636
+ export declare function acceptLegacyEpicFinalization(options: {
637
+ readonly projectRoot: string;
638
+ readonly epicId: string;
639
+ readonly authorize: boolean;
640
+ readonly mergeProvider?: LegacyStoryPrMergeProvider;
641
+ readonly issueProvider?: LegacyStoryIssueProvider;
642
+ /** Focused-test seam only; the production CLI always executes physical P205. */
643
+ readonly verifyQa?: (plan: LegacyEpicTerminalPlan) => Promise<string>;
644
+ }): Promise<Result<LegacyEpicTerminalAcceptance>>;
514
645
  export {};