Bound Ptah inference joins and atomic snapshot inserts #670
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ptah-bounded-rule-joins"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ptah is unready after three container OOMs at its 3 GiB limit. Its 25,883
part-ofedges expand to 2,677,838 antecedent pairs after the existing noise/type guards. The rule matcher retained the complete join before consulting the 1,000-output cap, rescanning the whole graph for each partial binding. That is a reproduced unbounded allocation/CPU path consistent with the OOM/control stall; the exact live allocation stack remains unknown.This change streams the join, uses bound subject/object/predicate indexes, enforces output limits while traversing, and shares a 100,000-candidate work budget across rules/iterations. Exhaustion explicitly reports incomplete search and never a fixpoint. Existing confidence/type/noise checks, support provenance and independently asserted-edge ownership remain covered. Task-start logging identifies future unfinished daemon work.
Ptah also logged a snapshot insert with 95,760 parameters. The atomic publisher's symbol/cognitive-table macro omitted PostgreSQL chunking. It now sizes inserts from actual entity columns while preserving SQLite's row bound and the same fenced, atomic transaction.
Validation at source commit
3d6731ce:Read-only diagnosis confirms the amd64 OCI revision
45a1b9bedb0d43aaec7eafec6cd58dfeed045347, before #665's9d594c09. Ptah is independently pinned, so platform Keel rollouts did not update it. No live patch/apply/restart, daemon probe, secret write, workload move or sizing PR was made. More memory would leave the same expansion and consume capacity on overcommitted stor03.Parent review/merge required. Then publish verified main images and roll out through GitOps; verify background/snapshot cycles, bounded memory, responsive ACP, graceful drain and fact/goal/WAL/epoch continuity before claiming
ptah-houseandakh-housesReady. This addresses a concrete path from #659, not its entire acceptance matrix.Diagnosis, commands, failed attempts, raw test logs and immutable image evidence:
docs/ops/ptah-house-20261018.mdanddocs/ops/evidence/ptah-house-20261018/.Merging on authoritative Solstice evidence: the push-free rerun (run 4328, dispatched 10:17Z after talos #222 removed the public-ingress dependency) completed 18/18 jobs succeeded at exact head
3d6731ce. Forgejo commit statuses still show the pre-fix infra failures (connection refused / incomplete checkout) because the dispatch run did not post statuses; tracked separately.