feat(scripts): run the examples this machine is set up for - #598
Draft
williedoran-neo4j wants to merge 1 commit into
Draft
Conversation
This was referenced Aug 11, 2026
williedoran-neo4j
force-pushed
the
willie/examples-live-checker
branch
3 times, most recently
from
August 12, 2026 10:30
1be8f62 to
d3ec27c
Compare
williedoran-neo4j
force-pushed
the
willie/examples-live-checker
branch
4 times, most recently
from
August 13, 2026 09:06
d024a59 to
41e4f0d
Compare
Adds --live to the examples checker: an opt-in, manual-stage run of every
example the machine can actually support. Nothing invokes it on commit, on push
or in CI.
What "set up for" means is the doctor's judgement rather than a second opinion.
The version this replaces kept its own gate - a hardcoded {"openai"} whitelist
plus a services check - which had drifted from the doctor and skipped 30
examples across 12 providers that were perfectly runnable. Delegating to
blockers_for() also means a skip line now carries the fix, and that a key living
only in .env reaches the subprocess instead of failing a preflight.
The whitelist was doing one job worth keeping: cost control. So --live now says
what it is about to spend and on which providers, and waits for an answer.
--yes skips the prompt for scripted use.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
williedoran-neo4j
force-pushed
the
willie/examples-live-checker
branch
from
August 17, 2026 10:02
41e4f0d to
670ec8d
Compare
williedoran-neo4j
changed the base branch from
main
to
willie/examples-setup-installer
August 17, 2026 10:12
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.
Last of the chain-B PRs. Stacked on #602 — the diff above contains #597, #599 and #602 until they merge; this PR's own change is the final commit.
Adds
--liveto the examples checker: an opt-in, manual-stage run of every example this machine can actually support. Nothing invokes it on commit, on push, or in CI.The point of the restructure
What "set up for" means is now the doctor's judgement rather than a second opinion.
The version this replaces kept its own gate — a hardcoded
RUNNABLE_PROVIDERS = {"openai"}plus a services check — which had drifted fromblockers_for. Measured against the real corpus, it skipped 30 examples across 12 providers that were perfectly runnable, whatever credentials you had. Two implementations of the same question, disagreeing.Delegating deletes
RUNNABLE_PROVIDERS,_service_available(a one-line pass-through) andproviders_used(already dead), and gains everything the doctor checks: extras, per-provider env vars, credential probes, APOC, indexes, sibling-module imports. A skip line now carries the fix, andapply_env_filemeans a key living only in.envreaches the subprocess instead of failing a preflight.Cost
The whitelist was quietly doing one job worth keeping — cost control. Removing it means the doctor green-lights considerably more. So
--livenow says what it is about to spend, and waits:That is real output from this branch.
--yesskips the prompt for scripted use.Type of Change
Complexity
Complexity: Medium
How Has This Been Tested?
Nothing covered the
--livepath before, so this adds the gating tests: snippets are never run, a blocked example is skipped rather than run, declining the prompt runs nothing and exits 0, and the prompt names the providers that will be billed. Confirmed by hand that declining runs nothing.Checklist
🤖 Generated with Claude Code