Rulvar API reference / @rulvar/core / lastRunSettle
Function: lastRunSettle()
ts
function lastRunSettle(entries):
| {
acceptedArtifactRef?: number;
citationAuditMeta?: Record<string, unknown>;
claimConsistencyMeta?: Record<string, unknown>;
completion?: "complete" | "partial" | "rejected";
deliverableAccepted?: boolean;
outputHash?: string;
rejectedFinishCandidates?: RejectedFinishCandidate[];
resultAvailable?: boolean;
runStatus: RunStatus;
semanticTerminalVerdict?: Record<string, unknown>;
seq: number;
}
| undefined;Defined in: packages/core/src/stores/reconcile.ts:62
The last journaled run settle of a journal, if any. outputHash is present when that settle recorded the result digest (RV-209; settles written before it, or over undefined/non-serializable results, carry none).
Parameters
| Parameter | Type |
|---|---|
entries | readonly JournalEntry[] |
Returns
Type Literal
ts
{
acceptedArtifactRef?: number;
citationAuditMeta?: Record<string, unknown>;
claimConsistencyMeta?: Record<string, unknown>;
completion?: "complete" | "partial" | "rejected";
deliverableAccepted?: boolean;
outputHash?: string;
rejectedFinishCandidates?: RejectedFinishCandidate[];
resultAvailable?: boolean;
runStatus: RunStatus;
semanticTerminalVerdict?: Record<string, unknown>;
seq: number;
}| Name | Type | Description | Defined in |
|---|---|---|---|
acceptedArtifactRef? | number | - | packages/core/src/stores/reconcile.ts:87 |
citationAuditMeta? | Record<string, unknown> | The citation audit meta and the one-word semantic verdict the settle recorded (RV4403), read back the same defensive way: the seventh comparison run's restart reader could not see the ten unsupported citations its own failure named. Absence means NOT RECORDED, never a verdict. | packages/core/src/stores/reconcile.ts:96 |
claimConsistencyMeta? | Record<string, unknown> | - | packages/core/src/stores/reconcile.ts:88 |
completion? | "complete" | "partial" | "rejected" | - | packages/core/src/stores/reconcile.ts:67 |
deliverableAccepted? | boolean | The semantic outcome the settle recorded (RV3304), read back the same defensive way: the acceptance verdict, the deliverable presence, the acceptance ref and the judge meta, so a restarted reader recovers the facts a live consumer gated on. Absent on journals written before the lift carried them; absence means NOT RECORDED, never a verdict. | packages/core/src/stores/reconcile.ts:85 |
outputHash? | string | - | packages/core/src/stores/reconcile.ts:66 |
rejectedFinishCandidates? | RejectedFinishCandidate[] | The rejected finish candidates the settle recorded (RV2507), read back for offline readers (RV2605). The settle persists the whole completion lift, so this needs no re-fold and no validator re-run; it is parsed defensively, exactly like completion, so a foreign or older journal reads as "not recorded" rather than as a claim. | packages/core/src/stores/reconcile.ts:76 |
resultAvailable? | boolean | - | packages/core/src/stores/reconcile.ts:86 |
runStatus | RunStatus | - | packages/core/src/stores/reconcile.ts:64 |
semanticTerminalVerdict? | Record<string, unknown> | - | packages/core/src/stores/reconcile.ts:97 |
seq | number | - | packages/core/src/stores/reconcile.ts:65 |
undefined