Use bin/AGENTS.md for shared skills and cross-repository defaults.
Read the accepted-design index and the relevant area files before proposing a change or recording a finding or audit entry. Apply each decision within its recorded scope and record new owner-accepted decisions in the relevant area file.
docs/verification-limits.md.docs/verification.md is a concise human contributor guide to commands, prerequisites, isolation/safety, reports, and a verified environment matrix. Keep detailed run results in CI reports and known execution limits in docs/verification-limits.md.go.mod for the module path and Go version.var and assign the value in if/else or switch branches instead of initializing a default and then overwriting it. Use := when the initial value is used, and avoid explicit initializers that are overwritten before use.if err != nil beside the operation and perform cleanup and error propagation there. Use an explicit else when grouping the success branch improves readability. Do not guard further operations with if err == nil and defer handling the accumulated error until a later check.bool for predicates, observed state, and signatures required by existing interfaces. See the API conventions.SyscallConn, Fd, raw callbacks, or underlying-file fields as a substitute for a concrete operation; avoid embedding that unintentionally exposes them. Migrate existing exports with their replacements, callers, docs, and tests together, preserving documented ownership and compatibility decisions.Adopt consumes its input even on failure; borrowing operations leave caller-owned inputs open. See the API conventions.github.com/stretchr/testify/require for every Go test assertion and explicit failure, including timeout paths; do not use t.Fatal, t.Fatalf, t.Error, t.Errorf, t.Fail, or t.FailNow. Keep t.Skip for unavailable optional prerequisites.internal/test when it simplifies the scenarios. Keep the action and behavioral assertions visible; do not hide them in callback-driven frameworks or pursue shorter tests by weakening coverage.golang.org/x/sys/unix and syscall imports out of test files. Put native operations, Linux constants and errno aliases, native wire-fixture construction, and independent kernel observations needed by tests in internal/test.internal/test. Keep assertions that explain a package’s behavior beside its scenarios; do not hide a scenario in a generic test framework.syscall/unix calls or inspection of implementation state should trigger a review of the API/test boundary. Verify effects, returned values, errors, lifetime, and concurrency; do not add public raw access, inspection methods, or test-only production hooks merely to make assertions convenient.internal/test. Keep these checks distinct from ordinary caller scenarios, and do not replace kernel evidence with mocks or weaken ownership, cleanup, or prerequisite coverage to avoid low-level code._linux suffix and start every repository-owned Go file, including tests and doc.go, with //go:build linux. Preserve the standard _test.go suffix; leave dependency and submodule files unchanged.docs/<package>.md. Keep accepted-design notes focused on decisions, alternatives, rationale, and consequences that add value beyond usage guides and GoDoc. Omit API inventories, implementation diaries, CI histories, and work-status lists.docs/verification.md and known execution limits in docs/verification-limits.md.make help; refresh dependencies with make dep.make lint, make format, make specs, make sec.make test-environment, make vet, and make scripts-lint; details and profile requirements are in docs/verification.md.make specs profile=namespaces for optional namespace coverage or add required=true to fail when its prerequisites are unavailable. JSON and JUnit results are written under test/reports/.make verify-mount-container image=<tag> arch=<amd64|arm64> for mount verification locally and in CI. Use the Go image reference from .circleci/config.yml on a native Linux Docker host that permits privileged containers. Add write-zeroes=true on a disposable runner to select CI’s ext4 fixture. The container runs dependency setup and make verify-mount to record prerequisites and run required mount-only coverage.test/reports/ directory, using filename prefixes to distinguish packages or runs. Do not create subdirectories under test/reports/ from scripts or Make targets. If a separate report directory is necessary, create and check it in with a .keep file so it exists in every checkout before use.make verify-netlink-container image=<tag> arch=<amd64|arm64> for both required isolated Netlink suites in one standard test run. Add kernel=7.0 for exact-baseline evidence; CI requires this setting for both the rootless and Netlink architecture matrices. Reports use the standard specs.json, specs.xml, and profile.cov files directly under test/reports/.package=<path> make specs once feature packages exist.make coverage after make specs..circleci/config.yml.