All 161 task packages, including the 21 batch 6 C++17 tasks that passed
gates 1/2, are now in Git. rollout.catalog builds docs/task-catalog.{json,md}
from the task packages, a fresh trace5 calibration (128/128 PASS), every
verified controller receipt on the current task digest, documented holds
and digest-bound difficulty reviews. 123 tasks are usable (6 HARD),
5 are on hold and 33 still need a subprocess-only grader.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
1.1 KiB
C++
24 lines
1.1 KiB
C++
#include "overlay_internal.hpp"
|
|
|
|
namespace overlay_relocation {
|
|
int apply_overlay(const Tree& base, const Tree& overlay, Tree& output) {
|
|
output = Tree{};
|
|
detail::Budget combined;
|
|
detail::Catalog base_index;
|
|
detail::Catalog overlay_index;
|
|
if (!detail::input_tree(base, base_index, combined) ||
|
|
!detail::input_tree(overlay, overlay_index, combined)) return invalid;
|
|
if (!detail::base_catalog(base_index) || !detail::overlay_catalog(overlay_index)) return invalid;
|
|
std::vector<detail::Patch> patches;
|
|
if (!detail::collect_patches(overlay_index, patches)) return invalid;
|
|
detail::Nodes working;
|
|
if (!detail::relocate(base_index, overlay_index, patches, working)) return invalid;
|
|
std::map<std::string, std::string> targets;
|
|
if (!detail::fragment_targets(base_index, overlay_index, working, targets)) return invalid;
|
|
detail::Nodes merged;
|
|
if (!detail::merge(base_index, overlay_index, working, targets, merged)) return invalid;
|
|
output = detail::output_tree(merged);
|
|
return ok;
|
|
}
|
|
} // namespace overlay_relocation
|