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>
This commit is contained in:
29
editor/src/debug/CampaignProgressTracker.h
Normal file
29
editor/src/debug/CampaignProgressTracker.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
// Step 1492: campaign progress tracker.
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
struct CampaignProgress {
|
||||
std::string campaignId;
|
||||
int totalTargets = 0;
|
||||
int completedTargets = 0;
|
||||
int greenTargets = 0;
|
||||
int escalatedTargets = 0;
|
||||
bool stopped = false;
|
||||
};
|
||||
|
||||
class CampaignProgressTracker {
|
||||
public:
|
||||
static double percent(const CampaignProgress& p) {
|
||||
if (p.totalTargets <= 0) return 0.0;
|
||||
return 100.0 * p.completedTargets / p.totalTargets;
|
||||
}
|
||||
|
||||
static nlohmann::json toJson(const CampaignProgress& p) {
|
||||
return {{"campaign_id", p.campaignId}, {"total_targets", p.totalTargets}, {"completed_targets", p.completedTargets},
|
||||
{"green_targets", p.greenTargets}, {"escalated_targets", p.escalatedTargets},
|
||||
{"stopped", p.stopped}, {"percent", percent(p)}};
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user