Slopos memory sched

From SlopLabs/slopos · View interactive version

Slopos memory sched is an AI agent skill from the GitHub repository SlopLabs/slopos. Kernel memory accounting, allocation and task lifetimes in SlopOS: the commit ledger, the OOM killer, the kernel heap, cpufreq/HWP with hybrid placement, and the task-ownership invariants I1 to I8. Use when a task touches `mm/`, `sched/`, `cpufreq-core/`, `slopos-ostd/src/mm/`, `slopos-ostd/src/task

How to use this skill

Skill file

Read first

Rules a change must keep

alloc::*; every constructor is fallible.

do not raise a stack-sizes allowlist to fit a value built on the stack.

commit_under. fork charges nothing and is never refused on the ledger.

leaves, or a process could pad another's count with shared pages.

(init's write excepted), never init, and consults no uid.

change is a generation the CPUs converge on, never a cross-CPU call.

slopos_ostd::task::placement.

or under a lock; never decide finality from a strong_count read.

Err(WaitAbort::Killed) by returning.

proof keeps verifying either way, so read verification/STATUS.md first.

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.