@allocator-one/rcl 4.5.3 → 4.5.5

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 (75) hide show
  1. package/README.md +12 -3
  2. package/dist/converge/attempt-budget.d.ts +14 -0
  3. package/dist/converge/attempt-budget.js +216 -1
  4. package/dist/converge/attempt-budget.js.map +1 -1
  5. package/dist/converge/historical-delivery-reconciliation-schema.d.ts +131 -0
  6. package/dist/converge/historical-delivery-reconciliation-schema.js +111 -0
  7. package/dist/converge/historical-delivery-reconciliation-schema.js.map +1 -0
  8. package/dist/converge/historical-delivery-reconciliation.d.ts +15 -0
  9. package/dist/converge/historical-delivery-reconciliation.js +326 -0
  10. package/dist/converge/historical-delivery-reconciliation.js.map +1 -0
  11. package/dist/converge/launch-guard.js +25 -6
  12. package/dist/converge/launch-guard.js.map +1 -1
  13. package/dist/converge/launch-record.d.ts +36 -0
  14. package/dist/converge/launch-record.js +9 -3
  15. package/dist/converge/launch-record.js.map +1 -1
  16. package/dist/converge/legacy-launch-health.d.ts +36 -0
  17. package/dist/converge/native-lock.d.ts +3 -1
  18. package/dist/converge/native-lock.js +4 -4
  19. package/dist/converge/native-lock.js.map +1 -1
  20. package/dist/converge/ordinary-pending-export.d.ts +3 -0
  21. package/dist/converge/ordinary-pending-export.js +64 -17
  22. package/dist/converge/ordinary-pending-export.js.map +1 -1
  23. package/dist/converge/ordinary-pending-package.d.ts +11 -0
  24. package/dist/converge/ordinary-pending-package.js +18 -4
  25. package/dist/converge/ordinary-pending-package.js.map +1 -1
  26. package/dist/converge/pending-finalization-receipt.d.ts +4 -0
  27. package/dist/converge/pending-finalization-receipt.js +102 -0
  28. package/dist/converge/pending-finalization-receipt.js.map +1 -0
  29. package/dist/converge/pending-legacy-resume.d.ts +42 -3
  30. package/dist/converge/pending-legacy-resume.js +164 -32
  31. package/dist/converge/pending-legacy-resume.js.map +1 -1
  32. package/dist/converge/pending-recovery-source.d.ts +114 -0
  33. package/dist/converge/pending-recovery-source.js +36 -1
  34. package/dist/converge/pending-recovery-source.js.map +1 -1
  35. package/dist/converge/process-identity.d.ts +51 -0
  36. package/dist/converge/process-identity.js +190 -0
  37. package/dist/converge/process-identity.js.map +1 -0
  38. package/dist/converge/recovery-launch.js +39 -17
  39. package/dist/converge/recovery-launch.js.map +1 -1
  40. package/dist/converge/recovery-state.d.ts +55 -0
  41. package/dist/converge/recovery-state.js +306 -0
  42. package/dist/converge/recovery-state.js.map +1 -0
  43. package/dist/converge/run-state.d.ts +43 -1
  44. package/dist/converge/run-state.js +252 -18
  45. package/dist/converge/run-state.js.map +1 -1
  46. package/dist/converge/semantic-state.d.ts +55 -0
  47. package/dist/converge/semantic-state.js +666 -0
  48. package/dist/converge/semantic-state.js.map +1 -0
  49. package/dist/converge/stale-report.d.ts +412 -0
  50. package/dist/converge/stale-report.js +42 -0
  51. package/dist/converge/stale-report.js.map +1 -1
  52. package/dist/converge/terminal-rejection.d.ts +1 -0
  53. package/dist/converge/terminal-rejection.js +6 -6
  54. package/dist/converge/terminal-rejection.js.map +1 -1
  55. package/dist/dispatch/async-lane.d.ts +12 -0
  56. package/dist/dispatch/async-lane.js +94 -0
  57. package/dist/dispatch/async-lane.js.map +1 -1
  58. package/dist/evidence/claim-recovery/validation/native-state.d.ts +22 -0
  59. package/dist/evidence/claim-recovery/validation/native-state.js +91 -9
  60. package/dist/evidence/claim-recovery/validation/native-state.js.map +1 -1
  61. package/dist/evidence/claim-recovery/validation/obligations.js +2 -1
  62. package/dist/evidence/claim-recovery/validation/obligations.js.map +1 -1
  63. package/dist/evidence/claim-recovery/validation/semantic-validation.d.ts +11 -0
  64. package/dist/evidence/claim-recovery/validation/semantic-validation.js +105 -28
  65. package/dist/evidence/claim-recovery/validation/semantic-validation.js.map +1 -1
  66. package/dist/evidence/claim-recovery/validation/types.d.ts +10 -0
  67. package/dist/evidence/original-run/lock-scope.d.ts +12 -6
  68. package/dist/evidence/original-run/lock-scope.js +12 -9
  69. package/dist/evidence/original-run/lock-scope.js.map +1 -1
  70. package/dist/index.js +74 -11
  71. package/dist/index.js.map +1 -1
  72. package/dist/telemetry/recovery/files.d.ts +4 -0
  73. package/dist/telemetry/recovery/files.js +15 -5
  74. package/dist/telemetry/recovery/files.js.map +1 -1
  75. package/package.json +1 -1
