- Rewrite vram_detect in Python with fixed config parsing and 10KB read limit
- Add pytest suite (72 tests) covering dashboard core, app security, and VRAM
- Standardize all prompts to .automaton/tasks/{task-name}/ path
- Reconcile dashboard spec with web implementation; remove themes.py
- Remove half-implemented refresh.py file watcher
- Harden dashboard static-file serving and task-name validation
- Add uncommitted-change guard to update.sh and real Gitea URLs
- Add AGENTS.md, Gitea CI workflow, and template documentation
1.1 KiB
1.1 KiB
Implementation: Rewrite VRAM Detection as Python Script
Summary
Replaced scripts/vram_detect.sh with scripts/vram_detect.py, a testable Python implementation that produces the same JSON output and fixes several bugs.
Files Changed
scripts/vram_detect.py(new)scripts/vram_detect.sh(deleted)scripts/install.sh— updated to run Python script and parse JSON with PythonREADME.md— updated referencesprompts/onboarding.md— updated references and invocationprompts/decompose.md— updated referencesprompts/orchestrate.md— updated references
Bugs Fixed
- Undefined
$headroom_pctin manual mode. - Hardcoded
"headroom": 0.25in JSON output. - Code-block values in
config.mdbeing parsed as live config. - GPU-counting/output ordering bug.
- 10KB file-read limit now enforced for API config files.
Verification
python scripts/vram_detect.pyruns and emits valid JSON.python scripts/vram_detect.py gpt-4odetects 128k context.python scripts/vram_detect.py --model claude-3-5-sonnetdetects 200k context.rg "vram_detect\.sh" README.md scripts/install.sh prompts/returns no matches.