Skip to content

Remove family certification and gate llama upgrades on graph contracts - #162

Merged
i386 merged 10 commits into
mainfrom
codex/drop-family-certification
Nov 22, 2026
Merged

i386 merged 10 commits into
mainfrom
codex/drop-family-certification

Conversation

@i386

@i386 i386 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Original problem

Family certification used a recipe-bound architecture allowlist to grant or deny splits. That label overstated what sampled tests established and blocked models before their actual native split contracts were checked. The llama upgrade workflow also repeated an expensive real-weight family battery across backends and independent passes.

This removes family certification and uses existing full CI as the llama upgrade gate. Architectural coverage comes from existing synthetic graph and small synthetic execution tests, with stronger checks against coverage drift. Tracks #12; activation pilots remain outstanding.

Diagnostics

The native tests already exercise every interior split boundary, a three-stage chain, decode/prefill profiles, parameter/state ownership and MTP placement without production weights. The gap was coverage enforcement: the documented registry consistency checker was absent, and generator coverage started from the registered roster without establishing complete upstream coverage.

The checked-in native patch queues define 95 registered graph cases and two supplemental GLM cases. Uncovered upstream architectures and builders are recorded as informational gaps; passing CI does not certify the upstream roster or establish a measured 90% real-model split success rate.

Fix

  • Remove the architecture allowlist, certification wire fields and experimental split override. Runtime admission retains graph, tensor, state, identity and backend validation.
  • Rename the fixture registry to model-fixtures.json. It remains an input to synthetic tests and the normal small Qwen smoke, without a product support designation.
  • Remove the repeated CPU/Metal/CUDA real-weight upgrade battery and duplicate independent passes. The successful candidate runs existing full CI once. Existing small-model package/device smoke and the separate four-model inference workflow remain under their current policies.
  • Check every registered graph case's architecture, trunk depth, activation width, MTP count and mode against the actual native CTest table. Missing, duplicate and stale cases fail.
  • Inventory upstream architectures and transformed decoder builders. New, existing and changed uncovered entries are informational, summarized in CI logs and listed in the retained report. Coverage gaps alone do not fail an upgrade or invoke repair; existing contract regressions and actual integration failures remain blocking.
  • Keep bounded agent repair. Failed preparation can receive one repair; failed full CI can produce one fresh repaired candidate and a new full CI run. Publication accepts only the immutable candidate selected by successful CI.

Usage

Upgrade dispatch uses force_check=true for an unchanged-pin rehearsal; replacing the old force_certify input. With a full immutable SHA in LLAMA_UPSTREAM_SHA:

gh workflow run llama-upgrade.yml --ref main \
  -f upstream_sha="$LLAMA_UPSTREAM_SHA" -f force_check=true

Ordinary split planning no longer takes a certification override:

skippy plan-split --model-path /models/model.gguf \
  --worker 127.0.0.1:9400 --worker 127.0.0.1:9401 --output-dir plan

Illustrative output files include plan/stage-0.json, plan/stage-1.json and plan/admissions.json. The latter records schema version 2 and the validated stage plans. Remove --allow-uncertified-split from CLI invocations and SplitOptions::allow_uncertified from embedding callers.

Architecture

The upgrade workflow directly reuses ci.yml with the full profile and exact candidate bundle. Graph coverage checks run during preparation and just llama-check; small synthetic numerical execution tests stay in the native suite. No additional upgrade model roster, staging refs, JY profile, or model-result collection is needed.

flowchart TD
    Dispatch["llama-upgrade.yml<br/>Manual dispatch; schedule disabled"] --> Prepare["Resolve immutable upstream SHA<br/>Replay patches and regenerate<br/>Validate existing graph contracts<br/>Report coverage gaps without blocking"]
    Prepare --> CI["ci.yml — existing full CI once<br/>Code tests and graph contracts<br/>Small synthetic execution tests<br/>Existing package and device smoke"]
    Prepare -->|Preparation failure| PrepRepair["One bounded preparation repair"]
    PrepRepair -->|Preparation passed| CI
    PrepRepair -->|Still failing| Stop
    CI --> Result{"CI passed?"}
    Result -->|Yes, changed pin| Publish["Verify bundle matches successful CI candidate<br/>Open upgrade PR"]
    Result -->|Yes, unchanged pin| Done["Finish rehearsal without upgrade PR"]
    Result -->|No| Budget{"CI repair attempt available?"}
    Budget -->|Yes, once| Repair["Collect diagnostics<br/>Repair disposable checkout<br/>Freeze fresh candidate"]
    Repair --> CI
    Budget -->|No| Stop["Fail; do not publish"]
Loading

The separate inference workflow retains its existing triggers and four pinned models. Its split execution records the saved split plan and checksum alongside results, replacing family certification labels.

