CC2.0 VERIFY Function Skill
Function: VERIFY - Validation, Testing & Quality Assurance
Category Theory: Applicative Functor (pure, ap, parallel composition)
Purpose: Ensure correctness through testing, validation, and debugging
Status: ✅ Production-Ready (410 lines, all applicative laws verified)
Local Installation: /Users/manu/cc2.0
Environment Variable: export CC2_HOME=/Users/manu/cc2.0
The Eternal Function
Universal Question: Does it actually work?
This function captures the timeless human activity of validating correctness. Across all domains and eras, humans verify that what was built matches what was intended and works as expected. VERIFY is the bridge from "what we have" to "what we trust."
Universality Across Domains
| Domain |
VERIFY Applies To |
Core Operation |
| Medicine |
Treatment validation, outcome assessment, adverse event monitoring |
Verify clinical outcomes match treatment plan, patient improving |
| Business |
Performance auditing, KPI validation, ROI verification |
Verify business results match objectives, targets met |
| Science |
Experimental validation, result replication, hypothesis testing |
Verify results reproducible, hypothesis supported |
| Education |
Assessment, evaluation, learning outcome measurement |
Verify student learning matches objectives, mastery demonstrated |
| Manufacturing |
Quality control, defect detection, specification compliance |
Verify product meets specifications, defects within tolerance |
| Software |
Unit testing, integration testing, validation |
Verify code behavior matches specification, tests pass |
| Law |
Evidence validation, precedent verification, argument soundness |
Verify facts supported by evidence, reasoning sound |
| Architecture |
Structural integrity, code compliance, safety inspection |
Verify structure meets specs, safety codes satisfied |
The Universal Pattern
Expected Outcome → Applicative Verification → Pass/Fail + Issues
(Criteria) → (Parallel Checks) → (Results)
Historical Precedent:
- Ancient Engineering: Roman aqueduct testing (water pressure validation - 312 BCE)
- Scientific Method: Reproducibility requirements (1600s)
- Industrial QC: Statistical process control (1920s)
- Software Testing: Unit testing frameworks (1970s)
The function is eternal; the validation criteria change.
Why This Works Universally
- Applicative Structure: Independent checks run in parallel, accumulate results
- Pure: Same input → same validation result (deterministic)
- Compositional:
verify(check1) <*> verify(check2) combines validations
- Accumulative: Issues from multiple checks aggregate
Software testing = Medical outcome assessment = Manufacturing QC. Same structure, different criteria.
When to Use This Skill
- ✅ Validate correctness - Ensure implementation meets requirements
- 🧪 Run tests - Execute test suites, measure coverage
- 🔍 Debug issues - Investigate failures, identify root causes
- 📊 Quality assurance - Validate metrics, compliance, standards
- ⚡ Parallel validation - Run independent checks concurrently
Building Foundations for Your Domain
Universal Function = Eternal Structure + Domain Foundations
VERIFY is an eternal categorical structure (Applicative Functor). To use it in YOUR domain, construct domain foundations - validation criteria, test types, and quality metrics specific to your field.
The Pattern
VERIFY (Universal Applicative)
⊗
Domain Foundations (Criteria + Checks)
=
Domain Implementation
Foundations by Domain
| Domain |
Foundations to Construct |
Examples |
| Medicine |
Clinical criteria, outcome metrics, safety checks |
Vital signs targets, pain scales, adverse event monitoring |
| Business |
KPI targets, ROI thresholds, performance metrics |
Revenue targets, satisfaction scores, market share |
| Software |
Test frameworks, quality metrics, linters |
CC2.0 provides: Jest, pytest, ESLint, complexity |
| Manufacturing |
Quality standards, tolerance specs, defect limits |
Dimensional tolerances, PPM rates, ISO compliance |
| Education |
Learning objectives, mastery criteria, rubrics |
80% mastery, CCSS alignment, rubric scoring |
| Science |
Hypothesis tests, p-values, replication |
p < 0.05, effect size > 0.5, reproducibility |
| Law |
Evidence standards, precedent alignment |
Preponderance of evidence, stare decisis |
| Architecture |
Building codes, structural loads, safety |
UBC compliance, 1.5x safety factor, seismic |
Related Skills
- cc2-create: Provides implementations to verify
- cc2-reason: Consumes verification failures to plan fixes
- cc2-deploy: Deploys verified implementations
- cc2-learn: Learns from verification patterns
- cc2-orchestrator: Composes VERIFY in test-driven workflows
File References
Implementation: ${CC2_HOME}/src/functions/verify/VerifyFunction.ts (410 lines)
Tests: ${CC2_HOME}/tests/laws/verify-applicative.test.ts
Documentation: ${CC2_HOME}/functions/verify/FUNCTION.md
Status: ✅ Production-Ready
Categorical Rigor: L7 (Maximum)
Test Coverage: 100% (all applicative laws verified)
"To verify is to transform hope into certainty, to bridge belief and knowledge. VERIFY is the applicative functor from specification to confidence, the parallel composition that makes trust possible."
— CC2.0 Categorical Foundations
1---2name: cc2-verify3description: CC2.0 VERIFY Function Skill4---5# CC2.0 VERIFY Function Skill67**Function**: VERIFY - Validation, Testing & Quality Assurance8**Category Theory**: Applicative Functor (pure, ap, parallel composition)9**Purpose**: Ensure correctness through testing, validation, and debugging10**Status**: ✅ Production-Ready (410 lines, all applicative laws verified)1112**Local Installation**: `/Users/manu/cc2.0`13**Environment Variable**: `export CC2_HOME=/Users/manu/cc2.0`1415---1617## The Eternal Function1819**Universal Question**: *Does it actually work?*2021This function captures the timeless human activity of validating correctness. Across all domains and eras, humans verify that what was built matches what was intended and works as expected. VERIFY is the bridge from "what we have" to "what we trust."2223### Universality Across Domains2425| Domain | VERIFY Applies To | Core Operation |26|--------|-------------------|----------------|27| **Medicine** | Treatment validation, outcome assessment, adverse event monitoring | Verify clinical outcomes match treatment plan, patient improving |28| **Business** | Performance auditing, KPI validation, ROI verification | Verify business results match objectives, targets met |29| **Science** | Experimental validation, result replication, hypothesis testing | Verify results reproducible, hypothesis supported |30| **Education** | Assessment, evaluation, learning outcome measurement | Verify student learning matches objectives, mastery demonstrated |31| **Manufacturing** | Quality control, defect detection, specification compliance | Verify product meets specifications, defects within tolerance |32| **Software** | Unit testing, integration testing, validation | Verify code behavior matches specification, tests pass |33| **Law** | Evidence validation, precedent verification, argument soundness | Verify facts supported by evidence, reasoning sound |34| **Architecture** | Structural integrity, code compliance, safety inspection | Verify structure meets specs, safety codes satisfied |3536### The Universal Pattern3738```39Expected Outcome → Applicative Verification → Pass/Fail + Issues40 (Criteria) → (Parallel Checks) → (Results)41```4243**Historical Precedent**:44- **Ancient Engineering**: Roman aqueduct testing (water pressure validation - 312 BCE)45- **Scientific Method**: Reproducibility requirements (1600s)46- **Industrial QC**: Statistical process control (1920s)47- **Software Testing**: Unit testing frameworks (1970s)4849The function is eternal; the validation criteria change.5051### Why This Works Universally52531. **Applicative Structure**: Independent checks run in parallel, accumulate results542. **Pure**: Same input → same validation result (deterministic)553. **Compositional**: `verify(check1) <*> verify(check2)` combines validations564. **Accumulative**: Issues from multiple checks aggregate5758Software testing = Medical outcome assessment = Manufacturing QC. Same structure, different criteria.5960---6162## When to Use This Skill6364- ✅ **Validate correctness** - Ensure implementation meets requirements65- 🧪 **Run tests** - Execute test suites, measure coverage66- 🔍 **Debug issues** - Investigate failures, identify root causes67- 📊 **Quality assurance** - Validate metrics, compliance, standards68- ⚡ **Parallel validation** - Run independent checks concurrently6970---7172## Building Foundations for Your Domain7374**Universal Function = Eternal Structure + Domain Foundations**7576VERIFY is an eternal categorical structure (Applicative Functor). To use it in YOUR domain, construct **domain foundations** - validation criteria, test types, and quality metrics specific to your field.7778### The Pattern7980```81VERIFY (Universal Applicative)82 ⊗83Domain Foundations (Criteria + Checks)84 =85Domain Implementation86```8788### Foundations by Domain8990| Domain | Foundations to Construct | Examples |91|--------|-------------------------|----------|92| **Medicine** | Clinical criteria, outcome metrics, safety checks | Vital signs targets, pain scales, adverse event monitoring |93| **Business** | KPI targets, ROI thresholds, performance metrics | Revenue targets, satisfaction scores, market share |94| **Software** | Test frameworks, quality metrics, linters | **CC2.0 provides**: Jest, pytest, ESLint, complexity |95| **Manufacturing** | Quality standards, tolerance specs, defect limits | Dimensional tolerances, PPM rates, ISO compliance |96| **Education** | Learning objectives, mastery criteria, rubrics | 80% mastery, CCSS alignment, rubric scoring |97| **Science** | Hypothesis tests, p-values, replication | p < 0.05, effect size > 0.5, reproducibility |98| **Law** | Evidence standards, precedent alignment | Preponderance of evidence, stare decisis |99| **Architecture** | Building codes, structural loads, safety | UBC compliance, 1.5x safety factor, seismic |100101---102103## Related Skills104105- **cc2-create**: Provides implementations to verify106- **cc2-reason**: Consumes verification failures to plan fixes107- **cc2-deploy**: Deploys verified implementations108- **cc2-learn**: Learns from verification patterns109- **cc2-orchestrator**: Composes VERIFY in test-driven workflows110111---112113## File References114115**Implementation**: `${CC2_HOME}/src/functions/verify/VerifyFunction.ts` (410 lines)116**Tests**: `${CC2_HOME}/tests/laws/verify-applicative.test.ts`117**Documentation**: `${CC2_HOME}/functions/verify/FUNCTION.md`118119---120121**Status**: ✅ Production-Ready122**Categorical Rigor**: L7 (Maximum)123**Test Coverage**: 100% (all applicative laws verified)124125---126127*"To verify is to transform hope into certainty, to bridge belief and knowledge. VERIFY is the applicative functor from specification to confidence, the parallel composition that makes trust possible."*128129— **CC2.0 Categorical Foundations**