Repository navigation
feat(palace): Tiramemsu port phase 2 — graphs, query languages, paths, rules, saved answers, vectors, bundles, crypto-shredding - #487
Merged
Conversation
…eview Signed-off-by: pi <dimetron@me.com>
…atile state, crypto-shredding Migration 7 adds side tables for volatile state, seal keys, statement vectors and saved answers, with never-forget guards on seal keys and vectors. Predicate schema gains value type, subject type, is-edge and sensitive, checked in upstream order before anything is interned. Sensitive literals are sealed per data subject with a deterministic SIV-style AES-GCM construction from the standard library; Erase destroys the key and checkpoints the WAL. Named graphs are bitemporal membership layers. As-of reads no longer show retractions from after their bound. Signed-off-by: pi <dimetron@me.com>
…rase CLI Signed-off-by: pi <dimetron@me.com>
…all shortest, trails, time-respecting) Signed-off-by: pi <dimetron@me.com>
Signed-off-by: pi <dimetron@me.com>
Signed-off-by: pi <dimetron@me.com>
Signed-off-by: pi <dimetron@me.com>
Stratified semi-naive evaluator with pointwise valid time (fragments per support set), Solve/Check over one snapshot, stored programs, and Materialize through Derive with program support, widening and reconcile. Signed-off-by: pi <dimetron@me.com>
Signed-off-by: pi <dimetron@me.com>
…) and elpi syntax in palace-kg-rules Signed-off-by: pi <dimetron@me.com>
…lters, query budgets Signed-off-by: pi <dimetron@me.com>
…nd docs Saved answers keep query, view, rows, dependencies and an event checkpoint; checks invalidate conservatively (retracted support, new rows on read predicates, retractions under negation, graph membership) and erasure drops stored rows. The query and rules engines are merged; colliding private helper names in the rules engine are renamed. The feature map no longer defers any capability. Signed-off-by: pi <dimetron@me.com>
Signed-off-by: pi <dimetron@me.com>
dimetron
commented
Nov 21, 2026
dimetron
left a comment
Owner
Author
There was a problem hiding this comment.
Review of the Tiramemsu port (phases 1 and 2): 14 findings, inline. Each was checked against the code before posting.
— Codex review
- materialize refuses to copy a sealed value into a non-sensitive predicate - erase deletes saved answers whose query quotes the erased values - a predicate with volatile plaintext cannot become sensitive - ELPI: occurs check; each _ in a goal is its own variable - Cypher bare-node products are charged to the budget - saved answers: GRAPH clauses depend on membership, OFFSET is non-monotonic - palace-kg-select save_as runs under the same budget and row cap - object-only literal patterns also find sealed objects - graph-scoped bundles leave out statements outside the graph - derived upsert on a sensitive predicate is refused - To-only time-respecting path search is refused - changing value type checks the kinds of sealed values Signed-off-by: pi <dimetron@me.com>
Owner
Author
|
9 advisories without a fix are reported, all in |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #487 +/- ##
==========================================
+ Coverage 91.31% 92.22% +0.91%
==========================================
Files 403 426 +23
Lines 52380 57744 +5364
==========================================
+ Hits 47831 53255 +5424
+ Misses 4543 4483 -60
Partials 6 6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…nches Signed-off-by: pi <dimetron@me.com>
…d select tool Signed-off-by: pi <dimetron@me.com>
…e error Signed-off-by: pi <dimetron@me.com>
…d CLI Inject a failure at every driver call of each write and read path so every storage-error branch is checked to reach the caller, and add behavioural tests for schema flags, seal errors, erase, volatile, graphs, bundle import, vectors, the graph/recall/revise tools and the kg CLI commands. Signed-off-by: pi <dimetron@me.com>
…them visibleIn and isEngineOID swallowed database errors, so Bundle returned ErrNotLive or silently dropped statements. Both now return the error, and the fault-injection sweep checks the bundle paths strictly. Signed-off-by: pi <dimetron@me.com>
…r text Signed-off-by: pi <dimetron@me.com>
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 of the Tiramemsu port (phase 1 merged in #483). Spec:
specs/memory/tiramemsu/phase2/; Codex reviewed the plan before implementation (25 findings, resolutions at the end ofdesign.md).Every capability phase 1 deferred is now in
internal/palace, in pure Go onthe same
modernc.org/sqlitedatabase: no cgo, no new module dependency.Plan:
design.md,plan.md. Codex reviewed the plan (codex-plan-review.md,25 findings, all accepted; resolutions at the end of
design.md).kg_schema2.go,db.gokg_predschema.gopi memory kg schemakg_predschema.go,kg_verbs.gokg_graph.go,kg_view.gopalace-kg-graph,graphon add/query/select/path/recall/rules,pi memory kg graphskg_volatile.gopi memory kg volatilekg_seal.gopi memory kg erase --yes(CLI only, on purpose)kg_query.go,kg_sparql.go,kg_cypher.go,kg_budget.gopalace-kg-select,pi memory kg selectkg_path.gopalace-kg-path,pi memory kg pathkg_rules.go,kg_rules_store.go,kg_n3.gopalace-kg-rules,pi memory kg rulestm.triple)kg_elpi.gopalace-kg-rules syntax=elpikg_answers.gopalace-kg-select save_as/check,pi memory kg answerskg_vector.gopalace-kg-recallkg_bundle.gopalace-kg-bundle,pi memory kg bundleFixes to phase 1 found on the way:
AsOfreads showed retractions made aftertheir bound (Codex #21);
annotateEvidencereplaced a predicate's whole schemawhen it set confidence to cardinality one.
Subsets, stated
aggregates other than COUNT, dataset clauses other than
GRAPH <g>.unification, constraints or modules. ELPI programs are not stored or
materialized (Datalog and N3 are).
Materializerejects programs with negation (upstreamN3NotMaterializable) and reads only the now view.Verification
kg_*_test.go,tool_kg_*_test.go,internal/cli/memory_kg2_test.go); every new tool runs throughtool.Runintool_invoke_test.go.make build test lint vetclean.kg_term/FTS;negative-query invalidation off →
TestAnswers_NegativeQueryStaleOnRetraction;MinHops dropped from the path visited key → five path tests; own-conclusions
filter off in Materialize →
TestRules_OwnConclusionsAreNotInput;sealed filter off in embedding →
TestVector_NeverEmbedsSealedValues;IncludeSensitivecheck off →TestBundle_Sensitive; plus the queryagent's dedup mutation.
Not verified
search issues one lookup per node and predicate; vector search is exact.
Nothing was measured.
make eval-toolsnot run).