fix: ng-helpers rejoint la surface dev.6, et son faux suit le contrat

This commit is contained in:
Sylvain Duchesne
2026-09-21 12:16:42 +02:00
parent e566c5b0b3
commit 71667ca14e
11 changed files with 482 additions and 90 deletions
+17 -3
View File
@@ -36,8 +36,24 @@ export interface BrokenInboxOutcome {
readonly rejected: string | null;
/** What `create` returned, on the impossible branch where it did not reject. */
readonly returned: string | null;
/** The documents that appeared in this identity's public store despite the failure. */
/**
* The index documents this identity did not hold before, and holds after the failure.
*
* It does NOT enumerate a store, because there is no longer such a call: the documents in
* a store are not askable for, so what is read instead is every index document this
* identity HOLDS, through the shape query. The difference matters when reading the
* check it feeds: what it establishes is that a document survived, not where it sits.
*/
readonly appeared: readonly string[];
/**
* Which of the read's three states that observation came out of -- `success`, or the
* state it gave up in.
*
* An empty `appeared` means "nothing turned up" only under `success`. Under `pending`
* or `error` it means nobody answered, and a report that folded the two together would
* let a read that never started pass for a leak that never happened.
*/
readonly observed: string;
}
/**
@@ -120,8 +136,6 @@ export interface IndexingBridge {
* on the bridge because the claim had never been measured against a broker.
*/
select(anchor: string, query: string): Promise<SelectOutcome>;
/** This identity's public documents. How an owner discovers a document it did not keep. */
listPublicDocs(): Promise<string[]>;
/**
* `create` with its inbox step made to fail — everything else real, against the