docs(process): annotate sync as AX-6 structural exception per RFC §2 (#296)
sync + sync/atomic annotations across 13 files in go-process. health.go is committed separately via #298 (combined sync annotation + fmt/strings banned-import purge). Co-authored-by: Codex <noreply@openai.com> Closes tasks.lthn.sh/view.php?id=296
This commit is contained in:
parent
8cb62142a6
commit
a8ed79b097
13 changed files with 21 additions and 5 deletions
|
|
@ -1,6 +1,9 @@
|
|||
package process
|
||||
|
||||
import "sync"
|
||||
import (
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
)
|
||||
|
||||
// RingBuffer is a fixed-size circular buffer that overwrites old data.
|
||||
// Thread-safe for concurrent reads and writes.
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
"os"
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import (
|
|||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
package exec
|
||||
|
||||
import "sync"
|
||||
import (
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
)
|
||||
|
||||
// Logger interface for command execution logging.
|
||||
// Compatible with pkg/log.Logger and other structured loggers.
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package process
|
|||
import (
|
||||
"context"
|
||||
"os/exec"
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
"syscall"
|
||||
"testing"
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import (
|
|||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
"syscall"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,13 +9,14 @@ import (
|
|||
"net/http"
|
||||
"os"
|
||||
"strconv"
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"dappco.re/go/core"
|
||||
"dappco.re/go/api"
|
||||
"dappco.re/go/api/pkg/provider"
|
||||
"dappco.re/go/core"
|
||||
coreerr "dappco.re/go/log"
|
||||
process "dappco.re/go/process"
|
||||
"dappco.re/go/ws"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"os"
|
||||
// Note: banned-imports exception: os/exec is intrinsic to process management in THE implementation of core.Process, which cannot depend on itself.
|
||||
"os/exec"
|
||||
// Note: banned-imports exception: synchronization is intrinsic to this core.Process primitive; go-process cannot depend on downstream core.* helpers.
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
// Note: banned-imports exception: syscall is intrinsic to process management in THE implementation of core.Process, which cannot depend on itself.
|
||||
"syscall"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@ package process
|
|||
import (
|
||||
"context"
|
||||
"os"
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync/atomic"
|
||||
|
||||
"dappco.re/go/core"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package process
|
|||
|
||||
import (
|
||||
"context"
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
// Note: banned-imports exception: os/exec is intrinsic to process management in THE implementation of core.Process, which cannot depend on itself.
|
||||
"os/exec"
|
||||
"slices"
|
||||
// Note: banned-imports exception: synchronization is intrinsic to this core.Process primitive; go-process cannot depend on downstream core.* helpers.
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
// Note: banned-imports exception: syscall is intrinsic to process management in THE implementation of core.Process, which cannot depend on itself.
|
||||
"syscall"
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"os/exec"
|
||||
"strings"
|
||||
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
|
||||
"sync"
|
||||
"syscall"
|
||||
"testing"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue