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>
35 lines
971 B
C++
35 lines
971 B
C++
#pragma once
|
|
// Step 1475: debug benchmark harness.
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
#include "FailureFixtureCatalog.h"
|
|
#include "FailurePacket.h"
|
|
|
|
struct DebugBenchmarkResult {
|
|
int fixtureCount = 0;
|
|
int packetizedCount = 0;
|
|
bool success = false;
|
|
};
|
|
|
|
class DebugBenchmarkHarness {
|
|
public:
|
|
static DebugBenchmarkResult run(const std::vector<FailureFixture>& fixtures) {
|
|
DebugBenchmarkResult r;
|
|
r.fixtureCount = static_cast<int>(fixtures.size());
|
|
for (const auto& f : fixtures) {
|
|
auto p = FailurePacketModel::make(f.command, f.raw, f.exitCode);
|
|
if (!p.packetId.empty()) ++r.packetizedCount;
|
|
}
|
|
r.success = r.packetizedCount == r.fixtureCount;
|
|
return r;
|
|
}
|
|
|
|
static nlohmann::json toJson(const DebugBenchmarkResult& r) {
|
|
return {{"fixture_count", r.fixtureCount}, {"packetized_count", r.packetizedCount}, {"success", r.success}};
|
|
}
|
|
};
|