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>
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
#pragma once
|
|
// Step 1537: debug guidance packet model.
|
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
#include "DebugPolicyConstraint.h"
|
|
#include "DebugActionBudget.h"
|
|
#include "DebugRecoveryAdvisor.h"
|
|
#include "DebugStopReasonClassifier.h"
|
|
|
|
struct DebugGuidancePacket {
|
|
DebugPolicyConstraint constraints;
|
|
DebugActionBudget budget;
|
|
DebugRecoveryAdvice recovery;
|
|
DebugStopReason stopReason;
|
|
};
|
|
|
|
class DebugGuidancePacketModel {
|
|
public:
|
|
static DebugGuidancePacket build(const DebugPolicyConstraint& constraints,
|
|
const DebugActionBudget& budget,
|
|
const DebugRecoveryAdvice& recovery,
|
|
const DebugStopReason& stopReason) {
|
|
return {constraints, budget, recovery, stopReason};
|
|
}
|
|
|
|
static nlohmann::json toJson(const DebugGuidancePacket& p) {
|
|
return {
|
|
{"constraints", DebugPolicyConstraintModel::toJson(p.constraints)},
|
|
{"budget", DebugActionBudgetModel::toJson(p.budget)},
|
|
{"recovery", DebugRecoveryAdvisor::toJson(p.recovery)},
|
|
{"stop_reason", DebugStopReasonClassifier::toJson(p.stopReason)}
|
|
};
|
|
}
|
|
};
|