Skip to content

Validate consensus summaries, enforce replay/keys, add experiments/tools/tests#66

Open
pdxvoiceteacher wants to merge 1 commit into
masterfrom
codex/run-experiments-flny5m
Open

Validate consensus summaries, enforce replay/keys, add experiments/tools/tests#66
pdxvoiceteacher wants to merge 1 commit into
masterfrom
codex/run-experiments-flny5m

Conversation

@pdxvoiceteacher
Copy link
Copy Markdown
Owner

Motivation

  • Harden submission ingest by validating consensus summary schemas (v1/v2), detecting expired/replayed or revoked/unknown key IDs, and scaffolding future enforcement.
  • Prevent governance coupling to cognition artifacts by explicitly ignoring them during ingest while recording artifact boundary information.
  • Add experiments and demo tooling to exercise Lambda spike and no-teleport checks and provide canonical fixtures for testing.

Description

  • Implemented consensus handling and replay protection in tools/telemetry/ingest_submission.py including validate_consensus_summary, inspect_consensus_key_id, _bundle_hash, _check_replay_window, is_consensus_v2_expired, known/revoked key lists, a 24h REPLAY_WINDOW, and artifact boundary inspection that ignores cognition_ artifacts.
  • Extended ucc runtime behavior in ucc/src/ucc/core.py to populate context["metrics"] from ingest_json input and to default sections_key for coherence_audit steps.
  • Added tests and fixtures for consensus routing and ingest: new tests tests/test_consensus_schema_routing.py, tests/test_ingest_consensus_smoke.py, and tests/test_ingest_ignores_cognition_artifacts.py plus multiple consensus fixture JSON files.
  • Added experiment configs, tasks, and small tools: experiments/* modules and inputs, tools/telemetry/generate_lambda_spike.py, tools/telemetry/demo_no_teleport.py, new example submission examples/submission_lambda_spike with artifact drift_series.json, and ucc task ucc/tasks/experiments/lambda_spike_task.json.
  • Updated CI workflow .github/workflows/ingest_smoke.yml to install test deps and run the new consensus/ingest tests; cleaned minor .gitignore and normalized example JSON formatting.

Testing

  • Ran the new unit tests with python -m pytest -q tests/test_consensus_schema_routing.py tests/test_ingest_consensus_smoke.py tests/test_ingest_ignores_cognition_artifacts.py and they passed.
  • CI workflow updated to install dependencies and execute the above pytest invocation as part of the ingest smoke job (tests included in workflow).

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant