agentleFS
Asymptote-LabsAsymptote-Labs/agent-beacon/.claude/skills/self-verify-beacon-in-sandbox/SKILL.md

self-verify-beacon-in-sandbox

Skill1.8k starsChanged 2 months agoMITView on GitHub

Verify a Beacon change end to end by running a real Claude Code session inside a disposable Linux cloud sandbox and checking that Beacon captured what the agent actually did. Use when asked to verify, validate, test, or prove that a Beacon change works for real rather than just compiling; when asked whether telemetry, event capture, commands, file paths, prompts, tokens, or approvals are still recorded correctly; when investigating a suspected capture gap; or when preparing a Beacon pull request that touches the CLI, hooks, or the collector exporter.

  • Reads credentials
  • Installs packages

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 4 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 10 mentionsOct 2026: 5 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the Asymptote-Labs/agent-beacon repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about Asymptote-Labs/agent-beacon

The biggest 5 of 20 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 20

Talked about on GitHub, Bluesky and Hacker News (20 times).

On GitHub · 16

11 more on GitHub

On Hacker News · 1

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always start here. It is free, needs no sandbox, and prints the exact fix for anything missing:

    line 20
  2. Very specific:

    Add --json for machine-readable output with a top-level ready boolean.

    line 27
  3. Very specific:

    The Anthropic credential: Never invent, echo, or write a key.

    line 46
  4. Very specific:

    Do not proceed to step 3 while doctor reports any FAIL — the run will fail later and more confusingly.

    line 50
  5. Very specific:

    A FAIL may be a stale assertion, not a bug: Read the failing expectation's why field against the verdict's action histogram before …

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Verify Beacon in a sandbox

This repository ships beacon-sandbox, which rents a disposable Linux sandbox from Modal, installs the Beacon under test, runs a real Claude Code session inside it, and checks whether Beacon recorded what the agent did.

Read beacon-sandbox/AGENTS.md for the full operating manual — scenario selection, how to interpret a verdict, and the failure modes that look like Beacon bugs but are not. The commands below are enough to start; that file is what stops you misreading the result.

Step 1: check prerequisites

Always start here. It is free, needs no sandbox, and prints the exact fix for anything missing:

cd beacon-sandbox
go run ./cmd/beacon-sandbox doctor

Add --json for machine-readable output with a top-level ready boolean.

Step 2: resolve what doctor reports

Apply the fix: line it prints, then rerun doctor. The two build artifacts you can resolve yourself:

cd cli/beacon && make build-linux-amd64      # if beacon_binary FAILs
cd beacon-sandbox && go run ./cmd/beacon-sandbox doctor --fix   # downloads the collector

Two prerequisites you must NOT try to resolve yourself:

  1. Modal authentication. modal token new completes through an authenticated web session, so it opens a browser and blocks — running it yourself will hang until timeout. If modal_auth FAILs, ask the user to run it, suggesting they type ! pip install modal && modal token new so the output lands in the conversation. In CI, MODAL_TOKEN_ID and MODAL_TOKEN_SECRET work non-interactively instead.
  2. The Anthropic credential. Never invent, echo, or write a key. If anthropic_credential FAILs, ask the user which of the three paths they want: ANTHROPIC_API_KEY, --api-key-command CMD, or --modal-secret NAME.

Do not proceed to step 3 while doctor reports any FAIL — the run will fail later and more confusingly.

Step 3: run it

go run ./cmd/beacon-sandbox run --scenario s02-bash-command   # one scenario -- do this while iterating
go run ./cmd/beacon-sandbox run                               # the whole suite, ~30 min

Pick the scenario matching what changed:

You changedScenario
Command capture / exporter tool handlings02-bash-command
File read or write signalss03-file-write or s04-file-read
Prompt, session, token, or cost captures01-hello
Approval or permission handlings07-denied-tool
endpoint install, config paths, service startupi01-install-supervised
The systemd backend, unit files, Linux system modei02-install-systemd
Something broad, or preparing a PRthe whole suite (bare run)

The s0* scenarios collect through beacon ci exec, a temporary collector. The i0* scenarios install Beacon first, so they are the only ones that cover installation and service management. i02 runs inside a nested privileged container, because systemd will not start unless it is PID 1 and the sandbox provider's own init holds that slot — expect it to take several minutes longer.

Other flags: --repeat N to tell flaky from broken, --keep-sandbox to leave the instance up for debugging.

Four things not to get wrong

  1. A run costs real money — about $0.06 of sandbox plus a few cents of API per scenario, on the user's account. Say what you are about to run and roughly what it costs before spending it, and prefer a single --scenario while iterating. If you only changed what counts as correct, use verify <run-dir> instead — it re-judges collected artifacts offline and free.
  2. A change under collector-builder/ needs the collector rebuilt. The telemetry normalization compiles into beacon-otelcol, not the beacon CLI, so otherwise you verify the wrong binary and get a meaningless pass. doctor warns about this as collector_freshness.
  3. INCONCLUSIVE means the model never did the work — retry the scenario; do not investigate Beacon.
  4. A FAIL may be a stale assertion, not a bug. Read the failing expectation's why field against the verdict's action histogram before concluding anything.

beacon-sandbox/AGENTS.md explains each of these properly, plus diff, scenario authoring, and how to self-test that the checks still have teeth.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.