Files
whetstone_DSL/editor/src/graduation/ReleaseReadinessScoreboard.h
Bill 1696b92bb8 Add Sprints 46-59: governance, porting foundation, and language graduation prep (Steps 689-828)
Sprints 46-58 implement the cross-language porting foundation: language-to-IR
adapters, equivalence checking, gate validation, legacy ingestion, managed/dynamic
families, low-level/logic-actor semantics, debug workflow tooling, AST-native
family tools, Rust/CPP raising tools, system-level orchestration, query family,
and porting gates. Sprint 59 adds the governance layer (policy packs, review
boards, waiver packets, ambiguity triage, decision ledger) with the
whetstone_review_porting_decision MCP tool.

Also includes: sprint plans 46-130, MCP taskitem pipeline scripts,
CLAUDE.md, docs, and full test matrix (steps 689-828).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 13:18:10 -07:00

47 lines
1.6 KiB
C++

#pragma once
// Step 832: Release readiness scoreboard.
#include <string>
#include <vector>
#include <nlohmann/json.hpp>
struct ReadinessScore {
std::string pairId;
int testCoverage = 0; // 0-100
int docCompleteness = 0;
int gatePassRate = 0;
int overallScore = 0;
std::string tier;
bool releaseReady = false;
};
class ReleaseReadinessScoreboard {
public:
static ReadinessScore compute(const std::string& pairId,
int testCoverage, int docCompleteness, int gatePassRate) {
ReadinessScore s;
s.pairId = pairId;
s.testCoverage = testCoverage;
s.docCompleteness = docCompleteness;
s.gatePassRate = gatePassRate;
s.overallScore = (testCoverage + docCompleteness + gatePassRate) / 3;
s.releaseReady = s.overallScore >= 80;
s.tier = s.overallScore >= 90 ? "stable" : (s.overallScore >= 70 ? "beta" : "experimental");
return s;
}
static std::vector<ReadinessScore> rank(std::vector<ReadinessScore> scores) {
std::sort(scores.begin(), scores.end(),
[](const ReadinessScore& a, const ReadinessScore& b) {
return a.overallScore > b.overallScore;
});
return scores;
}
static nlohmann::json toJson(const ReadinessScore& s) {
return {{"pair_id", s.pairId}, {"test_coverage", s.testCoverage},
{"doc_completeness", s.docCompleteness}, {"gate_pass_rate", s.gatePassRate},
{"overall_score", s.overallScore}, {"tier", s.tier},
{"release_ready", s.releaseReady}};
}
};