@orkestrel/probe 0.0.2 → 0.0.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/src/core/index.d.cts +18 -4
- package/dist/src/core/index.d.ts +18 -4
- package/dist/src/server/index.cjs +475 -134
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +105 -3
- package/dist/src/server/index.d.ts +105 -3
- package/dist/src/server/index.js +476 -138
- package/dist/src/server/index.js.map +1 -1
- package/package.json +9 -8
|
@@ -83,9 +83,11 @@ export declare interface Check {
|
|
|
83
83
|
* because the root project admits host globals the scoped projects remove and would report green
|
|
84
84
|
* where the gate reports red. The test drafts remain on the root project for Vitest and Node globals.
|
|
85
85
|
*
|
|
86
|
-
* The control's
|
|
87
|
-
*
|
|
88
|
-
* claim is unprovable however correct
|
|
86
|
+
* The control's case must differ from the claim's case by one byte at least: in a candidate draft,
|
|
87
|
+
* in the test, or in each. A control that repeats the whole case cannot break, so it never produces
|
|
88
|
+
* the `origin: 'claimant'` issue a receipt requires, and the claim is unprovable however correct
|
|
89
|
+
* the case is. `reason` is the claimant's prose about the drafts rather than the drafts themselves,
|
|
90
|
+
* so rewording it leaves the control the case again, and the `prove` method refuses it.
|
|
89
91
|
*
|
|
90
92
|
* @example
|
|
91
93
|
* ```ts
|
|
@@ -908,10 +910,22 @@ export declare interface ProbeInterface {
|
|
|
908
910
|
/**
|
|
909
911
|
* Answers one claim with every stage's evidence.
|
|
910
912
|
*
|
|
913
|
+
* @remarks
|
|
914
|
+
* A control carrying the case's files and the case's test byte for byte is refused at admission,
|
|
915
|
+
* with `origin: 'claimant'` and `code: 'refused'`. No stage inspects such a claim: the refusal
|
|
916
|
+
* answers before the resident stages are awaited, so it reads the same in every workspace state.
|
|
917
|
+
* Such a control can only break by nondeterminism, so the receipt it would earn attests a
|
|
918
|
+
* falsification that never happened, and a flake-earned receipt is the worst answer this package
|
|
919
|
+
* can return. The refusal compares the bytes of each side's files and test rather than the digest
|
|
920
|
+
* a verdict carries, because that digest rewrites a workspace-contained absolute string to its
|
|
921
|
+
* relative form and so reads two drafts one byte apart as one. A control varying only its `stage`
|
|
922
|
+
* or its `reason` is refused, because neither is a draft.
|
|
923
|
+
*
|
|
911
924
|
* @param claim - The case, its control, and the project the candidate drafts in both cases
|
|
912
925
|
* are checked against
|
|
913
926
|
* @returns The verdict, carrying one check per stage for both the case and the control
|
|
914
|
-
* @throws When
|
|
927
|
+
* @throws When the control repeats the case byte for byte, or when a stage cannot start, so no
|
|
928
|
+
* verdict ever reports a stage that did not run
|
|
915
929
|
*/
|
|
916
930
|
prove(claim: Claim): Promise<Verdict>;
|
|
917
931
|
/**
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -83,9 +83,11 @@ export declare interface Check {
|
|
|
83
83
|
* because the root project admits host globals the scoped projects remove and would report green
|
|
84
84
|
* where the gate reports red. The test drafts remain on the root project for Vitest and Node globals.
|
|
85
85
|
*
|
|
86
|
-
* The control's
|
|
87
|
-
*
|
|
88
|
-
* claim is unprovable however correct
|
|
86
|
+
* The control's case must differ from the claim's case by one byte at least: in a candidate draft,
|
|
87
|
+
* in the test, or in each. A control that repeats the whole case cannot break, so it never produces
|
|
88
|
+
* the `origin: 'claimant'` issue a receipt requires, and the claim is unprovable however correct
|
|
89
|
+
* the case is. `reason` is the claimant's prose about the drafts rather than the drafts themselves,
|
|
90
|
+
* so rewording it leaves the control the case again, and the `prove` method refuses it.
|
|
89
91
|
*
|
|
90
92
|
* @example
|
|
91
93
|
* ```ts
|
|
@@ -908,10 +910,22 @@ export declare interface ProbeInterface {
|
|
|
908
910
|
/**
|
|
909
911
|
* Answers one claim with every stage's evidence.
|
|
910
912
|
*
|
|
913
|
+
* @remarks
|
|
914
|
+
* A control carrying the case's files and the case's test byte for byte is refused at admission,
|
|
915
|
+
* with `origin: 'claimant'` and `code: 'refused'`. No stage inspects such a claim: the refusal
|
|
916
|
+
* answers before the resident stages are awaited, so it reads the same in every workspace state.
|
|
917
|
+
* Such a control can only break by nondeterminism, so the receipt it would earn attests a
|
|
918
|
+
* falsification that never happened, and a flake-earned receipt is the worst answer this package
|
|
919
|
+
* can return. The refusal compares the bytes of each side's files and test rather than the digest
|
|
920
|
+
* a verdict carries, because that digest rewrites a workspace-contained absolute string to its
|
|
921
|
+
* relative form and so reads two drafts one byte apart as one. A control varying only its `stage`
|
|
922
|
+
* or its `reason` is refused, because neither is a draft.
|
|
923
|
+
*
|
|
911
924
|
* @param claim - The case, its control, and the project the candidate drafts in both cases
|
|
912
925
|
* are checked against
|
|
913
926
|
* @returns The verdict, carrying one check per stage for both the case and the control
|
|
914
|
-
* @throws When
|
|
927
|
+
* @throws When the control repeats the case byte for byte, or when a stage cannot start, so no
|
|
928
|
+
* verdict ever reports a stage that did not run
|
|
915
929
|
*/
|
|
916
930
|
prove(claim: Claim): Promise<Verdict>;
|
|
917
931
|
/**
|