Compose name-first form write plans

This commit is contained in:
2026-07-26 17:30:04 +03:00
parent c1d5d06f6d
commit 39c8c4ab18
6 changed files with 603 additions and 10 deletions
+9 -1
View File
@@ -147,7 +147,7 @@ function Assert-SelectorChainReport {
if (-not $report.coverage) {
throw "$Label report is missing coverage: $Path"
}
foreach ($section in @("resolve_overrides", "saved_state_resolution", "write_plan_composition", "skips")) {
foreach ($section in @("resolve_overrides", "saved_state_resolution", "write_plan_composition", "form_write_plan_composition", "skips")) {
if ($report.coverage.PSObject.Properties.Name -notcontains $section) {
throw "$Label report coverage is missing '$section': $Path"
}
@@ -155,6 +155,12 @@ function Assert-SelectorChainReport {
if ($RequireComposition -and $report.coverage.write_plan_composition.composed -ne $true) {
throw "$Label report did not compose metadata.write.plan in strict mode: $Path"
}
if ($RequireComposition -and (
$report.coverage.form_write_plan_composition.composed -ne $true -or
$report.coverage.form_write_plan_composition.name_first -ne $true
)) {
throw "$Label report did not compose a name-first form metadata.write.plan in strict mode: $Path"
}
foreach ($step in @($report.steps)) {
if ($step.name -in @("metadata.resolve_overrides", "code.search") -and $step.status -notlike "skipped*") {
if ($step.working_state -ne "working") {
@@ -441,6 +447,7 @@ try {
)
if ($RequireSelectorChainWritePlanComposition) {
$restCommand += "--require-write-plan-composition"
$restCommand += "--require-form-write-plan-composition"
}
Invoke-CheckedCommand -Label "REST adapter selector-chain live smoke ($currentBaseId)" -Command (Add-ObjectSelectorArgs -Command $restCommand)
Assert-SelectorChainReport -Label "REST adapter selector-chain live smoke ($currentBaseId)" -Path $selectorChainReport -RequireComposition:$RequireSelectorChainWritePlanComposition
@@ -736,6 +743,7 @@ try {
)
if ($RequireSelectorChainWritePlanComposition) {
$mcpCommand += "--require-write-plan-composition"
$mcpCommand += "--require-form-write-plan-composition"
}
Invoke-CheckedCommand -Label "MCP proxy selector-chain live smoke ($currentBaseId)" -Command (Add-ObjectSelectorArgs -Command $mcpCommand)
Assert-SelectorChainReport -Label "MCP proxy selector-chain live smoke ($currentBaseId)" -Path $selectorChainReport -RequireComposition:$RequireSelectorChainWritePlanComposition