Skip to content

AMPR-169 #498: add :ampere-phosphor bridge for Lumos atmospheres and glyphs#519

Merged
wow-miley merged 1 commit into
mainfrom
miley/ampr-169-ampere-phosphor-bridge-ampere-cognitive-events-to-lumos
May 31, 2026
Merged

AMPR-169 #498: add :ampere-phosphor bridge for Lumos atmospheres and glyphs#519
wow-miley merged 1 commit into
mainfrom
miley/ampr-169-ampere-phosphor-bridge-ampere-cognitive-events-to-lumos

Conversation

@wow-miley
Copy link
Copy Markdown
Contributor

Closes #498.

I added a new KMP module :ampere-phosphor (JVM + iOS) that translates AMPERE's cognitive event stream into Phosphor Lumos atmosphere targets and queued glyphs, with DefaultPropelStrategy covering the canonical six-phase mapping (LISTENING / THINKING / LISTENING / THINKING / READY / THINKING) and five glyph signals (CHECK, QUESTION, EXCLAIM ×2 sources, STAR), pluggable via PropelToAtmosphereStrategy. Atmosphere targets coalesce behind a Mutex-guarded pendingAtmosphere; EscalationFired bypasses the queue, drives UNCERTAIN immediately, and queues a QUESTION glyph; glyphs do not coalesce. The bridge does not own a frame loop — since AtmosphereChoreographer exposes activeTransition as a property rather than a callback, consumers call onFrameTick() once per frame after runtime.update(dt) to flush pending atmospheres when the in-flight transition completes. 16 commonTest tests cover the canonical mapping, the never-UNCERTAIN invariant, single transitions, coalescing under in-flight transitions, escalation override clearing pending, all five glyph signals (plus success=true no-glyph), custom strategy substitution, and a concurrent-publish stress test.

Test plan

  • ./gradlew :ampere-phosphor:jvmTest — 16 / 16 passing
  • ./gradlew :ampere-phosphor:assemble — JVM + iOS targets compile
  • ./gradlew :ampere-phosphor:ktlintCheck — clean
  • ./gradlew jvmTest — full project test suite still green

🤖 Generated with Claude Code

…glyphs

I added a new KMP module (`:ampere-phosphor`, JVM + iOS) that translates
AMPERE's cognitive event stream into Phosphor Lumos atmosphere targets
and queued glyphs. Consumers wire
`EventSerialBus → AmperePhosphorBridge → CognitiveSceneRuntime`
(plus a `VoxelFrameBuilder`) and get a visually rich representation
of agent cognition for free — no CLI, terminal, or renderer code.

Translation is pluggable via `PropelToAtmosphereStrategy`; ships
`DefaultPropelStrategy` with the canonical six-phase mapping
(LISTENING / THINKING / LISTENING / THINKING / READY / THINKING) and
the five glyph signals (CHECK, QUESTION, EXCLAIM ×2 sources, STAR).
Atmosphere targets coalesce behind a `Mutex`-guarded
`pendingAtmosphere`; `EscalationFired` bypasses the queue, drives
`UNCERTAIN` immediately, and queues a QUESTION glyph. Glyphs do not
coalesce — every signalled event is queued in arrival order on the
renderer's `VoxelFrameBuilder`.

The bridge does not own a frame loop. Since
`AtmosphereChoreographer` exposes `activeTransition` as a property
(not a callback), consumers call `onFrameTick()` once per frame after
`runtime.update(dt)` to flush a pending atmosphere when the in-flight
transition completes.

16 commonTest tests cover the canonical mapping, the never-UNCERTAIN
invariant, single transitions, coalescing under in-flight transitions,
escalation override clearing pending, all five glyph signals (plus the
success=true no-glyph case), custom strategy substitution, and a
concurrent-publish stress test against the mutex.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Concept staleness check — clean. No tracked-source changes need a concept update.

@wow-miley wow-miley merged commit 848a951 into main May 31, 2026
3 checks passed
@wow-miley wow-miley deleted the miley/ampr-169-ampere-phosphor-bridge-ampere-cognitive-events-to-lumos branch May 31, 2026 02:04
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.

:ampere-phosphor — bridge AMPERE cognitive events to Lumos atmospheres and glyphs

1 participant