How ayush1216/understudy works
Understudy turns a goal into a reviewed, typed capability by having an LLM operate a real UI once, then replays that artifact deterministically with typed inputs and no model. The graph follows discovery and replay through the shared browser surface, and includes capability validation, evidence, policy, catalog, and human takeover. The README documents these product branches; source excerpts and the SOURCE INDEX support the cited internal links. Some subsystem internals were not sampled, so their links are limited to documented or indexed relationships.
Main entry points: surface.py Web surface · loop.py LLM discovery · cli.py CLI entry · executor.py Deterministic replay
Components 23
Run workflows
- CLI entry
src/understudy/cli.py - LLM discovery
src/understudy/discover/loop.py - Artifact recorder
src/understudy/discover/recorder.py - Deterministic replay
src/understudy/replay/executor.py
Browser surface
- Web surface
src/understudy/surface/web/surface.py - UI perception
src/understudy/surface/web/perception.py - Target resolver
src/understudy/surface/web/resolver.py - Browser session
src/understudy/surface/web/session.py - Surface protocol
src/understudy/surface/protocol.py
Capability contracts
- Typed capability schema
src/understudy/schema/capability.py - Artifact linting
src/understudy/schema/lint.py - Capability catalog
src/understudy/catalog/catalog.py
Operations and oversight
- Risk and policy
src/understudy/policy/engine.py - Run evidence
src/understudy/evidence/store.py - Operator console
src/understudy/console/app.py - Human interventions
src/understudy/console/interventions.py - Run coordination
src/understudy/runs.py
Demo target app
- Legacy target UI
target_app/app.py - Member data
target_app/data.py - Tenant UI views
target_app/render_alpha.py - Fault injection
target_app/faults.py
Other components
- Operator or agent
- Chat model API
Connections 31
- Operator or agent → CLI entry: invokes
README.md - CLI entry → LLM discovery: starts discovery
src/understudy/cli.py - LLM discovery → Chat model API: requests turns
src/understudy/discover/loop.py - LLM discovery → Artifact recorder: records trace
src/understudy/discover/loop.py - Artifact recorder → Typed capability schema: builds artifact
src/understudy/discover/recorder.py - CLI entry → Deterministic replay: starts replay
src/understudy/cli.py - Capability catalog → Typed capability schema: loads capability
src/understudy/catalog/catalog.py - Capability catalog → Artifact linting: validates artifact
src/understudy/schema/lint.py - Deterministic replay → Typed capability schema: executes steps
src/understudy/replay/executor.py - LLM discovery → Web surface: operates through
src/understudy/discover/loop.py - Deterministic replay → Web surface: operates through
src/understudy/replay/executor.py - Web surface → Browser session: uses browser
src/understudy/surface/web/surface.py - Web surface → UI perception: observes UI
src/understudy/surface/web/surface.py - Web surface → Target resolver: resolves targets
src/understudy/surface/web/surface.py - Target resolver → UI perception: uses observations
src/understudy/surface/web/resolver.py - Web surface → Surface protocol: implements seam
src/understudy/surface/web/surface.py - LLM discovery → Risk and policy: gates actions
src/understudy/discover/loop.py - Deterministic replay → Risk and policy: checks policy
src/understudy/replay/executor.py - LLM discovery → Run evidence: writes run evidence
src/understudy/discover/loop.py - Deterministic replay → Run evidence: writes run evidence
src/understudy/replay/executor.py - CLI entry → Capability catalog: manages artifacts
src/understudy/cli.py - CLI entry → Operator console: mounts console
src/understudy/cli.py - Operator console → Run coordination: accesses live runs
src/understudy/console/app.py - Operator console → Human interventions: routes interventions
src/understudy/console/app.py - Run coordination → Browser session: owns session
src/understudy/runs.py - Run coordination → Run evidence: exposes evidence
src/understudy/runs.py - Human interventions → Run coordination: resolves takeover
src/understudy/console/interventions.py - Web surface → Legacy target UI: drives UI
- Legacy target UI → Member data: reads and mutates
target_app/app.py - Legacy target UI → Tenant UI views: renders tenant pages
target_app/app.py - Legacy target UI → Fault injection: injects demo faults
target_app/app.py