@@ -0,0 +1,55 @@
1
+ import { type NativeTargetOwnership } from './target-ownership.js';
2
+ import { migratedLegacyPendingRound } from '../evidence/claim-recovery/validation/obligations.js';
3
+ export { migratedLegacyPendingRound };
4
+ import { type ClaimDescriptor, type MatchRationale } from '../consensus/claim-identity.js';
5
+ import type { ConsensusFinding, ReviewResult } from '../consensus/types.js';
6
+ import { type ProcessRoundOptions, type RoundReport, type ConvergeRunState, type FindingStatus } from './run-state.js';
7
+ export interface ReportBinding {
8
+ runId: string;
9
+ target: string;
10
+ round: number;
11
+ reportSha256: string;
12
+ sourcePath: string;
13
+ }
14
+ export interface SemanticSighting {
15
+ runId: string;
16
+ target: string;
17
+ round: number;
18
+ reportSha256: string;
19
+ findingRef: string;
20
+ reportKey: string;
21
+ canonicalIdentity: string;
22
+ claimDescriptor: ClaimDescriptor;
23
+ matchRationale: MatchRationale;
24
+ status: FindingStatus;
25
+ /** Obligation immediately after this sighting, before subsequent verdicts. */
26
+ pendingRound: number | null;
27
+ suppressReason?: string;
28
+ severity: ConsensusFinding['severity'];
29
+ gating: string;
30
+ belowThreshold: boolean;
31
+ file: string;
32
+ category: string;
33
+ startLine: number;
34
+ endLine: number;
35
+ }
36
+ /** Validate exact original bytes and caller bindings before any durable effect. */
37
+ export declare function bindRoundEvidence(options: ProcessRoundOptions): ReportBinding;
38
+ export declare function retainReportEvidence(raw: string, binding: ReportBinding): Promise<void>;
39
+ export declare function verifyRoundBinding(binding: ReportBinding, target: string, round: number, runId: string): Promise<ReviewResult>;
40
+ /** All native consumers validate the same immutable sighting membership before effects. */
41
+ export declare function validateSemanticState(state: ConvergeRunState, gitCommonDir: string, recoveryLegacy?: ConvergeRunState): Promise<void>;
42
+ /** @internal Linear first-seen index for admission candidates. */
43
+ export declare function indexSemanticPriorByFileCategory<T extends {
44
+ file: string;
45
+ category: string;
46
+ }>(prior: readonly T[]): Map<string, T[]>;
47
+ /** Frozen batch matching: a component must be a clique and agree on one prior claim. */
48
+ export declare function processSemanticRound(options: ProcessRoundOptions, binding: ReportBinding, ownership: NativeTargetOwnership): Promise<RoundReport>;
49
+ /** Historical attribution may add an escalation obligation, never clear one.
50
+ * Each recovery operation is bound to the exact predecessor state that existed
51
+ * before it. A later refresh cannot rewrite the dismissal explaining an earlier
52
+ * semantic sighting. */
53
+ /** @internal Physical adapter for the shared retained-dismissal projection. */
54
+ export declare function retainedRecoveredDismissalsByRound(state: ConvergeRunState, gitCommonDir: string): Promise<Map<number, Map<string, string>>>;
55
+ export declare function pending(state: ConvergeRunState): string[];