flowchart LR
    Triggers["PR with qualify label<br/>Manual / nightly / release"] --> Inference["inference.yml<br/>Existing four pinned models"]
    Inference --> Native["Plan and load through native contracts"]
    Native --> Tests["Existing inference checks"]
    Tests --> Results["Results for exact model and topology<br/>Saved split plan and checksum"]
Loading

graph-coverage.json configures special modes and supplemental source mappings for existing tests. It has no permitted-gap baseline or architecture allowlist and is not read by runtime admission. Add synthetic cases for distinct split mechanisms and concrete regressions when useful; one is not required for every upstream addition. Checking one shape cannot establish every variant.

The repair runner needs an installed agent configured through SKIPPY_UPGRADE_REPAIR_COMMAND. Repair receives no publication credentials and cannot edit policy, workflows, fixture selection or the selected upstream pin. An initial failed CI attempt remains visible in Actions even when the repaired candidate passes and opens a PR. The schedule remains disabled pending unchanged-pin and changed-pin acceptance pilots.

Compatibility

  • Stage protocol generation is 17. All split peers must upgrade together; obsolete certification fields are removed and surviving fields renumbered.
  • Saved split plans use schema version 2. Qualification fingerprints change so old certification-labelled baselines are not mixed with the new results.
  • Portable native recipe metadata retains upstream and ordered-patch identity without an architecture allowlist. Existing recipe hash framing, runtime compatibility checks and C ABI remain intact.
  • Exact-package smoke/evidence tools remain available; family support designations are removed.

Validation

Passed on the updated tree after merging current main:

