feat: replace revision counters with domain state contracts

Use content digests, key fingerprints, binding and trust identities, immutable mutation receipts, and observation tokens instead of state-update ordinals across API, storage, Runtime, and Web contracts.

Preserve historical replay and secret material through frozen migrations; preflight uncertain removals before cutover, resume provisioning receipts, validate encrypted migration candidates, and align fresh/upgraded schemas. Include reviewed regression fixes, generated artifacts, and validation evidence.
This commit is contained in:
2026-10-10 15:55:20 +09:00
parent 72ce817de4
commit c78f7f7d80
358 changed files with 25965 additions and 12069 deletions
@@ -99,7 +99,7 @@ const entries = [
},
];
const session = {
pending_submissions: { revision: 0, notification_count: 0, head_id: null, submissions: [] },
pending_submissions: { notification_count: 0, head_id: null, submissions: [] },
entries,
};
const state = { last_command_id: 0, state: { kind: "idle" } };
@@ -250,6 +250,9 @@ Deno.serve({ hostname: "127.0.0.1", port }, async (request) => {
if (url.pathname === `/api/w/${workspaceId}/working-directories`) {
return json({ workspace_id: workspaceId, items: [], diagnostics: [] });
}
if (url.pathname === `/api/w/${workspaceId}/workers`) {
return json({ workspace_id: workspaceId, limit: 200, items: [worker], source: "fixture", diagnostics: [] });
}
if (url.pathname === `/api/w/${workspaceId}/workers/W-901` || url.pathname === workerPath) {
return json(worker);
}