Skip to content

fix: ui_verify.py hardcoded SSD-mirror path instead of the primary checkout - #578

Open
essentialbit wants to merge 2 commits into
mainfrom
fix/ui-verify-hardcoded-ssd-path
Open

fix: ui_verify.py hardcoded SSD-mirror path instead of the primary checkout#578
essentialbit wants to merge 2 commits into
mainfrom
fix/ui-verify-hardcoded-ssd-path

Conversation

@essentialbit

Copy link
Copy Markdown
Owner

Summary

  • scripts/ui_verify.py hardcoded HTML_FILE to the SSD mirror path (/Volumes/Iron 1TBSSD/Claude/FredAI/templates/dashboard.html) instead of resolving relative to its own location.
  • The mirror was confirmed stale (Aug 1 vs. primary checkout's Aug 3) and byte-different from templates/dashboard.html — the script was silently auditing the wrong, out-of-sync file, giving false confidence about the actually-deployed dashboard.
  • Fixed to use the Path(__file__).resolve().parents[1]-relative convention already established by sibling scripts qa_verify.py/ci_sensor.py, so it runs unmodified from any checkout (primary, worktree, or a CI runner).

Found while characterizing previously-uncharacterized sensor tooling scripts (fredai.md flagged ui_verify.py as "not yet characterized in a sensor cycle"). Self-directed tooling fix — no feature-backlog consensus gate applies to this class of PR.

Test plan

  • Ran venv/bin/python3 scripts/ui_verify.py against the fixed path — now correctly audits the primary checkout's templates/dashboard.html (301 IDs, 228 JS functions found, real results returned instead of failing against a stale/missing file).
  • python3 -c "from main import *; print('Import OK')" — passes.
  • CI

🤖 Generated with Claude Code

Saifodius and others added 2 commits August 16, 2026 16:19
…eckout

Auditing an out-of-sync mirror gives false confidence -- the SSD copy was
2 days stale and byte-different from templates/dashboard.html on the
checkout the sensor/live app actually uses. Matches the
Path(__file__).resolve().parents[1]-relative convention already used by
qa_verify.py/ci_sensor.py so it runs unmodified from any checkout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant