{"skill":{"slug":"surrealdb","displayName":"SurrealDB 3","summary":"Expert SurrealDB 3 architect and developer skill. SurrealQL mastery, multi-model data modeling (document, graph, vector, time-series, geospatial), schema des...","tags":{"ai-agents":"1.6.4","database":"1.6.4","graph":"1.6.4","latest":"1.6.4","openclaw":"1.6.4","surrealdb":"1.6.4","vector":"1.6.4"},"stats":{"comments":0,"downloads":1196,"installsAllTime":1,"installsCurrent":1,"stars":3,"versions":28},"createdAt":1771783747470,"updatedAt":1778491608600},"latestVersion":{"version":"1.6.4","createdAt":1778096660474,"changelog":"## [1.6.4] - 2026-05-06 — `rules/data-modeling.md` deferred-IMPORTANT clause closure + v1.6.3 ride-along security.md cite tightening (3 atomic feature commits + release commit)\n\n### Added\n\n- **`rules/data-modeling.md` deferred-IMPORTANT cleanup (batch\n  4 of the v1.5.x convergence cycle).** Closes both items\n  attributed to data-modeling.md in the v1.5.x convergence\n  notes:\n  - **Exact kNN metric mismatch fixed.** Pre-existing example\n    used `<|10,EUCLIDEAN|>` as the brute-force operator but\n    `vector::similarity::cosine()` as the projected score —\n    top-10 by Euclidean re-ordered by an unrelated cosine\n    score, almost never the intended semantic. Rewrote with\n    two correctly-paired examples (Cosine path:\n    `<|k,COSINE|>` + `vector::similarity::cosine()` + ORDER BY\n    similarity DESC; Euclidean path: `<|k,EUCLIDEAN|>` +\n    `vector::distance::euclidean()` + ORDER BY distance ASC).\n    Documents all three NearestNeighbor variants (`K` /\n    `KTree` / `Approximate` per\n    `core/src/sql/operator.rs:393-398`) so consumers know\n    which form to use for which case.\n  - **Illustrative-edge consistency.** Three edge tables\n    (`knows`, `reviewed`, `parent_of`) used in the doc's\n    traversal + recursive-query examples lacked\n    `DEFINE TABLE` statements. Added explicit definitions\n    with `TYPE RELATION ... IN ... OUT ... ENFORCED` matching\n    the doc's broader 'define edges first' pattern used for\n    `wrote` / `purchased` / `follows` / `likes` /\n    `ships_to` / `enrolled_in` / etc. Inline comment\n    explains that v3 SCHEMALESS still creates RELATE rows on\n    undefined edge tables (so the original examples worked at\n    runtime), but the explicit definition documents the\n    expected shape and lets ENFORCED reject malformed\n    RELATEs at write time.\n\n### Changed\n\n- **`rules/security.md`** — v1.6.3 Cursor pass-1 M3\n  ride-along: tightened ROUTING-CLAIM REQUIREMENT block's\n  `:288-297` cite to `:292-297` (the actual claims-match arm)\n  + `:824-825` to `:825` (the entire `_ => Err(InvalidAuth)`\n  arm sits on :825; :826 is the surrounding match's closing\n  brace). Cosmetic\n  precision improvement; no semantic change.\n\n### Process notes\n\n3 atomic commits (kNN metric fix; illustrative-edge\nconsistency; release-with-bundled-security-cite) + 1 rev-2\nreview-fix commit closing pass-1 findings.\n\nPass-1 4-WAY review:\n- Cursor: CONDITIONAL GO (0 CRITs / 1 IMP / 3 minors)\n- Codex:  NO-GO          (1 CRIT / 2 IMPs / 1 minor)\n- Gemini: GO              (0 findings)\n- Pi:     pending at rev-2 dispatch\n\nRev-2 closes:\n- **Codex C1**: rev-1 doc described `<|k|>` (NearestNeighbor::KTree)\n  as \"requires a defined index\" — but per\n  `core/src/exec/planner/util.rs:391` + `analysis.rs:1001-1005`\n  + `select.rs:1421-1425`, KTree is parser-accepted but NOT\n  handled at the planner level in v3.0.5 (legacy v2 m-tree\n  remnant). Rewrote to clarify only `<|k,dist|>` and\n  `<|k,ef|>` are implemented; `<|k|>` is grammar-accepted\n  with no active planner path.\n- **Cursor I1**: security.md still had two stale `verify.rs:288-297`\n  + one `:824-825` ref at lines 548 + 1659-1661 that the\n  rev-1 ride-along missed. Replace-all fixed.\n- **Codex I1**: CHANGELOG commit-count drift. Now accurately\n  reflects 3 atomic + 1 rev-2 review-fix commit shape.\n- **Codex M1 + Pi I1 (CONVERGENT)**: `:826` is the\n  surrounding match's closing brace, not the body line — the\n  entire `_ => Err(InvalidAuth)` arm sits on `:825`. Reworded\n  rule + CHANGELOG to cite `:825` only.","license":"MIT-0"},"metadata":{"os":null,"systems":null},"owner":{"handle":"24601","userId":"s178bj90ka9xeg44k6bt7q07k184jcr0","displayName":"Basit Mustafa","image":"https://avatars.githubusercontent.com/u/1157207?v=4"},"moderation":null}