amplifier-app-simulated-user-research
AGENTS.md1 starsChanged 4 months agoMITView on GitHub
Automated product-audit rounds: seed a scratch instance, drive real-browser persona sessions + design reviews, synthesize an evidence-tiered findings spec behind a human gate. Read PRINCIPLES.md before designing changes; SMOKE_TESTS.md before verifying. - The CLI command is amplifier-simulated-user-research — never abbreviate it. The retired four-letter acronym of this tool's name (a‑s‑u‑r) is banned everywhere: code, docs, messages, commits, PRs. - The user-facing browser-node bundle name is simulated-user-research-browser-node. Internal .dot param names (sur_repo_dir) are grandfathered — leave them. pipelines/simulated-user-research.dot is the sole…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 45
If you add runtime files (pipelines/scripts/personas), add them to the force-include table in pyproject or wheel installs silently lose …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md 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.
Files
AGENTS.md — amplifier-app-simulated-user-research
Automated product-audit rounds: seed a scratch instance, drive real-browser persona
sessions + design reviews, synthesize an evidence-tiered findings spec behind a human
gate. Read PRINCIPLES.md before designing changes; SMOKE_TESTS.md before verifying.
Naming (hard rules)
- The CLI command is
amplifier-simulated-user-research— never abbreviate it. The retired four-letter acronym of this tool's name (a‑s‑u‑r) is banned everywhere: code, docs, messages, commits, PRs. - The user-facing browser-node bundle name is
simulated-user-research-browser-node. Internal.dotparam names (sur_repo_dir) are grandfathered — leave them.
Architecture (the one rule that governs everything)
pipelines/simulated-user-research.dot is the sole logic home (prompts, stages,
retry policy). The lib, CLI, and tool module are thin adapters that orchestrate runs
of it — they must never reimplement or fork pipeline logic. See PRINCIPLES.md.
Gates before "done"
uv run pytest tests/ -q # main suite
(cd modules/tool-simulated-user-research && uv run pytest -q)
uv build # if packaging/pyproject changedPlus python_check clean on changed Python. If you touched the .dot: re-validate
with the engine's own parser (see SMOKE_TESTS.md). If you touched pipeline mechanics
(guards, wrapper, prompts): run the cheap resume smoke; browser-node or orchestration
changes need a full live round (see the verification gradient in the PR template).
Pitfalls that bit us (do not rediscover these)
- loop-agent ends a session on any text-only reply. Persona role-play makes
models narrate → sessions died mid-browse, reported
success, wrote nothing. That is WHY browser nodes areparallelogramtool nodes shellingscripts/run_browser_node.py(single-shot session; the JSON response IS the deliverable). Never convert them back toboxnodes; prompt discipline decays. - Verify by artifact contract, never byte count or agent self-report.
scripts/validate_artifact.pyis the oracle. Contract and prompt must agree on formats (a citation-regex/prompt mismatch once rejected a good artifact 3×). Resume guards (check_*) use lenient run-id mode;verify_*use--require-exact. - Wheel data: the CLI runs from
_bundled/data force-included in the wheel. If you add runtime files (pipelines/scripts/personas), add them to theforce-includetable in pyproject or wheel installs silently lose them. - Git-dep closure — in BOTH pyprojects. The Amplifier activator installs
with
uv pip install -e . --no-sources --overrides <generated>. Those generated overrides pin every already-installed git dep to a barename==version, stripping the git URL; uv's pip-compatible resolver then re-resolves that package's metadata and rejects ITS git deps as transitive URL dependencies ("PackageXwas included as a URL dependency…"). So the rootpyproject.tomlANDmodules/tool-simulated-user-research/pyproject.tomleach declare the FULL transitive git closure (pipeline-runner, foundation, loop-pipeline, unified-llm-client) as direct deps, even though neither imports them all. Adding a git dep anywhere means adding its closure too, or L3/L4 installs break. Reproduce the activator's exact command to test — don't guess. - agent-browser on Linux ARM64: Chrome-for-Testing ships no arm64 builds;
agent-browser installexits 2. Remediation lives indoctorand README (AGENT_BROWSER_EXECUTABLE_PATH→ Playwrightheadless_shell,--no-sandbox). amplifier run -Bneeds afile://URL — a bare path is treated as a registered bundle name and won't resolve.--on-human-gate consoleneeds engine ≥ attractor PR #95 (on@main);stopis the default unattended ending and is SUCCESS, not failure.attractoris a generic binary name — presence ≠ identity. An unrelated package shipped its ownattractorearlier on PATH;shutil.which()-first resolution shelled out to it and the run died with an inscrutable argparseunrecognized argumentserror, whiledoctorhad reported [OK] because it only checked existence. Resolution is now interpreter-sibling first (the engine installed alongside us), PATH only as fallback, and every candidate is identity-probed (<binary> run --helpmust advertise--param,--logs-root,--on-human-gate) before use — rejects are named in the loud failure. Generalize the lesson: any preflight check must validate capability, not presence (same class as the browser-launchability check). If you add a dependency on an external binary, probe what it can do.- Never let a bundle file sit where the activator can find our pyproject.toml.
The Amplifier activator editable-installs the package at a bundle's
base_path— AND, for a bundle in a subdirectory, it walks UP looking for the nearestbundle.md/bundle.yamland installs that root bundle's source root too (registry.py:_find_nearest_bundle_file). Either path installing THIS repo into the Amplifier CLI's venv fails whenever that venv's attractor pins differ from our@maingit deps (the activator's generated--overridesconflict) — which killed every browser stage. Hence: the browser bundle lives in the package-freebundles/dir, and the root L3 bundle is namedsimulated-user-research.bundle.md(NOTbundle.md) so the upward search cannot discover it. If you add a bundle file, keep it out of any directory with a pyproject.toml, and never reintroduce a literalbundle.md/bundle.yamlat the repo root. - A round's findings are only interpretable against the harness that produced
them. A round reported three "control X does nothing" findings; two were real,
one was a false positive from the off-viewport click artifact that a
click-discipline prompt block had ALREADY fixed — the round had run on an
installed build predating the fix, and nothing in its records said so. Finding
that took a manual grep of the installed wrapper for "CLICK DISCIPLINE". Every
ledger record now carries a
harnessblock (tool version + sha256[:12] ofscripts/run_browser_node.pyand the.dot+ resolved engine), andtriagewarns when the round being graded came from a different build than the one installed. Version alone is NOT the signal — this repo does not bump it per PR, so the content hashes are load-bearing. If you add another surface that shapes agent behavior, hash it there too. - Merging a fix is not the same as shipping it. This tool is installed as a
CLI (
uv tool installfrom the git URL) — the INSTALLED build is what actually runs a round, and merging tomaindoes not update it. Two incidents from this exact gap: (a) round 6 ran on a build predating the click-discipline fix (see pitfall #10), caught only by manually grepping the installed wrapper; (b) a browser-session-hijack fix was merged as a PR, reported as fixed, and the installed build still didn't contain it at all — a round run in between would have reproduced the "fixed" defect. Harness provenance (pitfall #10) only closes half the loop: it explains a round's findings after the fact. The other half —provenance.check_installed_build_staleness+doctor's "installed build current" check +run's pre-flight warning — compares the installed build's hashed surfaces against a local git checkout (never the network: cheap, honest, and it can't fail a run over an unrelated hiccup). "Undetermined" is the common, non-actionable case and must stay silent, not warn — a check that fires on every normal install trains people to ignore it. Warns, never blocks: the operator may be auditing an old build on purpose. Note the limit, and don't overread a "current": it compares the two prompt-shaping surfaces, so a Python-only change to this package is invisible to it. - A guard that only fires when run from inside the checkout is not a guard —
this tool is operated from somewhere else. The first version of #11 found its
comparison target by walking UP from the working directory. It passed its tests
and a live demo, both run from inside the repo. In production it returned
undeterminedon every real invocation and would have stayed silent through both incidents it was built for: rounds are launched from the workspace root with--config, where the checkout is a descendant of the cwd, so an upward walk can never reach it — whilesur_repo_dirin the config had named its absolute path the whole time. An operator's explicit declaration beats any search heuristic, sosur_repo_diris now the source of truth; the walk is only the no-config fallback; and a declared-but-non-qualifying directory yieldsundeterminedrather than silently grading against some other checkout up the tree. Generalize: verify a guard in the invocation shape the operator actually uses — cwd, flags, and config together — not the shape that is convenient to test from. Same family as pitfall #8 (presence ≠ identity): a check that cannot fire is indistinguishable from a check that passes.
Workflow
Branch → PR → merge (main is ruleset-protected: PR + 1 approval, linear history; admins bypass via the PR path only). Conventional commits with the Amplifier co-author trailer. Populate the PR template from real evidence — paste, don't paraphrase. Lessons learned go back into these files before you call work done.
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
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.

