test(ax): golden-string CI guards + cmd/ax-assert Layer-1b runner + S-6 hardening (#63)#63
Merged
Merged
Conversation
…t Layer-1b runner + S-6 supply-chain hardening (#63) Add 6 new deploy-gate test functions + toolDescriptionsMap helper to tool_surface_test.go, covering every un-guarded serverInstructions and tool-description AX assertion: TestServerInstructionsNoSeedDocumentGuidance (A6) TestServerInstructionsCallBothGuidance (A12) TestServerInstructionsDistinctDocuments (A18) TestToolDescriptionSearchPathStrip (A13) TestToolDescriptionSimilarAntiFabrication (A14) TestToolDescriptionSimilarEngineStatusCrossRef (A15) Add cmd/ax-assert/main.go — developer-only in-process Layer-1b assertion runner (A0–A5, A7–A11, A16/A17/A21). Carries //go:build ignore so go build ./... and the release cross-compile matrix never compile it. Primary use: go run ./cmd/ax-assert/main.go. Implements S-6 supply-chain hardening: runtime module-path guard (debug.ReadBuildInfo), go mod verify in CI (already present), GOFLAGS=-mod=readonly added to test job, /ax-assert binary added to .gitignore. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tool_surface_test.goguards (toolDescriptionsMaphelper + A6/A12/A13/A14/A15/A18): every previously un-guarded serverInstructions and tool-description AX assertion now has a CI-level golden-string checkcmd/ax-assert/main.go— developer-only in-process Layer-1b assertion runner (A0–A5, A7–A11, A16/A17/A21);//go:build ignoreensuresgo build ./...and the release cross-compile matrix never compile it; 14/14 assertions pass against the live indexdebug.ReadBuildInfo()module-path guard,GOFLAGS=-mod=readonlyin CI test job,/ax-assertbinary added to.gitignoreTest plan
go test -race ./...— all packages pass (18/18)TestServerInstructions*/TestToolDescription*tests passgo build ./...does NOT compilecmd/ax-assert/(verified://go:build ignore)go run ./cmd/ax-assert/main.go --project-root .→ 14/14 passed (requires--no-gitignoreindex)go mod verify+GOFLAGS=-mod=readonlypass on both ubuntu/macos🤖 Generated with Claude Code