Skip to content

Visual language#38

Closed
dibaunaumh wants to merge 109 commits into
WebWideMatrix:masterfrom
AliceAlifib:visual-language
Closed

Visual language#38
dibaunaumh wants to merge 109 commits into
WebWideMatrix:masterfrom
AliceAlifib:visual-language

Conversation

@dibaunaumh

Copy link
Copy Markdown
Contributor

No description provided.

…address. Also reduced distance from speaker 10->2
…ootprint. this is tech-debt - proper solution is to remove chat to its own storage & pull just the latest
dibaunaumh and others added 25 commits September 17, 2025 08:22
…e caller already does that using an additional query
…se fields. This used to work long time ago, but got broken
Register/unregister endpoints store callback_urls per battery_type
in Redis sets. The chat dispatcher now looks up battery bldgs on the
message floor, resolves their types to registered callbacks via Redis,
and picks one randomly to dispatch each message.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ge (not the cleanest, but have to get this working). Also added an endpoint to get a bldg by the bldg_url
… how redis is used for transient data). Not sure it's the right approach though, because I want to keep the principle of , so not store data in a db hidden from the user, but rather store everything - including staging data - in bldgs, which the user can see
…staging-data

Expend usage of graph db for staging data
Container bldgs now have a visual_language jsonb column that maps semantic
entity types to 3d_object names and floor height metadata. This decouples
what a bldg represents (entity_type) from how it looks when rendered.

- New migration adding visual_language column to bldgs table
- Default visual language with all 40 built-in entity type mappings
- Refactored add_composite_bldg_metadata from 10+ hardcoded clauses to
  a single lookup against the visual language map
- BldgView returns visual_language as JSON-encoded string
- test.exs now reads DB_USER from env (consistent with dev.exs)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Added Buildings.is_authorized_owner?/2 that walks up the container
chain to check if the given email owns the building or any of its
ancestors. This means if you own a building, you can create, move,
connect, and manage everything nested inside it.

Replaced all 6 inline Enum.find ownership checks in
BldgCommandExecutor with the new function.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The bldg_url hierarchy alternates between buildings and floors
(e.g., g/udi-bauman/l0/goal_name). When walking up to check
ancestor ownership, floor URLs like "g/udi-bauman/l0" aren't in
the bldgs table, so the lookup returned nil and stopped the walk.

Now continues walking up past floors until it reaches an actual
building or the root.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dibaunaumh dibaunaumh closed this Apr 10, 2026
@dibaunaumh
dibaunaumh deleted the visual-language branch April 10, 2026 17:23
@dibaunaumh
dibaunaumh restored the visual-language branch April 10, 2026 17:24
@dibaunaumh dibaunaumh reopened this Apr 10, 2026
@dibaunaumh dibaunaumh closed this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant