WeKnora deployment source with the reviewed wiki identity, summary and recovery fixes
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-weknora) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-weknora) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-weknora) / End-to-end inside dsh (latest, advisory) (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Build & Publish (dsh-weknora) / Publish to npm (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-weknora) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-weknora) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-weknora) / End-to-end inside dsh (latest, advisory) (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Build & Publish (dsh-weknora) / Publish to npm (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
-- Retain an immutable link to the old accepted candidate. This does not create
|
||||
-- native memories or reset any historical approval/extraction state.
|
||||
ALTER TABLE workbench_pending_memories
|
||||
ADD COLUMN IF NOT EXISTS legacy_history_id VARCHAR(36),
|
||||
ADD COLUMN IF NOT EXISTS native_memory_id VARCHAR(36),
|
||||
ADD COLUMN IF NOT EXISTS reconfirmed_content TEXT,
|
||||
ADD COLUMN IF NOT EXISTS reconfirmed_at TIMESTAMPTZ;
|
||||
|
||||
DO $legacy_memory$ BEGIN
|
||||
IF to_regclass('yawan_legacy_operations_mappings') IS NOT NULL THEN
|
||||
UPDATE workbench_pending_memories p
|
||||
SET legacy_history_id = m.history_id
|
||||
FROM yawan_legacy_operations_mappings m
|
||||
JOIN workbench_history h ON h.id = m.history_id
|
||||
AND h.tenant_id = m.target_tenant_id AND h.source_kind = 'pendingmemory'
|
||||
AND h.source_id = m.source_id::text
|
||||
WHERE m.source_kind = 'pendingmemory'
|
||||
AND m.target_table = 'workbench_pending_memories'
|
||||
AND m.target_key = p.id AND m.target_tenant_id = p.tenant_id
|
||||
AND m.native_snapshot->>'owner_id' = p.owner_id
|
||||
AND m.native_snapshot->>'agent_id' = p.agent_id
|
||||
AND m.native_snapshot->>'status' = 'accepted' AND p.status = 'accepted'
|
||||
AND COALESCE(p.legacy_history_id, '') = '';
|
||||
END IF;
|
||||
END $legacy_memory$;
|
||||
|
||||
-- Durable extraction retries retain all pending sessions and checkpoints.
|
||||
ALTER TABLE memory_subjects ADD COLUMN IF NOT EXISTS extract_attempt_id VARCHAR(36) NOT NULL DEFAULT '';
|
||||
ALTER TABLE memory_subjects ADD COLUMN IF NOT EXISTS extract_lease_until TIMESTAMPTZ;
|
||||
ALTER TABLE memory_subjects ADD COLUMN IF NOT EXISTS extract_started_at TIMESTAMPTZ;
|
||||
ALTER TABLE memory_subjects ADD COLUMN IF NOT EXISTS extract_next_at TIMESTAMPTZ;
|
||||
ALTER TABLE memory_subjects ADD COLUMN IF NOT EXISTS extract_failures INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE memory_subjects ADD COLUMN IF NOT EXISTS extract_chat_model_id VARCHAR(64) NOT NULL DEFAULT '';
|
||||
ALTER TABLE memory_subjects ADD COLUMN IF NOT EXISTS extract_language VARCHAR(64) NOT NULL DEFAULT '';
|
||||
CREATE INDEX IF NOT EXISTS idx_memory_extraction_due ON memory_subjects(extract_next_at)
|
||||
WHERE enabled = TRUE AND extract_failures < 8 AND pending_sessions <> '[]'::jsonb;
|
||||
Reference in New Issue
Block a user