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:
Snider 2026-04-25 08:45:04 +01:00
parent 8cb62142a6
commit a8ed79b097
13 changed files with 21 additions and 5 deletions

View file

@ -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.

View file

@ -4,6 +4,7 @@ import (
"context"
"errors"
"os"
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
"sync"
"time"

View file

@ -5,6 +5,7 @@ import (
"net/http"
"os"
"path/filepath"
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
"sync"
"testing"
"time"

View file

@ -7,6 +7,7 @@ import (
"os"
"path/filepath"
"strings"
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
"sync"
"testing"
"time"

View file

@ -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.

View file

@ -3,6 +3,7 @@ package process
import (
"context"
"os/exec"
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
"sync"
"syscall"
"testing"

View file

@ -4,6 +4,7 @@ import (
"path/filepath"
"strconv"
"strings"
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
"sync"
"syscall"

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -2,6 +2,7 @@ package process
import (
"context"
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
"sync"
"time"

View file

@ -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"

View file

@ -4,6 +4,7 @@ import (
"context"
"os/exec"
"strings"
// Note: AX-6 — internal concurrency primitive; structural per RFC §2
"sync"
"syscall"
"testing"