You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements Phase III U2 orchestration: single-shot experiment runner producing structured summaries and evidence feeds for D3 governance integration. No uplift claims—all outputs neutral, Phase II labeled, ready for statistical analysis gates.
Strategic Impact
Differentiator Tag: [X] [FM]
Strategic Value: Demonstrates rigorous experimental methodology with reproducible orchestration, checkpointed execution, and evidence-based governance—establishing formal verification posture for RFL research claims.
Acquisition Narrative: Enterprise-grade experiment orchestration with deterministic PRNG, snapshot/resume capability, and neutral evidence feeds positions MathLedger as research infrastructure with audit trails and reproducibility guarantees.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TASK 2 — Orchestrated Run Mode
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Add a top-level CLI mode, e.g.:
uv run python experiments/run_uplift_u2.py orchestrate \
--slice slice_uplift_goal \
--cycles 50 \
--require-calibration \
--out-dir artifacts/uplift_runs/run_001
Behavior:
Ensures calibration, then baseline, then RFL run.
Produces a single run_summary.json using build_u2_run_summary().
Does not compute uplift; just organizes outputs and verification hooks.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TASK 3 — Evidence Feed for D3 / Governance
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Add:
summarize_u2_run_for_evidence(run_summary: Dict[str, Any]) -> Dict[str, Any]:
has_all_required_artifacts: bool
calibration_ok: bool (if flagged)
ready_for_bootstrap: bool
notes: short neutral strings.
Document how this is intended to be consumed by D3’s build_evidence_pack().
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DEFINITION OF DONE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ U2 run summary contract implemented + tests
✓ Orchestrated run mode implemented + tests
✓ Evidence summary helper implemented + tests
✓ No uplift claims; Phase II labeling preserved
⏹️ End custom agent: rfl-uplift-experiments
Custom agent used: rfl-uplift-experiments
Assists with designing, executing, and analyzing Phase II U2 uplift experiments. Suggests runner commands, inspects experiment logs for pathologies (empty results, degenerate policies, metric anomalies), and helps draft preregistration entries. Does NOT interpret results as uplift evidence until all gates (G1-G5) pass.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
CopilotAI
changed the title
(削除) [WIP] Add U2 run summary contract for uplift experiments (削除ここまで)
(追記) Phase III U2 Experiment Orchestrator & Evidence Feed (追記ここまで)
Dec 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Implements Phase III U2 orchestration: single-shot experiment runner producing structured summaries and evidence feeds for D3 governance integration. No uplift claims—all outputs neutral, Phase II labeled, ready for statistical analysis gates.
Strategic Impact
Differentiator Tag: [X] [FM]
Strategic Value: Demonstrates rigorous experimental methodology with reproducible orchestration, checkpointed execution, and evidence-based governance—establishing formal verification posture for RFL research claims.
Acquisition Narrative: Enterprise-grade experiment orchestration with deterministic PRNG, snapshot/resume capability, and neutral evidence feeds positions MathLedger as research infrastructure with audit trails and reproducibility guarantees.
Measurable Outcomes:
Doctrine Alignment: Formal methods (reproducible experiments), automation (orchestrated runs), metrics (structured telemetry), reliability (snapshot/resume), security (Phase II isolation, no uplift claims).
Scope
Type: [X] Feature [ ] Bug Fix [ ] Performance [ ] Documentation [ ] Operations [ ] Quality Assurance
Components Modified:
Files Changed:
Created (13 files):
experiments/u2/runner.py- U2Runner with baseline/RFL modes, snapshot support, policy-driven selectionexperiments/u2/snapshots.py- Snapshot save/load/rotate with SHA256 checksumsexperiments/u2/logging.py- Structured JSONL trace logger with event filteringexperiments/u2/schema.py- Event schema definitions (SessionStart, SessionEnd, CycleTelemetry)rfl/prng/deterministic_prng.py- Hierarchical PRNG with path-based seedingbackend/verification/budget_loader.py- Phase II budget enforcementtests/test_u2_orchestration.py- 11 tests covering contracts, guardrailsdocs/PHASE2_U2_EVIDENCE_FEED.md- D3 integration guideconfig/verifier_budget_phase2.yaml- Budget config exampleModified (1 file):
experiments/run_uplift_u2.py- Added orchestrate command, build_u2_run_summary(), summarize_u2_run_for_evidence()Risk Assessment
Risk Level: [X] Low [ ] Medium [ ] High
Potential Impact:
runcommand preserved, neworchestratecommand additiveRollback Plan:
Test Plan
Unit Tests
Test Results:
Integration Testing
Performance Testing
Conflict Watch
Files Also Modified by Other PRs: None
Coordination Notes:
Checklist
Code Quality
Documentation
Security
Performance
Deployment
Additional Notes
Orchestration Flow
Produces:
Evidence Feed Contract
Guardrails Enforced
Performance Metrics
Reviewer Notes:
orchestratecommand, existingruncommand unchangedWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
astral.sh/usr/bin/curl curl -LsSf REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.