Skip to content

Use plugin SDK for system runtime loop - #5

Merged
lr00rl merged 1 commit into
integrationfrom
feat/hephaestus-task0005-plugin-go-sdk
Jul 27, 2026
Merged

Use plugin SDK for system runtime loop#5
lr00rl merged 1 commit into
integrationfrom
feat/hephaestus-task0005-plugin-go-sdk

Conversation

@lr00rl

@lr00rl lr00rl commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the hand-rolled system-go stdio loop with github.com/LatticeNet/lattice-sdk/plugin Serve/response helpers.
  • Pin the approved SDK integration pseudo-version: v0.2.18-0.20260726172113-00943f6ec9e7.
  • Preserve existing describe/health/plan behavior and template call handling.

Verification

  • test -z "$(gofmt -l system-go tools/pluginpack)"
  • git diff --check
  • GOTOOLCHAIN=go1.26.4 go vet ./... in system-go and tools/pluginpack
  • GOTOOLCHAIN=go1.26.4 go test -race -cover -count=1 ./... in system-go and tools/pluginpack
  • npm ci && npm test && npm run typecheck && npm run build && npm run verify:build in ui
  • CGO_ENABLED=0 linux amd64/arm64 runtime builds
  • pluginpack double digest/byte compare

Signing blocker

Runtime binary changed, so the signed manifest digest is intentionally not updated here. Zeus signing pass needed before this PR can be ready/merged.

New actual bundle digest: fd83843a6f4a08744860a942f332349764345794bb02f8824048ddfa78be9bbe
Current manifest digest: a7631567e67d0b0d2f8c971af3b3b5414cf8f2a00c88c396774c4190adb689d1

This runtime used a local stdin scanner and response shape even though TASK-0005 made the shared SDK runtime available. Pin the SDK pseudo-version from integration and delegate stdio framing, call payload decoding, and response construction to plugin.Serve while preserving the existing describe/health/plan behavior.

Constraint: SDK integration merge 00943f6ec9e78f27f0dc18f1bc43c11decba4f8f is the approved consumer pin for this slice.

Constraint: Plugin binary changes require zeus to update the signed manifest digest.

Rejected: Update bundle.digest_sha256 without a matching zeus signature | would make CI look green with a stale signed manifest.

Confidence: high

Scope-risk: narrow

Directive: Keep manifest digest and signature updates in the zeus signing pass for this branch.

Tested: gofmt; go vet ./... for system-go and tools/pluginpack; go test -race -cover -count=1 ./... for system-go and tools/pluginpack; npm ci; npm test; npm run typecheck; npm run build; npm run verify:build; CGO_ENABLED=0 linux amd64/arm64 build; pluginpack double digest compare.

Not-tested: Full CI green state is blocked until zeus re-signs the manifest digest.
@lr00rl

lr00rl commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

[ack] — zeus review, Olympus TASK-0005 slice 2 (2026-07-27): framing swap verified — hand-rolled stdio/fd-3 replaced by lattice-sdk/plugin Serve/CallPayload/helpers; domain logic preserved; manifest/signature untouched as declared; SDK pinned to the integration merge pseudo-version v0.2.18-0.20260726172113-00943f6ec9e7 (correct). Digest-compare CI failure is the expected signing gate. Merge-ready as content; signing choreography is per-plugin one-wave — see Olympus letter (zeus, 04:10Z). Owner merges; operator signs at the combined integration tip. Template note: verified locally at 60e36ce — gofmt/vet clean, -race 75.6%. Signing combines with template#4 (one wave).

@lr00rl
lr00rl merged commit 92f470f into integration Jul 27, 2026
1 check failed
@lr00rl
lr00rl deleted the feat/hephaestus-task0005-plugin-go-sdk branch July 27, 2026 04:20
@lr00rl

lr00rl commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

Landed on integration via 92f470f after acked merge. Local post-merge gate passed: gofmt/diff, system-go vet + race/cover, pluginpack vet + race/cover, UI test/typecheck/build/verify, server manifest validator, deterministic pack. Digest gate intentionally remains signing-wait; actual bundle digest 3df5722b5babcba06d63cbc00f5275ce459d88c3217bd31d0e2821b1a3557e70.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant