aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / docs / plans / public-surface-cleanup.md
| 1 | # Public Surface Cleanup Workstream Plan |
| 2 | |
| 3 | Status: scoped workstream plan / NOT A MASTER PLAN. No implementation in this document. |
| 4 | Whole-system sequencing is governed by https://github.com/aien-spark/aien-architecture/blob/main/CURRENT_EXECUTION_PLAN.md. |
| 5 | Decision set: Q1 through Q14, frozen with the operator. One wording refinement |
| 6 | on Q8/Q14 applies: withdrawn figures return when they meet the **applicable** |
| 7 | C1-grade provenance requirements, not every requirement of the C1 |
| 8 | branch-correctness campaign. |
| 9 | |
| 10 | ## Meta-rule |
| 11 | |
| 12 | This project does not need to appear smaller. It needs to distinguish clearly |
| 13 | between what exists, what has been measured, what is under active development, |
| 14 | and what is an architectural ambition. |
| 15 | |
| 16 | ## Target public architecture |
| 17 | |
| 18 | Product identity: **AIEN Neural Runtime**, described as **a sovereign agent |
| 19 | and inference runtime**. No public implication that AIEN replaces Linux or |
| 20 | macOS or is literally an operating system. Research documents may state that |
| 21 | AIEN explores operating-system abstractions for persistent agent state, |
| 22 | inference scheduling, physical context ownership, and execution authority. |
| 23 | |
| 24 | Three separated layers: |
| 25 | |
| 26 | 1. README: engineering. What it is, what works, what hardware, how to run it, |
| 27 | what has been measured, what does not work yet. |
| 28 | 2. Research and docs: architecture and research philosophy. |
| 29 | 3. CONSTITUTION and manifesto: values and long-term ambition. |
| 30 | |
| 31 | README rule: describe the smallest claim supported by current evidence. |
| 32 | Research docs may describe the larger hypothesis. The manifesto may describe |
| 33 | the larger ambition. |
| 34 | |
| 35 | ## Decisions Q1-Q14 (frozen) |
| 36 | |
| 37 | - Q1/Q7 license: code under plain Apache-2.0. Model weights and generated |
| 38 | artifacts carry separate licenses where necessary. Anti-enclosure becomes a |
| 39 | clearly nonbinding `COVENANT.md` with the public ask "Keep foundational |
| 40 | advances open". Remove language implying the covenant modifies Apache |
| 41 | rights, retroactively changes historical licenses, overrides third-party |
| 42 | ToS, or establishes automatic statutory damages. No Git history rewrite. |
| 43 | - Q2 fallback: replace the `zero fallback` interpretation in README and |
| 44 | `docs/AIEN_RUNTIME_ARCHITECTURE.md` with: "The recorded fallback counter |
| 45 | was zero for the GPU operations instrumented by this benchmark. The current |
| 46 | counter does not observe all CPU-executed operations; C1 is adding |
| 47 | per-operation device provenance." Verified in code: |
| 48 | `crates/aien-inference-abi/src/blackwell_backend.rs` increments the counter |
| 49 | only on matmul, batch matmul, BF16 paged attention, and logits paths, while |
| 50 | `rmsnorm`, `apply_rope`, `swiglu`, and `gqa_attention` run on CPU with no |
| 51 | increment. First action, before any benchmark is amplified further. |
| 52 | - Q3 naming: per target architecture above. |
| 53 | - Q4/Q8 benchmarks: formal publication rule. Every headline performance |
| 54 | number must resolve to a reproducible command and evidence artifact in |
| 55 | `benchmarks/`. Primitives are reported as primitives with artifact links, |
| 56 | never translated into system-level conclusions. Retire the "Verified |
| 57 | Performance Benchmarks" heading in favor of "Measured Results" or |
| 58 | "Reproducible Benchmarks". Comparison rows must state exact |
| 59 | software/version, hardware, commit, command, workload, concurrency, |
| 60 | measurement boundary, and artifact. |
| 61 | - Q5 installer: keep the one-line installer as a labeled convenience path, |
| 62 | not the high-assurance mechanism. Track signed releases, immutable |
| 63 | versions, checksums/signatures, and pinned manifests as follow-up work. |
| 64 | - Q6 voice: engineering terms in code-facing text. "Nesting Ritual" becomes |
| 65 | hardware/runtime initialization or initiation sequence. "cognitive soul" |
| 66 | becomes seat profile or agent profile. "Sovereign Coordination" becomes |
| 67 | Contact. Landing order: identity, implemented scope, hardware, diagram, |
| 68 | install, run example, tests, measurements, limitations, deeper links. |
| 69 | - Q9/Q11 repos: every public repo must have exactly one authoritative |
| 70 | responsibility that cannot be served better as a directory or crate in |
| 71 | another repo. Canonical set: `aien-sovereign-core`, `aien-protocols` |
| 72 | (contingent on real versioning below), `benchmarks` (immutable evidence), |
| 73 | `aegis-runtime` (confirmed independent: own tags, release pipeline, |
| 74 | `:18096` deploy target, distinct codebase). Archive the rest with pointer |
| 75 | READMEs. Archive preserves links and provenance; nothing is deleted. |
| 76 | - Q10 tiers and limitations: per sections below. |
| 77 | - Q12 rename: core `aien-inference-protocol` becomes `aien-inference-service` |
| 78 | (request/event/service execution interface). The protocols-repo crate keeps |
| 79 | the `aien-inference-protocol` name (shared cross-repo state, context, |
| 80 | branch, lease types). |
| 81 | - Q13 (superseded 2026-09-27): this document is canonical only for the public-surface cleanup workstream. Whole-system sequencing is owned by `aien-spark/aien-architecture/CURRENT_EXECUTION_PLAN.md`. Execution here remains sequenced as one-purpose PRs. |
| 82 | - Q14: benchmark engineering proceeds independently. Republication gates on |
| 83 | the applicable C1-grade provenance requirements. C1 owns the evidence |
| 84 | standard, not generation. |
| 85 | |
| 86 | ## Repo dispositions |
| 87 | |
| 88 | Keep: `aien-sovereign-core`, `aien-protocols` (after versioning), |
| 89 | `benchmarks`, `aegis-runtime`, the two sites, org profile. |
| 90 | Versioning requirements for `aien-protocols` before it may be called stable: |
| 91 | semantic version tags from `v0.1.0`, `CHANGELOG.md`, compatibility policy, |
| 92 | explicit deprecation policy, each published consumer records the protocol |
| 93 | version it targets. Until then it is described as an independently consumed |
| 94 | spec repo, not a stable versioned standard. Known path consumers today: |
| 95 | `aegis-runtime`, `aien-local-stack`, `spark-inquisitor`, `spark-rsi`. |
| 96 | Archive with pointer README (canonical replacement named, no longer |
| 97 | authoritative stated): `spark-inquisitor`, `harvester`, `spark-adapters`, |
| 98 | `spark-debugger`, `spark-supervisor`, `spark-hive`, `aien-harness`, |
| 99 | `spark-dream`, `cortex-rs`, `rad-id-sync`, `spark-crumbs`, `crumb-spec` |
| 100 | (spec content folds into protocols or core docs), `aien-local-stack` |
| 101 | (composition example folds into core). Remove the standalone `spark-aegis/` |
| 102 | export copy (non-git duplicate of the core crate); the core crate stays. |
| 103 | |
| 104 | ## Rename map |
| 105 | |
| 106 | - `aien-sovereign-core/crates/aien-inference-protocol` to |
| 107 | `aien-inference-service`. Update dependents (known: `aien-inference-runtime` |
| 108 | and any path consumers inside core). |
| 109 | - No change to the `aien-protocols` crate of the same name. |
| 110 | |
| 111 | ## License migration |
| 112 | |
| 113 | 1. `LICENSE`: remove Sections 10 through 17 (the SRCL rider). Plain |
| 114 | Apache-2.0 governs from the migration commit forward. History is not |
| 115 | rewritten; prior commits remain historical facts. |
| 116 | 2. All 31 workspace crates: `license.workspace` from `SRCL-1.0` to |
| 117 | `Apache-2.0`. |
| 118 | 3. New `COVENANT.md`: nonbinding values statement with explicit language |
| 119 | that it grants and restricts no legal rights. |
| 120 | 4. Update references: `AGENT_CODE_OF_CONDUCT.md`, README license section |
| 121 | (including removal of the "essentially Apache" characterization and the |
| 122 | Sections 11-13 covenant summaries), badges. |
| 123 | 5. `CONTRIBUTING.md` already states Apache-2.0 for code and CC0-1.0 for |
| 124 | benchmark data; reconcile any remaining SRCL mentions with the migration. |
| 125 | 6. Legal review of the final shape is tracked work, not AI-generated closure. |
| 126 | |
| 127 | ## README and content rules |
| 128 | |
| 129 | Landing order: identity plus one sentence, implemented scope, hardware, |
| 130 | diagram, install, run example, tests, measurements, limitations, deeper |
| 131 | links. Cosmology, mission narrative, and partnership framing move below the |
| 132 | engineering front door into linked research and values documents. |
| 133 | Terminology substitutions per Q6. Subsystem list headlines Tier 1 only: |
| 134 | Cortex, CLI and runtime composition, KV and COW manager, SequenceArena and |
| 135 | scheduler, inference ABI, Qwen FP8 MoE work, C1 provenance infrastructure, |
| 136 | each with evidence links. Tier 2 (AEGIS boundary, MCP integration, |
| 137 | supervisor, debugger, cockpit, distillation pipeline, Harvester) may appear |
| 138 | only in an explicitly labeled experimental or development section with |
| 139 | reduced visual status. Tier 3 (RSI, Dream, Hive higher-level abstractions, |
| 140 | self-improvement claims, Open Humanity concepts) stays out of the README. |
| 141 | Platform section follows `docs/PLATFORM_MATRIX.md`: GB10 primary reference, |
| 142 | Apple Silicon and x86_64 per measured status, AMD ROCm marked experimental |
| 143 | and architected (runtime qualification pending). |
| 144 | |
| 145 | ## Known Limitations (ships in the cleanup) |
| 146 | |
| 147 | Minimum contents: fallback-counter scope and hybrid CPU/GPU execution; |
| 148 | platform targets not yet qualified; license transition in flight; installer |
| 149 | not yet signature-verifying; withdrawn benchmark figures and their |
| 150 | regeneration status; Qwen full-runtime qualification incomplete; C1 evidence |
| 151 | campaign in progress. |
| 152 | |
| 153 | ## Benchmark withdrawal and republication rules |
| 154 | |
| 155 | Withdrawn immediately if provenance does not meet the bar: fork 2.06 us, COW |
| 156 | mutation 13.30 us, the 500.0x ratio and associated memory figures, and the |
| 157 | BENCH comparison table including the FastAPI baseline. Findings on record: |
| 158 | the cited `benchmarks/data/benchmarks_latest.json` does not exist in the |
| 159 | repo, the `gb10_canonical` artifact directory exists only in the external |
| 160 | benchmarks repo, the microbenchmark literals appear only in README text, and |
| 161 | no in-repo command produces the FastAPI baseline. Replacement content gives |
| 162 | the exact regeneration commands (`bench_inference_stack`, |
| 163 | `cow_branching_tests`, `bench_apples_to_apples` with parameters) and states |
| 164 | that figures are being regenerated under the evidence standard. |
| 165 | Applicable C1-grade provenance for any republished figure: commit identity, |
| 166 | hardware and environment record, exact command, raw samples, SHA-256 |
| 167 | digests, measurement definition, and reproducibility steps. A primitive |
| 168 | allocator benchmark does not need branch-equivalence testing; it does need |
| 169 | every item in the previous sentence. |
| 170 | |
| 171 | ## PR sequence and acceptance criteria |
| 172 | |
| 173 | 1. Fallback wording correction. Accept: both files carry the frozen sentence, |
| 174 | no remaining unqualified `fallback_count == 0` claim in public text. |
| 175 | 2. Benchmark withdrawal plus regeneration instructions. Accept: listed figures |
| 176 | gone from README, commands present, no new figures without artifacts. |
| 177 | 3. Crate rename with dependent updates. Accept: workspace builds, tests pass, |
| 178 | no stale crate name in manifests or imports. |
| 179 | 4. License transition plus `COVENANT.md`. Accept: rider gone, fields flipped, |
| 180 | references reconciled, preflight clean. |
| 181 | 5. README and voice restructuring plus Known Limitations. Accept: landing |
| 182 | order, tier gating, terminology substitutions, limitations present. |
| 183 | 6. `aien-protocols` versioning. Accept: tags, changelog, compat and |
| 184 | deprecation policies, consumer version pins recorded. |
| 185 | 7. Repo archival with pointer READMEs. Accept: each archived repo points at |
| 186 | its canonical home and states non-authoritative status. |
| 187 | 8. Installer trust-path follow-up. Accept: convenience labeling in place, |
| 188 | signing work tracked with acceptance defined. |
| 189 | 9. Republication of regenerated figures. Accept per figure: artifact bundle |
| 190 | satisfies the applicable provenance list and relevant verifier checks. |
| 191 | |
| 192 | General gate per PR: branch discipline, `bash scripts/agent-preflight.sh` |
| 193 | exit 0, evidence in the PR description, no unrelated scope. |