1 · Host and runtime hooksSessionStart: naming → session_bearing.py. UserPromptSubmit: compaction_probe.py → dhf_preprompt.py, which the owner has turned off on the reference machine. PreToolUse: harness_guard.py. PostToolUse: harness_observer.py. On Claude Code the Guard is one PreToolUse hook installed in the repository.
2 · Generic router and repo adaptersThe generic dispatcher honors opt-out first, lazily delegates known repositories, and otherwise routes explicit DHF work by lifecycle stage. Project paths, fixtures, commands, and business boundaries stay in repo-specific adapters.
3 · Lifecycle and specialist workflowsEight normalized stages—research, requirements, planning, development, validation, review, ship, handoff—select planning, TDD, QA, security, release, documentation, or deterministic helpers.
4 · Durable governance and evidenceharness_recover.py, harness_checkpoint.py, harness_ledger.py, harness_transition.py, harness_eval.py, schemas, state logs, and fresh four-field verification receipts make work recoverable and auditable.
5 · Distribution boundarycodex/ is repository source. ~/.codex is machine runtime. Promotion is explicit, targeted, reversible, and needs the owner to approve the source digest first. The Claude Code adapter travels with a repository instead. The independent core is released by tag from the public repository, with a sha256 manifest; MyCodexEnv pins one release and checks every file it takes. Public docs are a separate publication lane.