Summary
Implements TDA-aware evidence fusion for Phase II multi-run experiments. Detects misalignment between uplift metrics and TDA outcomes, enabling early detection of hidden instabilities before promotion decisions.
Strategic Impact
Differentiator Tag: [X] [FM] [X] [ASD]
Strategic Value: Formalizes evidence synthesis with automated conflict detection, reducing promotion risk through systematic TDA/uplift alignment checks.
Acquisition Narrative: Demonstrates rigorous evidence-based promotion workflow with automated safety gates—critical for scaling experiment throughput while maintaining reliability standards.
Measurable Outcomes:
- Advisory precheck with 100% deterministic exit codes (0/1/2)
- Detects 2 classes of misalignment: TDA conflicts + hidden instability
- Zero false negatives in validation (15+ test scenarios)
Doctrine Alignment: Formal methods (alignment rules), automation (CLI tooling), metrics (HSS thresholds), reliability (advisory-only blocking)
Scope
Type: [X] Feature [X] Quality Assurance
Components Modified:
Files Changed:
experiments/evidence_fusion.py - Core fusion logic with conflict detection (368 lines)
experiments/promotion_precheck.py - CLI tool for advisory precheck (191 lines)
tests/test_evidence_fusion.py - Comprehensive test suite (402 lines)
experiments/EVIDENCE_FUSION_README.md - Complete usage documentation (312 lines)
experiments/sample_evidence_*.json - Test data for 3 scenarios (OK/WARN/BLOCK)
experiments/test_evidence_examples.sh - Automated example workflow
IMPLEMENTATION_SUMMARY.md - Validation report (232 lines)
Implementation
Extended Schema
Each run carries structured uplift + TDA metrics:
{
"run_id": "U2_EXP_001_seed_42",
"uplift": {
"delta_p": 0.12,
"abstention_rate": 0.23,
"promotion_decision": "PASS" # or WARN, BLOCK
},
"tda": {
"HSS": 0.85, # Hidden State Score
"block_rate": 0.0,
"tda_outcome": "OK" # or ATTENTION, BLOCK
}
}
Conflict Detection
fuse_evidence_summaries() applies two detection rules:
- TDA Conflict:
PASS uplift + BLOCK TDA → conflicted_runs[]
- Hidden Instability:
PASS uplift + HSS < threshold → hidden_instability_runs[]
Alignment status computed with precedence: BLOCK > WARN > OK
Promotion Precheck CLI
Advisory-only tool with deterministic exit codes:
# Fuse multi-run evidence
python3 experiments/evidence_fusion.py runs.json fused.json --hss-threshold 0.7
# Run precheck
python3 experiments/promotion_precheck.py fused.json
# Exit 0: OK or WARN (proceed with caution)
# Exit 1: BLOCK (advisory - investigate TDA conflict)
# Exit 2: ERROR (system/config issue)
Example Output
BLOCK scenario (PASS uplift but TDA blocks):
✗ BLOCK: Uplift/TDA conflict detected
• run_003: uplift=PASS, TDA=BLOCK, HSS=0.850, block_rate=0.300
Exit code: 1 (advisory BLOCK: TDA conflict)
WARN scenario (PASS uplift but low HSS):
⚠️ WARNING: Hidden instability detected
• run_002: uplift=PASS, HSS=0.550 (below threshold)
Exit code: 0 (OK with warnings)
Risk Assessment
Risk Level: [X] Low
Potential Impact:
Rollback Plan:
Test Plan
Unit Tests
# Core functionality tests
python3 -c "
from experiments.evidence_fusion import *
run = RunEvidence(
run_id='test',
uplift=UpliftMetrics(0.1, 0.2, PromotionDecision.PASS),
tda=TDAMetrics(0.5, 0.0, TDAOutcome.OK)
)
fused = fuse_evidence_summaries([run], hss_threshold=0.7)
assert fused.tda_alignment.alignment_status == AlignmentStatus.WARN
"
# Automated example workflow
bash experiments/test_evidence_examples.sh
Test Results:
Integration Testing
Performance Testing
Conflict Watch
Files Also Modified by Other PRs:
- N/A - All files are new additions
Coordination Notes:
Checklist
Code Quality
Documentation
Security
Performance
Deployment
Additional Notes
Validation Summary
All 5 requirements from problem statement validated:
- ✅ Extended schema with uplift + TDA fields
- ✅ Inconsistency detection in
fuse_evidence_summaries()
- ✅ Alignment rules (BLOCK/WARN/OK with precedence)
- ✅ Promotion precheck CLI with advisory blocking
- ✅ Comprehensive tests (15+ unit, 4 integration)
Design Constraints
- Advisory-only: Exit code 1 is advisory BLOCK, not hard gate
- No uplift claims: Tool detects misalignment only, does not certify success
- Configurable HSS threshold: Default 0.7, adjustable per experiment requirements
- Phase II labeled: All files marked "PHASE II — NOT YET ACTIVATED"
Quick Start
# Test all scenarios
bash experiments/test_evidence_examples.sh
# Manual workflow
python3 experiments/evidence_fusion.py input.json output.json
python3 experiments/promotion_precheck.py output.json
Reviewer Notes:
- Zero modifications to existing code—purely additive
- Self-contained Phase II functionality (no activation in Phase I)
- All tests pass with stdlib-only dependencies
- Ready for integration into experiment workflow
Original prompt
4️⃣ Agent:
rfl-uplift-experiments
(Multi-Run Fusion & Evidence Pre-Check)
Current: Started integrating TDA governance into evidence fusion.
Next: Finish TDA-aware fusion & precheck.
✅ Follow-up prompt for
rfl-uplift-experiments
STRATCOM: EVIDENCE ORDER — TDA-AWARE FUSION.
Status: You began integrating TDA into evidence fusion. Now we finish it.
Mission: Make fuse_evidence_summaries() TDA-aware, and extend the promotion precheck — advisory only, no hard gating.
- Extend evidence summary schema
For each run in your multi-run summary, ensure you carry:
{
"run_id": "...",
"uplift": {
"delta_p": ...,
"abstention_rate": ...,
"promotion_decision": "PASS|WARN|BLOCK"
},
"tda": {
"HSS": ...,
"block_rate": ...,
"tda_outcome": "OK|ATTENTION|BLOCK"
}
}
2. Inconsistency detection
In fuse_evidence_summaries():
Identify runs where:
uplift says PASS but tda.tda_outcome == "BLOCK" → mark as uplift/TDA conflict
uplift says PASS but HSS < threshold → flag as hidden instability
Summarize as:
"tda_alignment": {
"conflicted_runs": [...],
"hidden_instability_runs": [...],
"alignment_status": "OK|WARN|BLOCK"
}
Alignment rule:
BLOCK if any conflicted_runs
WARN if only hidden_instability_runs
OK otherwise
- Promotion precheck extension
In your CLI "promotion precheck":
Load fused summary
If alignment_status == "BLOCK":
Exit non-zero (but log as "advisory BLOCK: TDA conflict")
If alignment_status == "WARN":
Exit zero, but print warning to stderr
Constraint: Do not claim "uplift achieved"; your job is to detect misalignment, not to certify success.
- Tests
Add coverage for:
PASS uplift + OK TDA → alignment OK
PASS uplift + BLOCK TDA → alignment BLOCK
PASS uplift + low HSS → alignment WARN
CLI precheck exits correctly in all 3 cases
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.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Implements TDA-aware evidence fusion for Phase II multi-run experiments. Detects misalignment between uplift metrics and TDA outcomes, enabling early detection of hidden instabilities before promotion decisions.
Strategic Impact
Differentiator Tag: [X] [FM] [X] [ASD]
Strategic Value: Formalizes evidence synthesis with automated conflict detection, reducing promotion risk through systematic TDA/uplift alignment checks.
Acquisition Narrative: Demonstrates rigorous evidence-based promotion workflow with automated safety gates—critical for scaling experiment throughput while maintaining reliability standards.
Measurable Outcomes:
Doctrine Alignment: Formal methods (alignment rules), automation (CLI tooling), metrics (HSS thresholds), reliability (advisory-only blocking)
Scope
Type: [X] Feature [X] Quality Assurance
Components Modified:
Files Changed:
experiments/evidence_fusion.py- Core fusion logic with conflict detection (368 lines)experiments/promotion_precheck.py- CLI tool for advisory precheck (191 lines)tests/test_evidence_fusion.py- Comprehensive test suite (402 lines)experiments/EVIDENCE_FUSION_README.md- Complete usage documentation (312 lines)experiments/sample_evidence_*.json- Test data for 3 scenarios (OK/WARN/BLOCK)experiments/test_evidence_examples.sh- Automated example workflowIMPLEMENTATION_SUMMARY.md- Validation report (232 lines)Implementation
Extended Schema
Each run carries structured uplift + TDA metrics:
{ "run_id": "U2_EXP_001_seed_42", "uplift": { "delta_p": 0.12, "abstention_rate": 0.23, "promotion_decision": "PASS" # or WARN, BLOCK }, "tda": { "HSS": 0.85, # Hidden State Score "block_rate": 0.0, "tda_outcome": "OK" # or ATTENTION, BLOCK } }Conflict Detection
fuse_evidence_summaries()applies two detection rules:PASSuplift +BLOCKTDA →conflicted_runs[]PASSuplift +HSS < threshold→hidden_instability_runs[]Alignment status computed with precedence:
BLOCK>WARN>OKPromotion Precheck CLI
Advisory-only tool with deterministic exit codes:
Example Output
BLOCK scenario (PASS uplift but TDA blocks):
WARN scenario (PASS uplift but low HSS):
Risk Assessment
Risk Level: [X] Low
Potential Impact:
Rollback Plan:
Test Plan
Unit Tests
Test Results:
Integration Testing
Performance Testing
Conflict Watch
Files Also Modified by Other PRs:
Coordination Notes:
Checklist
Code Quality
Documentation
Security
Performance
Deployment
Additional Notes
Validation Summary
All 5 requirements from problem statement validated:
fuse_evidence_summaries()Design Constraints
Quick Start
Reviewer Notes:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.