Skip to content

Keep Tunnel as an installable example operator - #368

Open
jeffcrouse wants to merge 2 commits into
mainfrom
feat/tunnel-example-op
Open

jeffcrouse wants to merge 2 commits into
mainfrom
feat/tunnel-example-op

Conversation

@jeffcrouse

Copy link
Copy Markdown
Member

Rescued from the local-only feat-grid-reactive-visuals branch, where tunnel.cpp existed in exactly one commit reachable from one un-pushed branch — one git branch -D from gone. Nothing referenced it: not that branch's grid.py, not even its own project.json. Written, then orphaned when the demo moved to InstanceGrid.

It's worth keeping

Verified against ABI 17 on current main:

compiles ✅
registers + spawns ✅
renders 1280×720, is_blank: false, 33% non-black

The frame is a monochrome corridor — concentric rings and radial spokes receding to a vanishing point — exactly what the source claims.

Why example-visuals

Alongside Gradient: source-only, installed on demand via install_operator_package, no CMake target, no core registration. That respects ADR-0054's lean core — a single-look operator doesn't belong in the spine — while making it discoverable instead of dying on a branch. It needs only the three operator_api headers Gradient needs, so there's nothing to vendor.

Not placed in examples/operators/Tunnel/: that tree is generated from app/operators/packages by gen_examples.py, so a hand-added folder would be an orphan the generator doesn't know about. Gradient has no folder there either, for the same reason.

Two things this surfaced

A scare that turned out to be mine, not main's. Installing the package first failed with Gradient unable to find concise_gpu_error / report_if_no_pipeline — helpers #337 added an hour earlier. It was my local build being stale: src/operator_api/gpu_common.h had them, the bundled Resources/operator_api/gpu_common.h didn't. A rebuild fixed it; main is fine.

But the near-miss is worth noting. Installable packages compile against the bundled headers, and no test exercises that path. The vendored-snapshot guard catches source copies drifting; nothing catches shipped headers drifting from shipped example sources. A real mismatch would reach users as a compile error the first time they try to author an operator — which is the product's north star. Worth a guard that installs a package in CI.

feat-grid-reactive-visuals has also been pushed to origin so nothing else on it depends on one laptop.

🤖 Generated with Claude Code

https://claude.ai/code/session_01X8hiFecYKwDbXW857wAzBU

Rescued from the local-only feat-grid-reactive-visuals branch, where it existed in exactly
one commit reachable from one un-pushed branch — a `git branch -D` from being gone. Nothing
referenced it: not that branch's grid.py, not even its own project.json. It was written and
then orphaned when the demo moved to InstanceGrid.

It is worth keeping. Verified against ABI 17 on current main: compiles, registers, spawns,
and renders a real frame (1280x720, is_blank false, 33% non-black) — a monochrome corridor
of concentric rings and radial spokes receding to a vanishing point, which is exactly what
the source claims.

Home is `packages/example-visuals`, alongside Gradient: source-only, installed on demand
via install_operator_package, no CMake target and no core registration. That respects
ADR-0054's lean core — a single-look operator does not belong in the spine — while making
the thing discoverable instead of dying on a branch. It needs only the three operator_api
headers Gradient needs, so there is nothing to vendor.

NOT placed in examples/operators/Tunnel/: that tree is GENERATED from
app/operators/packages by tools/operator_audit/gen_examples.py, so a hand-added folder
would be an orphan the generator does not know about. Gradient likewise has no folder
there, for the same reason — an installable example is not a registered op.

The branch has also been pushed to origin/feat-grid-reactive-visuals so nothing else on it
depends on one laptop.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X8hiFecYKwDbXW857wAzBU
@github-actions

github-actions Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Production gate (core): ✅ PASS

  • 88/88 tests passed (0 failed) in 17.5s

This branch has not been deployed

No deployments
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