Skip to content

feat: unify daily operating loop under /daily with hardened control-plane receipts - #208

Merged
richfrem merged 2 commits into
mainfrom
feat/daily-loop-unification
Sep 6, 2026
Merged

richfrem merged 2 commits into
mainfrom
feat/daily-loop-unification

Conversation

@richfrem

@richfrem richfrem commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Consolidates morning operations under a single institutional command /daily (--scan vs default interactive mode).
  • Cleanly removes the /daily-brief skill to eliminate command ambiguity.
  • Implements daily_receipts.py featuring:
    • Canonical JSON serialization with fixed-precision numeric normalization for cross-platform determinism.
    • BEGIN IMMEDIATE transaction isolation and a UNIQUE INDEX on gate_name preventing TOCTOU races and duplicate step writes.
    • An explicit terminal anchor receipt (DAILY_RUN_<run_id>_TERMINAL) preventing prefix truncation attacks.
  • Upgrades verify_daily_run.py with mode-aware auditing, an unresolved symlink guard, and a PID liveness-checked stale janitor.
  • Injects ## Interactive Session Decisions & Overrides directly into generate_reports.py.
  • Passes all T0, T0.5, and T1 quality gates (unit tests, TypeScript compile, syntax, and invariant checks).

…lane receipts

- Delete /daily-brief and consolidate morning ops into /daily (--scan vs default interactive)
- Implement daily_receipts.py with canonical JSON serialization and fixed-precision float normalization
- Enforce UNIQUE index on gate_name and BEGIN IMMEDIATE transaction isolation for monotonic ordering
- Add explicit terminal closure receipt (DAILY_RUN_<run_id>_TERMINAL) committing to required_steps and final_chain_hash
- Upgrade verify_daily_run.py with mode-aware auditing, unresolved symlink guard, and process-liveness aware stale janitor
- Inject interactive session decisions projection into generate_reports.py
- Add comprehensive adversarial unit tests in test_daily_loop_receipts.py
@richfrem
richfrem merged commit 136471a into main Sep 6, 2026
1 check passed
@richfrem
richfrem deleted the feat/daily-loop-unification branch September 6, 2026 17:06
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