TASK-0020: make NetGuard host evidence durable - #13
Merged
Conversation
A host task may mutate firewall state only after its lease is durably owned, and its exact result must survive response loss or restart without re-execution. Journal leases and results under exclusive process ownership, expose the canonical managed-table helper through the installed agent path, and harden installer handling of the outbox base. Constraint: The task environment stays minimal and the helper path is the running executable, not PATH lookup Constraint: Interrupted execution has unknown outcome and must never be replayed Rejected: Retry the host task after upload failure | duplicate firewall mutation is unsafe Rejected: Chmod the configured outbox base | an operator path may name a system directory Confidence: high Scope-risk: moderate Reversibility: clean Directive: Keep result upload before new task fetch and retain non-2xx results byte-for-byte Tested: go test ./... -count=1; go test -race ./... -count=1; go vet ./...; installer integrity; sh -n; git diff --check Not-tested: Live nft mutation and multi-host fleet rollout are intentionally outside this slice
A reviewed NetGuard apply must survive lost responses, restarts, process duplication, and post-rename fsync uncertainty without executing the host mutation twice. Journal only server-marked NetGuard tasks, validate complete task identity, and require confirmed local durability before result upload. Constraint: The installed agent runs with a clean task environment and a private per-node state directory. Rejected: Journal every task type | generic server reconcilers do not share an atomic replay contract. Confidence: high Scope-risk: moderate Reversibility: clean Directive: Keep the outbox single-owner and never upload a published result before ConfirmDurability succeeds. Tested: go test ./... -count=1; go test -race ./... -count=1; go vet ./...; install integrity script; git diff --check; independent code review APPROVE. Not-tested: Live nft execution and deployment remain outside this development slice.
This was referenced Aug 13, 2026
Contributor
Author
|
Integrated into integration via merge commit c783354. The merge preserves reviewed r3 commits 044578c and c51ac0b with parents 97eff2e and c51ac0b. Verification passed: gofmt, git diff --check, native Lore trailers, strict Lore scan (3 commits / 0 violations), go test ./... -count=1, go test -race -cover ./... -count=1 -timeout=20m, go vet ./..., and installer syntax/integrity checks. No release, deployment, fleet mutation, live nft mutation, or cross-host rollout was performed. |
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.
Lawful immutable-object recovery for superseded PRs #11 and #12. This branch preserves the original two-commit topology, both per-commit trees, author/committer identities and timestamps, and the already-valid second message. The only immutable-field repair is converting the first commit’s literal \n trailer separators into physical newlines.
Object proof:
Exact-head verification:
No release, deployment, live nft execution, credential, or ops action is included.