SKIPPY_PYTHON=python3.12 just automation-contracts
node --test .github/scripts/*.test.cjs
actionlint .github/workflows/llama-upgrade.yml
bash -n scripts/check-skippy-generated-family-patch.sh scripts/automation-run.sh
bash scripts/tests/native-ctest-gate.sh
git diff --check

75 automation tests and 37 controller tests passed. Offline tests apply the actual ordered native patches to reconstruct and validate all 97 graph case definitions. Regressions cover stale/missing/duplicate existing cases, unexecuted supplemental generators, three new architectures arriving together without blocking, informational new/changed builder gaps, existing contract failures remaining blocking despite uncovered additions, retained reports, bounded preparation repair and stale publication candidate identity. These tests perform no model downloads or native compilation.

The merged Rust/API code also passed the following checks using Rust 1.99.1:

just with-lld cargo fmt --all --check
just with-lld cargo check --locked --offline -p skippy-api -p skippy-commands -p skippy-cli -p skippy-protocol --features skippy-cli/dynamic-native-runtime
just with-lld cargo clippy --locked --offline -p skippy-api -p skippy-commands -p skippy-cli -p skippy-protocol --features skippy-cli/dynamic-native-runtime --all-targets -- -D warnings
just with-lld cargo test --locked --offline -p skippy-api -p skippy-commands -p skippy-cli -p skippy-protocol --features skippy-cli/dynamic-native-runtime
just skippy-api-test
just embedding-consumer-check
just with-lld cargo fmt --manifest-path skippy-api-rs/Cargo.toml --all --check

467 Rust tests passed, with one explicit model test ignored. Earlier C++ API contracts passed (248 executed, one optional native capability test skipped); the isolated embedding consumer compiled. The follow-up simplification changes Python, workflows and documentation, with no further Rust/native runtime edits.

The separate Rust facade test was attempted with just with-lld cargo test --manifest-path skippy-api-rs/Cargo.toml --workspace --locked --offline and could not build because this checkout lacks the pinned .deps/llama.cpp source. Native graph execution and live hardware/model qualification were not run locally. No replacement source was downloaded. End-to-end upgrade and repair activation remain pending acceptance pilots.

Acceptance criteria

  • I ran the relevant local checks, or explained why they do not apply.
  • I agree to license my contributions under the Apache License, Version 2.0.

i386 added 2 commits November 22, 2026 13:40
…tification

# Conflicts:
#	.agents/skills/manage-ci/SKILL.md
#	.github/scripts/ci-gate.test.cjs
#	ci/INFERENCE_QUALIFICATION.md
#	ci/README.md
#	scripts/lib/inference_ladder.py
#	scripts/tests/inference_nightly.py
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ae8cb505-0bf3-4951-a618-18dd817e6f66
Commits

Reviewing files that changed from the base of the PR and between dc7967c and 29e605f.

Files selected for processing: 85

  • .agents/skills/manage-ci/SKILL.md
  • .github/actions/ci-smoke/action.yml
  • .github/actions/source/action.yml
  • .github/scripts/ci-gate.test.cjs
  • .github/scripts/llama-upgrade.test.cjs
  • .github/workflows/ci.yml
  • .github/workflows/llama-upgrade.yml
  • AGENTS.md
  • Justfile
  • ci/INFERENCE_QUALIFICATION.md
  • ci/README.md
  • ci/llama-canary/MTP_COVERAGE.md
  • ci/llama-canary/SYNTHETIC_GRAPH_CONTRACTS.md
  • ci/llama-canary/graph-coverage.json
  • ci/llama-canary/model-fixtures.json
  • ci/llama-canary/model-fixtures.schema.json
  • crates/skippy-api/README.md
  • crates/skippy-api/build.rs
  • crates/skippy-api/src/execution/split.rs
  • crates/skippy-api/src/execution/split/plan.rs
  • crates/skippy-api/src/lib.rs
  • crates/skippy-api/src/native-recipe.json
  • crates/skippy-api/src/split-certified.json
  • crates/skippy-api/src/split_certification.rs
  • crates/skippy-api/src/split_execution.rs
  • crates/skippy-api/src/split_execution/direct.rs
  • crates/skippy-api/src/split_execution/tests.rs
  • crates/skippy-cli/README.md
  • crates/skippy-cli/src/cli.rs
  • crates/skippy-commands/src/split.rs
  • crates/skippy-protocol/README.md
  • crates/skippy-protocol/proto/stage.proto
  • crates/skippy-protocol/src/lib.rs
  • crates/skippy-protocol/src/validation.rs
  • crates/skippy-serving/README.md
  • docs-site/content/cli.mdx
  • docs/CAUSAL_DECISIONS.md
  • docs/DATA_FLOW.md
  • docs/FAMILY_QUALIFICATION.md
  • docs/FAMILY_STATUS.md
  • docs/LLAMA_PARITY.md
  • docs/NATIVE_PARITY.md
  • docs/NEW_MODEL_ONBOARDING.md
  • docs/PRODUCTION_EMBEDDING.md
  • docs/TOPOLOGY_PLANNER.md
  • docs/design/MESH_EXECUTION_MIGRATION.md
  • docs/design/METAL_PLACEMENT_BATCHING_MIGRATION.md
  • docs/design/SKIPPY_GRAPH_FILTER_V2.md
  • docs/design/SKIPPY_REPOSITORY_EXTRACTION_PLAN.md
  • docs/family/qwen.md
  • docs/llama-parity-candidates.json
  • fixtures/production-embedding/README.md
  • fixtures/production-embedding/src/main.rs
  • scripts/automation-run.sh
  • scripts/check-skippy-generated-family-patch.sh
  • scripts/ci-graph-impact.sh
  • scripts/ci-model-fetch.sh
  • scripts/embedding-consumer.py
  • scripts/family-qualify.sh
  • scripts/generate-skippy-family-patch.py
  • scripts/graph-contract-coverage.py
  • scripts/inference-execute.py
  • scripts/lib/ci_smoke.py
  • scripts/lib/graph_contracts.py
  • scripts/lib/inference_admission.py
  • scripts/lib/inference_ladder.py
  • scripts/lib/inference_nightly_metrics.py
  • scripts/lib/inference_nightly_results.py
  • scripts/lib/native_recipe.py
  • scripts/lib/upgrade_build.py
  • scripts/lib/upgrade_evidence.py
  • scripts/lib/upgrade_lanes.py
  • scripts/lib/upgrade_regeneration.py
  • scripts/lib/upgrade_repair.py
  • scripts/lib/upgrade_source.py
  • scripts/tests/automation_contracts.py
  • scripts/tests/fixtures/rewriter-patch-shards/README.md
  • scripts/tests/graph_contracts.py
  • scripts/tests/inference_nightly.py
  • scripts/tests/upgrade_contracts.py
  • scripts/tools/skippy-stage-rewriter/README.md
  • scripts/upgrade-certify.py
  • scripts/upgrade-diagnostics.py
  • scripts/upgrade-publish.py
  • scripts/upgrade-source.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@i386 i386 changed the title Use native split admission and simplify llama upgrades Remove family certification and gate llama upgrades on graph contracts Nov 22, 2026
@i386
i386 merged commit d3607ae into main Nov 22, 2026
47 checks passed
@i386
i386 deleted the codex/drop-family-certification branch November 22, 2026 05:27
michaelneale added a commit to Mesh-LLM/mesh-llm that referenced this pull request Nov 23, 2026
Pin Skippy to the commit of release tag v0.80.1 instead of a stand-in
branch, so a node downloads the published 0.80.1 runtime.

That release differs from the stand-in in two ways:

- Split certification is gone from Skippy (Mesh-LLM/skippy#162), so the
  --allow-uncertified-split flag and the split_certification status field
  go too.
- It has no request tiers (Mesh-LLM/skippy#113). The node still classifies
  each request and runs hooks and plugins at that tier, but Skippy no
  longer orders admission or eviction by tier, reserves KV for local
  requests, or keeps a cache per tier. local_kv_reserve_percent is marked
  unwired. A private request still starts no peer consultation: the node
  turns its hooks flag off before the request reaches the server. A hook
  on the local server's task runs at the mesh tier.

Signed-off-by: Michael Neale <14976+michaelneale@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant