Skip to content

TASK-0020: make NetGuard host evidence durable - #13

Merged
lr00rl merged 2 commits into
integrationfrom
feat/hephaestus-task0020-netguard-g3-sha-r3
Aug 13, 2026
Merged

TASK-0020: make NetGuard host evidence durable#13
lr00rl merged 2 commits into
integrationfrom
feat/hephaestus-task0020-netguard-g3-sha-r3

Conversation

@lr00rl

@lr00rl lr00rl commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

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:

  • base/parent: 97eff2e
  • repaired first tree: 50b176b72acbd1b77b7f43a0fbb06330f5b733a3 (equals original 83ff0eb tree)
  • final tree: fc4d448075947fd55620cfcbe09920d5c1303390 (equals original 8af2a8a and rejected r2 tree)
  • range: 2 commits / 0 Lore violations / escaped=0 / parsed=18

Exact-head verification:

  • go test ./... -count=1
  • go test -race ./... -count=1
  • go vet ./...
  • shell syntax and install integrity checks
  • git diff --check
  • independent content review APPROVE, 0 findings

No release, deployment, live nft execution, credential, or ops action is included.

lr00rl added 2 commits August 13, 2026 01:02
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.
@lr00rl
lr00rl merged commit c783354 into integration Aug 13, 2026
1 check passed
@lr00rl
lr00rl deleted the feat/hephaestus-task0020-netguard-g3-sha-r3 branch August 13, 2026 12:30
@lr00rl

lr00rl commented Aug 13, 2026

Copy link
Copy Markdown
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.

@lr00rl
lr00rl restored the feat/hephaestus-task0020-netguard-g3-sha-r3 branch August 13, 2026 12:32
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