(projectRoot, options = {})
| 145 | } |
| 146 | |
| 147 | function buildTrial(projectRoot, options = {}) { |
| 148 | const root = path.resolve(projectRoot || process.cwd()); |
| 149 | const task = options.task || DEFAULT_TASK; |
| 150 | const proof = buildProof(root, { |
| 151 | routeRequest: task, |
| 152 | runVerification: Boolean(options.runVerification), |
| 153 | now: options.now, |
| 154 | }); |
| 155 | const criteria = buildCriteria(proof); |
| 156 | const decision = decideTrial(proof, criteria); |
| 157 | |
| 158 | return { |
| 159 | evidenceKind: 'readiness-inspection', |
| 160 | claimBoundary: 'Engineering readiness only; not comparative or real-user utility evidence.', |
| 161 | generatedAt: options.now || proof.generatedAt, |
| 162 | projectRoot: root, |
| 163 | task, |
| 164 | decision: decision.status, |
| 165 | nextAction: decision.nextAction, |
| 166 | score: score(criteria), |
| 167 | proofStatus: proof.status, |
| 168 | criteria, |
| 169 | proofSummary: proof.summary, |
| 170 | }; |
| 171 | } |
| 172 |
no test coverage detected