Part II · Context, Memory, and Artifacts
Continuous Context Optimization and Deliberate Compression
Replaces transcript accumulation with continuous recomposition from durable ground. It shows how multiple resolutions preserve orientation while keeping exact evidence available for deeper inspection and correction.
STAYING COHERENT WITHOUT A GROWING TRANSCRIPT
1. Recomposition replaces emergency compression
AIOS maintains useful context by composing each judgment from durable semantic ground. The system does not wait for a transcript or private scratchpad to exceed its window and then collapse the accumulated process into a universal summary.
Three operations remain distinct:
- continuous optimization rebuilds context around the current purpose, object, standing, and movement;
- use-shaped compression creates a projection for a declared future use while recording loss and a route back to exact ground;
- reactive compression repairs an overgrown interaction history after context pressure has already made the field difficult to use.
Continuous optimization is the default. Deliberate compression supports it. Reactive compression is a failure-recovery technique rather than the architecture of continuity.
2. The system spirals through changed ground
A long-running scratchpad moves forward by accumulation:
prompt → response → observation → appended history → larger reread → emergency summary
AIOS returns repeatedly to a durable situation that each accepted movement has changed:
durable ground → composed situation → bounded judgment
→ integrated product and delta → renewed ground → next composition
Diagram 1 · §2
Text equivalent
History → More history; More history → Pressure; Pressure → Emergency summary; Durable semantic ground → Purpose-shaped capsule; Purpose-shaped capsule → Judgment and delta; Judgment and delta → Integrated artifact and memory; Integrated artifact and memory → Purpose-shaped capsule.
The loop is a spiral because its apparent return point is never identical. A decision gains standing, an artifact changes, an alternative is parked, a source is superseded, or a new implication enters the situation. The next context begins from that changed world.
The spiral is the difference between accumulation and recomposition. Accumulation returns to the same record with more process attached; recomposition returns to the work after product and delta have changed what is true, active, accepted, or unresolved. The next movement can resemble the prior one without repeating it because its orientation has inherited those changes. Continuity therefore appears as recurrent form through changing ground, not as preservation of one ever-growing context.
3. What continuous optimization commits to
Every context is organized by the current purpose and object. Prior material enters because it bears, not because it happened recently. Accepted results live in appropriate durable forms. Stale and irrelevant ground leaves routine attention. Exact sources remain reachable. Resolution expands or contracts with the judgment. Standing travels with the material.
This discipline keeps context actively fitted to the work while the underlying corpus grows. It also makes selection reviewable: a context can be compared with the ground that was available and the movement it was meant to serve.
The boundary
Continuous optimization is a comparative design claim, not a guarantee of mathematical optimality. Relevant ground can still be missing, a summary can still distort, and a model can still judge poorly. The test is whether systematic recomposition produces better long-horizon work than reactive management of accumulated history.
4. Compression follows intended use
One summary cannot serve every future judgment. AIOS creates projections with explicit purposes.
| Projection | What it preserves | Intended use |
|---|---|---|
| Resumption account | Present state, last consequential change, decisions, open lines, next movement | Return after interruption |
| Decision account | Alternatives, evidence, criteria, rationale, dissent, authority, reopen conditions | Reconsider or apply a decision |
| Delegation account | Parent purpose, accepted ground, grants, scope, limits, expected return | Commission bounded work |
| Artifact account | Purpose, audience, architecture, contribution of parts, repairs owed | Compose, edit, or review a document |
| Audit account | Provenance, authority, revisions, exact changes, sources, supersession | Verify or investigate |
| Promotion account | Recurring method, evidence, scope, counterexamples, proposed effect | Evaluate reusable knowledge |
| Navigation account | High-level objects, relations, standing, and descent paths | Orient without loading everything |
Each projection remains an expression of durable ground. None becomes a competing canonical memory merely because it is concise.
5. Compression carries integrity controls
A consequential compression preserves governing purpose, claim strength, material alternatives, contradiction, decision rationale, authority, uncertainty type, dependencies, source paths, supersession, and the consequence for which the account was prepared.
It also declares two controls.
Loss statement: which nuance, details, examples, language, chronology, or minority evidence were omitted.
Re-entry condition: which future event requires exact sources or a deeper resolution to return.
An illustrative compression record can make both explicit:
loss_statement:
- exact interview wording
- two weak counterexamples
- full chronology of the decision discussion
reentry_when:
- a claim is quoted publicly
- the audience segmentation assumption is challenged
- the decision is reopened
These controls convert compression from silent information loss into a governed semantic product.
6. Multi-resolution context
The L0–L5 labels below describe compression depth within this chapter. They are a local view of how much bearing, exact ground, and lineage a composed projection carries—not a universal taxonomy of memory. AIOS has no single canonical resolution taxonomy. Thinking, writing, editing, structural work, review, planning, and other movements resolve ground differently according to the person's focus, role, intention, and active object. Chapter 08 describes the wider memory ecology; Chapter 10 follows descent through artifact structure.
Diagram 2 · §6
Text equivalent
L0 — One-line bearing → L1 — Situation or resumption brief; L1 — Situation or resumption brief → L2 — Project / artifact / decision account; L2 — Project / artifact / decision account → L3 — Movement map and selected evidence; L3 — Movement map and selected evidence → L4 — Exact source or artifact prose; L4 — Exact source or artifact prose → L5 — Full lineage and operation evidence.
Orientation often needs L0–L2. Planning works mainly across L1–L3. Exact editing requires L2–L4. Source audit descends to L5. High-consequence correction moves repeatedly among levels as disputed summaries meet exact evidence and lineage.
Optimization is therefore a resolution-selection problem as well as a relevance-selection problem.
7. Context breathes with the work
The field contracts when the object is precise, the operation is local, purpose and decisions are stable, exact target language is available, unrelated alternatives would interfere, or the person seeks a light movement.
It expands when the object is unclear, consequences reach distant parts of the system, sources conflict, a projection is challenged, the work changes altitude, cross-file relationships bear, a parked branch reaches its re-entry condition, or completion and promotion are under review.
The dynamic composition controls established in Chapter 06—depth, aperture, temporal ground, condition, selected guidance, artifact scale, risk, and judgment form—shape this breathing. Expansion follows semantic need rather than unused token capacity.
8. Relevance changes over time
Material can become stale while remaining historically true. A source changes, a time condition expires, contrary evidence accumulates, purpose shifts, an artifact diverges, a method reveals counterexamples, or a later decision supersedes the prior form.
Staleness changes foreground standing. The system labels, reviews, parks, or omits the material from routine context while preserving lineage. It does not silently rewrite the past to match the present.
9. An ecology of attention
| Region | Function | Context behavior |
|---|---|---|
| Foreground | One active judgment or tightly related set | Included at the required detail |
| Near background | Dependencies, open decisions, likely next bearings | Selected or prepared when they bear |
| Durable background | Accepted ground and sources retained for later use | Recalled by relevance and standing |
| Parked field | Unresolved material with explicit re-entry conditions | Remains outside until its trigger bears |
| Superseded field | Lineage that no longer governs | Returns for history, audit, or comparison |
| Released material | Temporary context removed from routine maintenance | Recovers only from remaining source or archive |
Recency participates in recall, but purpose, dependency, risk, contradiction, and active commitment usually carry more weight.
10. Parking preserves possibility outside the foreground
A parked branch records the question or alternative, why it was separated, its current standing, relevant sources and decisions, its re-entry condition, and its disposition. It may remain active elsewhere, parked, rejected, integrated, superseded, or released.
Parking keeps unresolved thought honest without making every unresolved thought compete for current attention. When its condition arrives, the branch returns with its prior bearing intact.
11. Purposeful forgetting governs future attention
Forgetting in AIOS means a controlled change in expected recall.
Release from foreground leaves material nearby while ending its competition with the active movement.
Dormancy preserves a compact identity, standing, and re-entry condition in routine navigation.
Archival custody retains exact sources while ending maintenance of temporary summaries, annotations, and process artifacts.
Deletion removes exact content under explicit human authority with known provenance and recovery consequences.
Contrary evidence, decision rationale, source custody, unresolved dissent, and the only lineage of accepted ground remain protected from convenience-driven loss.
12. Anticipatory preparation
The system can prepare a non-authoritative runway of likely next movements, relevant ground, fitted guidance, alternatives, and provisional context compositions. Fresh input validates object continuity, currency, fit, authority, and contraindications before any preparation enters the active judgment.
If attention moves elsewhere, the runway can be discarded without changing accepted ground. This separates latency reduction from hidden decision-making.
The boundary
Anticipation prepares possibilities; it does not originate objectives or grant authority. The person's present input and the durable situation determine whether prepared material bears.
13. Comparison with common memory strategies
| Strategy | Immediate strength | Long-horizon failure | AIOS response |
|---|---|---|---|
| Full transcript | Complete local process history | Noise, recency bias, weak standing | Preserve products and reconstruct situation |
| Rolling summary | Compact and easy to carry | One projection becomes universal; loss disappears | Use-shaped projections with loss and re-entry |
| Generic retrieval | Broad access to sources | Similarity ignores purpose, altitude, and authority | Compose through relevance and standing |
| Large memory profile | Persistent personalization | Stale assumptions harden and overfit | Scoped, revisable, evidence-linked memory |
| Autonomous scratchpad | Supports multi-step continuation | Hidden state, fragile restart, difficult audit | Durable files, bounded seats, explicit returns |
| Manual briefing | Often high quality | High reconstruction burden on the person | Compose from durable semantic records |
14. Evaluation and falsification
Context optimization is measured through relevance, fidelity, continuity, efficiency, adaptivity, and outcome quality. Useful metrics include material use of supplied ground, omitted ground later required, preservation of contradiction, source-descent accuracy, resumption quality, context size, clarification turns, human restatement effort, correct re-entry, artifact coherence, and correction after challenge.
Relative to transcript continuation and generic retrieval, AIOS predicts fewer user restatements, better-preserved decision rationale, less disappearance of counterevidence, fewer unrelated changes during local edits, stronger resumption after model or session change, bounded context growth, and more diagnosable selection failures.
The overhead may exceed the value for short, low-consequence, or weakly structured work. That boundary is part of the research result rather than an exception to be explained away.