CODEX provides GitHub interface and authentication utilities for both GitHub.com and GitHub Enterprise Server without duplicating implementation logic. This repository also carries Wave W000 federation/runtime/telemetry bootstrap assets, but the published Python package remains the GitHub interface package described below.
Operating model: CODEX is a governed federation-runtime repository where CI is the truth-verification gate, Pages is the human-facing portal, DMAIC is the iteration ledger, and bridge/federation outputs are the measurable integration layer. See
GOVERNANCE.mdfor repository identity, the workflow → lane map, and the CI-vs-CD contract.
CODEX now includes the MASTER Contract Workbench framework under MASTER_input/. The framework treats YAML as the governing Single Source of Truth for pre-award, negotiation, award and execution lifecycle management, then generates synchronized Excel, HTML, trace report, dashboard and checkpoint artefacts as derivatives.
python scripts/generate_contract_workbench.py
python scripts/check_contract_workbench.pyThe generated artefacts remain non-authoritative; all edits must be merged back through approved change requests in the YAML SSOT. Generated payloads under MASTER_input/generated/ and runtime checkpoints under MASTER_input/checkpoints/ are intentionally ignored so binary workbooks and other derivative files do not drift from the YAML source. The guard proves deterministic on-demand generation by comparing portable manifests and SHA-256 output hashes from two temporary generations, reuses existing manifest timestamps for workspace comparisons, and fails if existing generated workspace payloads no longer match regenerated hashes.
This repository now includes a federation bootstrap wave (W000-FEDERATED-SEMANTIC-TRACE) to bridge ABACUS, CODEX, and daily chat interaction with dual-render governance:
- Human semantic readability first
- Machine-sequential telemetry for orchestration
- Prefix-driven traceability (
[TOPIC],[TRACE],[WAVE],[DRIFT], etc.) - Completion-vector oriented runtime scoring
Bootstrap artifacts are staged in:
.devcontainer/devcontainer.jsonfederation/semantic_index/schema.yamltelemetry/pca/drift_monitor.pyagents/codex/MCP_INSTRUCTION.mdagents/abacus/FEDERATION_PROTOCOL.md.github/pull_request_template.mdruntime/incubator/.gitkeep
The W000 assets are a mix of scaffolding and real executable code:
- Executable build-out:
telemetry/pca/drift_monitor.pynow accepts--baselineand--currentJSON metric inputs and emits a structured drift report. - Contract scaffolding:
federation/semantic_index/schema.yamldefines the dual-render tuple contract and example prefixes. - Process guidance:
agents/codex/MCP_INSTRUCTION.mdandagents/abacus/FEDERATION_PROTOCOL.mddocument the federation metadata, lineage, and drift conventions. - Documentation freshness: repository checks keep documentation and published paths non-stale via manifest, glob, stale, and link validation.
- Inputs: two JSON files supplied through
--baselineand--current - Output: a JSON report containing per-dimension deltas, aggregate
drift_variance, and a bounded drift snapshot/state - Process tracking: covered by
tests/test_drift_monitor.pyand validated with the existing repository governance checks
python -m pip install -e '.[dev]'from src import GitHubAuthenticator, GitHubInterface
interface = GitHubInterface()
authenticator = GitHubAuthenticator(interface)
print(interface.api_url)
print(interface.test_connection())from src import GitHubInterface
interface = GitHubInterface(
base_url="https://github.company.com",
enterprise_mode=True,
)
print(interface.api_url)cd examples
python usage_example.pypython -m pytest -q tests/test_drift_monitor.py
python scripts/check_manifest.py
python scripts/check_globs.py
python scripts/check_stale.py
python scripts/check_links.pyABACUS owns contract data. CODEX owns automation. ARTSTYLE owns visualization.
The MASTER Contract Governance Workbench uses YAML SSOT as the authoritative contract-follow-up record. Excel, HTML, dashboards, and reports are generated outputs only, and any direct edits to those generated outputs must become change requests back into SSOT.
- Selection complete
- Applicant notification complete
- ITT issued
- Clarification period active
- Applicant offers expected July 2026
- Negotiation Round 1
- Negotiation Round 2
- BAFO
- Award recommendation
- Contract award
- PO target 01-Jan-2027
- Execution: 34 calendar months, 6 phases
MASTER_input/00_ITT_RELEASE_BASELINE/is locked baseline material.- Do not overwrite released ITT documents.
- All updates must be additive.
- YAML SSOT is authoritative.
- Excel, HTML, dashboards and reports are generated outputs only.
- Any Excel or HTML edits must become change requests back into SSOT.
- Preserve lineage from source document → requirement → clarification → applicant response → evaluation → negotiation → BAFO → award → execution deliverable.