Complete name-first MCP write-plan composition

This commit is contained in:
2026-07-26 17:05:05 +03:00
parent 92a331f149
commit 1ca47dce13
9 changed files with 345 additions and 18 deletions
+5 -5
View File
@@ -358,10 +358,10 @@ function Assert-CodeWriteSavedStateReport {
if ($report.schema -ne "onec_code_write_saved_state_smoke.v1") {
throw "$Label report has unexpected schema '$($report.schema)': $Path"
}
if ($RequireWrite -and $report.status -eq "skipped_missing_target") {
throw "$Label report skipped missing target in strict mode: $Path"
if ($RequireWrite -and $report.status -in @("skipped_missing_target", "skipped_write_gate")) {
throw "$Label report skipped required write in strict mode: $Path"
}
if ($report.status -notin @("ok", "skipped_missing_target")) {
if ($report.status -notin @("ok", "skipped_missing_target", "skipped_write_gate")) {
throw "$Label report has unexpected status '$($report.status)': $Path"
}
if ($report.status -eq "ok") {
@@ -683,7 +683,7 @@ try {
"--json"
)
if (-not $RequireCodeWriteSavedStateSmoke) {
$codeWriteCommand += "--allow-missing-target"
$codeWriteCommand += @("--allow-missing-target", "--allow-blocked-write-gate")
}
Invoke-CheckedCommand -Label "REST adapter code.write saved-state smoke ($currentBaseId)" -Command $codeWriteCommand
Assert-CodeWriteSavedStateReport -Label "REST adapter code.write saved-state smoke ($currentBaseId)" -Path $codeWriteReport -RequireWrite:$RequireCodeWriteSavedStateSmoke
@@ -855,7 +855,7 @@ try {
"--json"
)
if (-not $RequireCodeWriteSavedStateSmoke) {
$mcpCodeWriteCommand += "--allow-missing-target"
$mcpCodeWriteCommand += @("--allow-missing-target", "--allow-blocked-write-gate")
}
Invoke-CheckedCommand -Label "MCP proxy code.write saved-state smoke ($currentBaseId)" -Command $mcpCodeWriteCommand
Assert-CodeWriteSavedStateReport -Label "MCP proxy code.write saved-state smoke ($currentBaseId)" -Path $mcpCodeWriteReport -RequireWrite:$RequireCodeWriteSavedStateSmoke