# Project 90 documentation

> How to search the Project 90 catalog, run the Stage 1 security scanner, reproduce bare vs. distilled blind evaluations on LFM3 1.7B, and submit a new skill.

Project site: https://dbaney.com/p90/

## Search before building

Always check whether a canonical task is already fulfilled before distilling a new skill:

```sh
git clone https://github.com/Students-of-Local/project-90.git
cd project-90
PYTHONPATH=src python3 -m p90 search --remote "git commit"
```

You can also browse the live auto-updating directory at [dbaney.com/p90/](https://dbaney.com/p90/) or fetch [dbaney.com/p90/catalog.json](https://dbaney.com/p90/catalog.json) directly from an agent.

## Install

Project 90 needs Python 3.10+ for the CLI and a local OpenAI-compatible runner such as Ollama or `llama.cpp` to run evaluations.

```sh
# Pull the reference 1.7B toaster-class student model
ollama pull hf.co/LiquidAI/LFM3-1.7B-GGUF:Q4_K_M

# Validate manifests, checkers and security gates (no LLM required)
python3 -m unittest discover -s tests -t .
PYTHONPATH=src python3 -m p90 verify
```

To teach an AI coding agent to search Project 90 first, point it at `skill/SKILL.md` in the repository.

## Two-stage admission gate

Every monorepo skill clears two gates in order:

1. **Stage 1: Deep security and virus scan (zero execution).** `p90 scan --strict` inspects every file with strict size, depth and symlink caps, checking for hidden Unicode / Trojan Source characters, dangerous Python AST calls, unsafe Rust/Go/Zig constructs, high-entropy blobs, embedded binaries and prompt injection. CI also runs ClamAV (`clamscan`) across `skills/` and `skill/` before Stage 2 runs.
2. **Stage 2: Independent P vs NP 0-failure certification.** `p90 eval <skill> --mode both --split heldout --seeds 3 --save` runs both the bare student baseline and the distilled skill on the exact same blind held-out split, model and sampling settings. `p90 certify <skill>` passes only at 0 failures across at least 30 blind trials on a model of 3B parameters or fewer.

## Reproduce certified results

```sh
PYTHONPATH=src python3 -m p90 eval conventional-commit --mode both --split heldout --seeds 3 --save
PYTHONPATH=src python3 -m p90 certify conventional-commit
```

## LFM3 inference optimizer

`ops/lfm3-inference-optimisation/` adapts Sybil Solutions' inference optimization workflow for the hybrid LFM3 architecture (ShortConv + sliding-window + global KV layers), including hardware ceiling calculators for laptops and consumer GPUs.

## Scope and limits

P90 Certification proves zero failures on the skill's blind held-out suite and stated scope. Security and virus scanning apply to skills merged into `Students-of-Local/project-90`; external repositories that run `p90 certify` on their own are not audited by Project 90 for safety.
