feat(lint): lease-mutation fence + roadmap progress log (coupling-core E3)#468
Merged
Conversation
…o (coupling-core E3) Adds semgrep rule worker-lease-mutation-surface: writing or deleting entries of s.workers / s.workerLeases outside internal/daemon/worker_plane.go is an error. The lease write surface (LW1-LW5, docs/design/worker-lease.md) currently has zero violations, so the rule ships with no annotations - it is a pure fence, the mirror of run-status-write-surface for the second coupling core. Fixture tests wired into make lint; a synthetic mutation in socket.go trips the rule (negative-tested, reverted). Also appends the Phase C/D/E progress log to the coupling-core roadmap. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(The previous commit's message claimed this edit; it had failed to apply.) Co-Authored-By: Claude Fable 5 <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.
Stacked on #467. Phase E3 of the coupling-core roadmap: the static guard for the worker-lease core.
worker-lease-mutation-surface: entry writes/deletes ons.workers/s.workerLeasesare confined tointernal/daemon/worker_plane.go(write surface LW1–LW5 indocs/design/worker-lease.md, PR docs(design): worker-lease survey + draft laws (coupling-core Phase E1) #465).make lint; negative-tested with a syntheticdelete(s.workerLeases, …)in socket.go (1 finding, reverted).Remaining for the lease core: E2 — promote LL1–LL5 draft laws to property tests.
🤖 Generated with Claude Code