interplane.Get Omega
Read in your language

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

branch main Branches Tags History

aien-sovereign-core-mv / docs / plans / public-surface-cleanup.md

193 lines · 11256 bytes Raw Blame History Rendered
1# Public Surface Cleanup Workstream Plan
2
3Status: scoped workstream plan / NOT A MASTER PLAN. No implementation in this document.
4Whole-system sequencing is governed by https://github.com/aien-spark/aien-architecture/blob/main/CURRENT_EXECUTION_PLAN.md.
5Decision set: Q1 through Q14, frozen with the operator. One wording refinement
6on Q8/Q14 applies: withdrawn figures return when they meet the **applicable**
7C1-grade provenance requirements, not every requirement of the C1
8branch-correctness campaign.
9
10## Meta-rule
11
12This project does not need to appear smaller. It needs to distinguish clearly
13between what exists, what has been measured, what is under active development,
14and what is an architectural ambition.
15
16## Target public architecture
17
18Product identity: **AIEN Neural Runtime**, described as **a sovereign agent
19and inference runtime**. No public implication that AIEN replaces Linux or
20macOS or is literally an operating system. Research documents may state that
21AIEN explores operating-system abstractions for persistent agent state,
22inference scheduling, physical context ownership, and execution authority.
23
24Three separated layers:
25
261. README: engineering. What it is, what works, what hardware, how to run it,
27 what has been measured, what does not work yet.
282. Research and docs: architecture and research philosophy.
293. CONSTITUTION and manifesto: values and long-term ambition.
30
31README rule: describe the smallest claim supported by current evidence.
32Research docs may describe the larger hypothesis. The manifesto may describe
33the 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
88Keep: `aien-sovereign-core`, `aien-protocols` (after versioning),
89`benchmarks`, `aegis-runtime`, the two sites, org profile.
90Versioning requirements for `aien-protocols` before it may be called stable:
91semantic version tags from `v0.1.0`, `CHANGELOG.md`, compatibility policy,
92explicit deprecation policy, each published consumer records the protocol
93version it targets. Until then it is described as an independently consumed
94spec repo, not a stable versioned standard. Known path consumers today:
95`aegis-runtime`, `aien-local-stack`, `spark-inquisitor`, `spark-rsi`.
96Archive with pointer README (canonical replacement named, no longer
97authoritative 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/`
102export 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
1131. `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.
1162. All 31 workspace crates: `license.workspace` from `SRCL-1.0` to
117 `Apache-2.0`.
1183. New `COVENANT.md`: nonbinding values statement with explicit language
119 that it grants and restricts no legal rights.
1204. 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.
1235. `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.
1256. Legal review of the final shape is tracked work, not AI-generated closure.
126
127## README and content rules
128
129Landing order: identity plus one sentence, implemented scope, hardware,
130diagram, install, run example, tests, measurements, limitations, deeper
131links. Cosmology, mission narrative, and partnership framing move below the
132engineering front door into linked research and values documents.
133Terminology substitutions per Q6. Subsystem list headlines Tier 1 only:
134Cortex, CLI and runtime composition, KV and COW manager, SequenceArena and
135scheduler, inference ABI, Qwen FP8 MoE work, C1 provenance infrastructure,
136each with evidence links. Tier 2 (AEGIS boundary, MCP integration,
137supervisor, debugger, cockpit, distillation pipeline, Harvester) may appear
138only in an explicitly labeled experimental or development section with
139reduced visual status. Tier 3 (RSI, Dream, Hive higher-level abstractions,
140self-improvement claims, Open Humanity concepts) stays out of the README.
141Platform section follows `docs/PLATFORM_MATRIX.md`: GB10 primary reference,
142Apple Silicon and x86_64 per measured status, AMD ROCm marked experimental
143and architected (runtime qualification pending).
144
145## Known Limitations (ships in the cleanup)
146
147Minimum contents: fallback-counter scope and hybrid CPU/GPU execution;
148platform targets not yet qualified; license transition in flight; installer
149not yet signature-verifying; withdrawn benchmark figures and their
150regeneration status; Qwen full-runtime qualification incomplete; C1 evidence
151campaign in progress.
152
153## Benchmark withdrawal and republication rules
154
155Withdrawn immediately if provenance does not meet the bar: fork 2.06 us, COW
156mutation 13.30 us, the 500.0x ratio and associated memory figures, and the
157BENCH comparison table including the FastAPI baseline. Findings on record:
158the cited `benchmarks/data/benchmarks_latest.json` does not exist in the
159repo, the `gb10_canonical` artifact directory exists only in the external
160benchmarks repo, the microbenchmark literals appear only in README text, and
161no in-repo command produces the FastAPI baseline. Replacement content gives
162the exact regeneration commands (`bench_inference_stack`,
163`cow_branching_tests`, `bench_apples_to_apples` with parameters) and states
164that figures are being regenerated under the evidence standard.
165Applicable C1-grade provenance for any republished figure: commit identity,
166hardware and environment record, exact command, raw samples, SHA-256
167digests, measurement definition, and reproducibility steps. A primitive
168allocator benchmark does not need branch-equivalence testing; it does need
169every item in the previous sentence.
170
171## PR sequence and acceptance criteria
172
1731. Fallback wording correction. Accept: both files carry the frozen sentence,
174 no remaining unqualified `fallback_count == 0` claim in public text.
1752. Benchmark withdrawal plus regeneration instructions. Accept: listed figures
176 gone from README, commands present, no new figures without artifacts.
1773. Crate rename with dependent updates. Accept: workspace builds, tests pass,
178 no stale crate name in manifests or imports.
1794. License transition plus `COVENANT.md`. Accept: rider gone, fields flipped,
180 references reconciled, preflight clean.
1815. README and voice restructuring plus Known Limitations. Accept: landing
182 order, tier gating, terminology substitutions, limitations present.
1836. `aien-protocols` versioning. Accept: tags, changelog, compat and
184 deprecation policies, consumer version pins recorded.
1857. Repo archival with pointer READMEs. Accept: each archived repo points at
186 its canonical home and states non-authoritative status.
1878. Installer trust-path follow-up. Accept: convenience labeling in place,
188 signing work tracked with acceptance defined.
1899. Republication of regenerated figures. Accept per figure: artifact bundle
190 satisfies the applicable provenance list and relevant verifier checks.
191
192General gate per PR: branch discipline, `bash scripts/agent-preflight.sh`
193exit 0, evidence in the PR description, no unrelated scope.