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:
44
editor/src/debug/DebugRecoveryAdvisor.h
Normal file
44
editor/src/debug/DebugRecoveryAdvisor.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#pragma once
|
||||
// Step 1531: debug recovery advisor model.
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
struct DebugRecoveryAdvice {
|
||||
std::string category = "generic";
|
||||
std::vector<std::string> actions;
|
||||
};
|
||||
|
||||
class DebugRecoveryAdvisor {
|
||||
public:
|
||||
static DebugRecoveryAdvice advise(const std::string& stopReason) {
|
||||
DebugRecoveryAdvice a;
|
||||
a.category = stopReason;
|
||||
if (stopReason == "budget_exhausted") {
|
||||
a.actions = {
|
||||
"Reduce context budget to tiny",
|
||||
"Replay last checkpoint",
|
||||
"Prioritize highest-severity target"
|
||||
};
|
||||
} else if (stopReason == "policy_violation") {
|
||||
a.actions = {
|
||||
"Rollback last patch",
|
||||
"Constrain file scope",
|
||||
"Re-run regression guard"
|
||||
};
|
||||
} else {
|
||||
a.actions = {
|
||||
"Capture fresh failure packet",
|
||||
"Re-cluster failures",
|
||||
"Escalate to guarded review"
|
||||
};
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
static nlohmann::json toJson(const DebugRecoveryAdvice& a) {
|
||||
return {{"category", a.category}, {"actions", a.actions}};
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user