From ed7ba130c8f5ccdfbafebb66c85eed3bce286805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Fri, 7 Aug 2026 19:15:40 +0800 Subject: [PATCH] fix(deploy): match registered host intent --- ...-003-JD-LOCAL-DIRECT-NAVIGATION-CORRECTION-20260807.json | 6 ++++-- .../requests/AI-DISCOVERY-LIGHTHOUSE-HOST-NAV-20260807.json | 2 +- server-tools/ai-discovery-gateway/server.test.js | 4 ++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/deployment/receipts/DEV-20260807-003-JD-LOCAL-DIRECT-NAVIGATION-CORRECTION-20260807.json b/deployment/receipts/DEV-20260807-003-JD-LOCAL-DIRECT-NAVIGATION-CORRECTION-20260807.json index 0c12bf1..1963465 100644 --- a/deployment/receipts/DEV-20260807-003-JD-LOCAL-DIRECT-NAVIGATION-CORRECTION-20260807.json +++ b/deployment/receipts/DEV-20260807-003-JD-LOCAL-DIRECT-NAVIGATION-CORRECTION-20260807.json @@ -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.", diff --git a/deployment/requests/AI-DISCOVERY-LIGHTHOUSE-HOST-NAV-20260807.json b/deployment/requests/AI-DISCOVERY-LIGHTHOUSE-HOST-NAV-20260807.json index 04f9d60..02c8b24 100644 --- a/deployment/requests/AI-DISCOVERY-LIGHTHOUSE-HOST-NAV-20260807.json +++ b/deployment/requests/AI-DISCOVERY-LIGHTHOUSE-HOST-NAV-20260807.json @@ -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", diff --git a/server-tools/ai-discovery-gateway/server.test.js b/server-tools/ai-discovery-gateway/server.test.js index 4e8faf1..1145546 100644 --- a/server-tools/ai-discovery-gateway/server.test.js +++ b/server-tools/ai-discovery-gateway/server.test.js @@ -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); });