docs(od-ontology): thread the "classid is an address, not a carrier" consensus into the spellbook#8
Merged
Conversation
…consensus into the spellbook Cross-session convergence (OGAR #99, lance-graph #591, odoo-rs #6): the sharpest cut on the classid-vs-magic question. A classid carries NO magic — it is pure address. The Rails class-magic (callbacks / validations / @api.constrains / lifecycle) is not IN the id; it is what the id RESOLVES TO: classid ─┬─► ClassView (SKIN — render/structure; hi u16 picks which) └─► ActionDef + KausalSpec (MAGIC — behavior/FSM; the Core, never DDL) Even the high u16 selects RENDER magic (whose ClassView/Askama skins the concept), never CLASS magic (behavior). This grounds WHY the SurrealQL-AST trap is a trap: DDL carries the address-shaped structure but NOT the Core, so `DEFINE EVENT`-to-hold-lifecycle smuggles a Core property into a key that can only carry the address. The id addresses; the Core behaves. Completes the local spellbook (#6) with the identity-layer doctrine that underpins it, and aligns it with the W3 behavioral-arm scope (#7): ActionDef IS the magic the classid points at, lowered as the value, never the key. Doc-only. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
What
A one-section addition to the local SurrealQL-AST-trap spellbook (
#6), pinningthe sharpest cut from the cross-session GUID/classid discussion — the consensus
arrived at independently by OGAR #99, lance-graph #591, and this crate.
A
classidcarries no magic — it is pure address. The Rails class-magic(callbacks / validations /
@api.constrains/ lifecycle) is not in the id;it's what the id resolves to:
Even the high u16 selects render magic (whose
ClassView/Askama skins theconcept), never class magic (behavior). This grounds why the trap is a
trap: DDL carries the address-shaped structure but not the Core, so emitting
DEFINE EVENTto "hold the lifecycle" smuggles a Core property (behavior) into akey that can only ever carry the address (shape). The id addresses; the Core
behaves.
Why
The spellbook (#6) governs the SurrealQL-AST trap; this adds the identity-layer
doctrine that underpins it, and aligns it with the W3 behavioral-arm scope
(#7):
ActionDefis the magic the classid points at — lowered as the value,never the key. My earlier chat answer had conflated the render-lens (hi u16,
the skin) with class-magic (behavior); the parallel sessions' sharper split is
the correct one, now on the record in my own domain.
Doc-only. Follows merged #6 (spellbook) + #7 (behavioral-arm scope).