[SCR-615] Add directory-submit lib and run loop #617
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.37) × (1 − Review Confidence (0.42)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 224 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 95% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.324
Real PR Conversation Timeline
1 comments
"Review active on #617"
general
weight: 0.35
claude[bot]
Closes #615
What
Adds
scripts/directory-submit/with a shared lib, a ledger writer, a run loop and a README. The lib holds the browser call, ref lookup, packet loader, settings and Gmail reader. The loop stops on the first rate limit and retries failures.Why
The round 3 helpers lived in
/tmp/b3and would be lost on restart. They also held a personal mailbox address and wrote a per-site CSV throughbun. This version reads the packet JSON, takes settings by name from the environment or the secrets file, and writes the fleet ledger directly.How I verified
Command:
python3 run.py stub_e2eagainst five fake sites in a temp repo and a temp ledger, using a throwaway driver (not committed) that succeeds, fails once, hits a rate limit, and always fails. Results:retry_after2026-10-23, exit 3, d and e stayed pending.--dry-runthe ledger file stayed byte-identical.ledger.recordrefused a note holdingpassword=...and an empty note.lib.packet()loaded all 20 real packets from a pooriaarab/directory checkout with no failures (for example agentsandboxes: name, url, contact, short 112 chars, long 348 chars).Not re-run live: the browser calls need the owner's Chrome, and another agent drives it now. The drivers arrive in the next PR (#616).
Operator: not applicable - local helper scripts, no user-visible surface and no deployed service.
Proof: n/a - command output above is the evidence, there is no UI.
Assisted-by: claude-personal-1:claude-sonnet-5-5