Implement Curriculum Stability Envelope with fingerprinting and promotion guards#39
Draft
Copilot wants to merge 3 commits into
Draft
Implement Curriculum Stability Envelope with fingerprinting and promotion guards#39Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Co-authored-by: helpfuldolphin <230910712+helpfuldolphin@users.noreply.github.com>
Co-authored-by: helpfuldolphin <230910712+helpfuldolphin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Curriculum Stability Envelope module with fingerprint regression testing
Implement Curriculum Stability Envelope with fingerprinting and promotion guards
Dec 7, 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pull Request Template
Summary
Implements Phase IV Curriculum Stability Envelope: automated fingerprinting, invariant validation, and promotion guards to prevent curriculum regressions. Blocks promotions when >N slices change, gate thresholds shift >10%, or slices are removed/renamed.
Strategic Impact
Differentiator Tag: [X] [FM] [ ] [POA] [ ] [ASD] [ ] [RC] [ ] [ME] [ ] [IVL] [ ] [NSF]
Strategic Value: Extends RFL curriculum control with forward-looking consistency guarantees, preventing parameter drift that could invalidate experimental preregistration
Acquisition Narrative: Demonstrates rigorous curriculum governance required for FDA/regulatory-grade ML systems—curriculum changes are fingerprinted, diff'd, and blocked if they violate stability invariants before ever reaching production
Measurable Outcomes:
Doctrine Alignment: Formal Methods—curriculum configurations are treated as code with versioning, hashing, and attestation. Automation—CLI tools enforce invariants without manual review.
Scope
Type: [X] Feature [ ] Bug Fix [ ] Performance [ ] Documentation [ ] Operations [ ] Quality Assurance
Components Modified:
Files Changed:
curriculum/stability_envelope.py- Core fingerprinting, diffing, invariant validation, promotion guardcurriculum/cli.py- CLI commands: validate-invariants, stability-envelope, diff-fingerprintcurriculum/__init__.py- Export new functions for public APItests/test_curriculum_stability_envelope.py- 34 tests covering fingerprinting, validation, CLIcurriculum/STABILITY_ENVELOPE.md- API reference, usage patterns, CI integration guideexamples/curriculum_stability_example.py- Working demonstration scriptRisk Assessment
Risk Level: [X] Low [ ] Medium [ ] High
Potential Impact:
Rollback Plan:
Test Plan
Unit Tests
Test Results:
Integration Testing
Performance Testing (if applicable)
Conflict Watch
Files Also Modified by Other PRs:
Coordination Notes:
Checklist
Code Quality
Documentation
Security
Performance
Deployment
Additional Notes
Key Implementation Details
Canonical Normalization: Fingerprints sort slices by name, params by key, gates alphabetically. Floats rounded to 10 decimals to avoid FP drift.
Invariant Validation:
Promotion Guard:
CLI Usage Pattern
Test Coverage Breakdown
Reviewer Notes:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.