fix(deploy): match registered host intent

This commit is contained in:
冰朔 2026-08-07 19:15:40 +08:00
commit ed7ba130c8
3 changed files with 9 additions and 3 deletions

View file

@ -28,8 +28,10 @@
},
"deployment_preflight": {
"first_attempt": "REJECTED_BEFORE_MUTATION_INVALID_ACCEPTANCE_CHECK_URL",
"correction": "Replaced the percent-encoded acceptance query with the equivalent allowlisted ASCII intent gitpush and added exact manifest regression coverage.",
"server_mutation_before_correction": false
"first_correction": "Replaced the percent-encoded acceptance query with an allowlisted ASCII query and added exact manifest regression coverage.",
"second_attempt": "ACCEPTANCE_FAILED_AND_AUTOMATICALLY_ROLLED_BACK_BECAUSE_GITPUSH_DID_NOT_NORMALIZE_TO_THE_REGISTERED_GIT_PUSH_PHRASE",
"final_correction": "Use git-push, whose hyphen is normalized to a space by the service, and cover the exact acceptance query in the server regression test.",
"server_state_after_failed_attempts": "PREVIOUS_SERVICE_RESTORED_ACTIVE_AND_NEW_ENDPOINTS_404"
},
"deployment_request": "deployment/requests/AI-DISCOVERY-LIGHTHOUSE-HOST-NAV-20260807.json",
"truth_boundary": "This receipt proves the route correction and deployable source package. It does not prove server deployment until the server-owned deployment receipt and public endpoint readback exist.",

View file

@ -111,7 +111,7 @@
}
},
{
"url": "http://127.0.0.1:3922/v1/host-navigate?host=codex&intent=gitpush",
"url": "http://127.0.0.1:3922/v1/host-navigate?host=codex&intent=git-push",
"expected": {
"status": "COMPILED_EXACT_NO_GUESS",
"lighthouse_id": "SYS-GLW-LTH-0001",

View file

@ -236,6 +236,10 @@ test("host navigator compiles local keychain publication without granting author
assert.equal(compiled.body.target.id, "REPO-012");
assert.equal(compiled.body.intent.transport, "LOCAL_GIT_OSXKEYCHAIN");
assert.equal(compiled.body.authority, "NONE_NAVIGATION_ONLY");
const acceptanceQuery = compileHostNavigation(loadHostSkills(), loadLighthousePaths(), "codex", "git-push");
assert.equal(acceptanceQuery.status, 200);
assert.equal(acceptanceQuery.body.status, "COMPILED_EXACT_NO_GUESS");
assert.equal(acceptanceQuery.body.intent.id, "INTENT-REPOSITORY-PUBLISH-001");
assert.equal(compileHostNavigation(loadHostSkills(), loadLighthousePaths(), "unknown", "推一下线上仓库").status, 404);
});