@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 1.14 kB
TypeScript
/**
* KILL-ATTACH: kill the engine before and after the durable takeover record, then restart on the same medium (01-04)
* or retry in the surviving process (05). IDs stay stable, no record is lost or duplicated, and a retried takeover is
* applied exactly once (S37, plan §3.5). Placement: everywhere.
*/
import type { AdmissionLine, StoreConformanceAdapter } from "@earendil-works/pi-agent-core/conformance";
export interface KillAttachDeclaration {
readonly id: string;
/** `first`: the session's first takeover; `next`: a takeover from its holder to another client. */
readonly op: "first" | "next";
readonly at: "before" | "durable";
readonly placement: "everywhere";
}
/** The durable medium under test and the admission line every writer on one store epoch shares. */
export interface KillAttachAdapter extends StoreConformanceAdapter {
createAdmission(): AdmissionLine;
}
export interface KillAttachCase extends KillAttachDeclaration {
run(adapter: KillAttachAdapter): Promise<void>;
}
export declare const KILL_ATTACH_CASES: readonly KillAttachCase[];
//# sourceMappingURL=kill-attach.d.ts.map