Slopos gates

From SlopLabs/slopos · View interactive version

Slopos gates is an AI agent skill from the GitHub repository SlopLabs/slopos. The kernel's unsafe-code surface, its style rules, and the source, ELF and clippy gates that hold them. Use when a task touches `tools/xtask`, `slopos-ostd`, `kernel/clippy.toml`, `scripts/gates/`, or mentions `unsafe`, `# Safety`, an allowlist, `xtask lint`, `xtask elf`, `xtask clippy`, `tcb-ratio`

How to use this skill

Skill file

Read first

Rules a change must keep

#![forbid(unsafe_code)]; the one exempt file is kernel/src/main.rs.

SECTION_ALLOWLIST, SYMBOL_ALLOWLIST) without an audited reason, no

hand-raised cap; re-measure with --emit-allowlist. An entry that matches

nothing fails its gate, so remove it with the exemption.

(witness, validated newtype, one-shot handle, sealed trait, slice) or make

it unsafe fn inside OSTD.

is a site-local #[expect(lint, reason = "...")], never a blanket allow.

which no allowlist covers. Build large values in place.

RUSTFLAGS, no vector asm!): kernel entry does not save that state.

tools/run_tests/gates/) with planted-violation tests, never a new

scripts/check_*.sh. Keep its //! invariant current.

docs and asm register contracts are the exceptions.

Checks

Not yet in the docs

Read pending.md beside this file when it exists. A change that adds or alters an invariant the docs do not state appends it there in the same commit.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.