Context
Strict regex for --session, --since, --module, --allow-danger. Invalid input → exit 2.
Acceptance criteria
Files to touch (estimate)
best-effort estimate; agent refines during implementation
Implementation notes
n/a
Dependencies
None.
Safety checklist
See .github/ISSUE_TEMPLATE/task.yml — tick applicable invariants in the issue if any destructive path is touched.
Definition of Done
Context
Strict regex for
--session,--since,--module,--allow-danger. Invalid input → exit 2.Acceptance criteria
--sessionmatches^\d{4}-\d{2}-\d{2}-\d{6}-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$.--sincematches^\d{1,4}(d|w|m|y)$|^\d{4}-\d{2}-\d{2}$; max 10 years.--modulematches^[a-z0-9]+(\.[a-z0-9-]+)*$; unknown module rejected.--allow-danger=<id>whitelist of ids.Files to touch (estimate)
best-effort estimate; agent refines during implementation
Implementation notes
n/a
Dependencies
None.
Safety checklist
See
.github/ISSUE_TEMPLATE/task.yml— tick applicable invariants in the issue if any destructive path is touched.Definition of Done