AIOS Proresearch
AIOS Intelligence System · Research Overview

Part II · Context, Memory, Files, and Composition

Document Hierarchy and Fractal Composition

A document is not a flat stream of text. Fragments form claims, sections make different contributions, documents serve projects, and project purpose can guide exact wording—while evidence and local changes can reshape the larger structure.

Semantic altitudeDocument SpineSource descent

1. Documents are nested fields of contribution

AIOS does not treat a document as a flat token sequence. A document is an artifact whose parts make different contributions to a purpose.

The relevant hierarchy is semantic, not merely typographic:

wording
  → sentence or claim
    → paragraph or local movement
      → section or movement
        → document
          → related document field
            → project
              → corpus and reusable practice

Each level can be read locally and in relation to the whole.

2. The Fractal Seed at document scales

ScaleOrientationDevelopmentLanding
SentencePoint or subjectRelation and qualificationClaim or implication
ParagraphLocal bearingEvidence, explanation, transitionContribution to movement
SectionRole in the documentOrdered distinctions or productionSection contribution and bridge
DocumentPurpose, audience, thesisArchitecture and developed substanceArtifact, conclusion, decision, or opening
Document fieldWhy several artifacts coexistSources, derivations, contradictions, dependenciesIntegrated project contribution
ProjectGoverning direction and outcomePlans, documents, decisions, workstreamsOutcome, evidence, learning, changed ground
CorpusPurpose of durable knowledgeAccepted, contested, superseded, and reusable resourcesNavigable and self-correcting practice

The seed does not make the scales identical. It makes their contributions mutually intelligible.

3. Semantic hierarchy versus file hierarchy

A folder tree answers where a file is located. A semantic hierarchy answers what the file and its parts contribute.

One folder can contain:

Their location alone does not establish standing or relation.

AIOS therefore combines:

4. Three hierarchies must not collapse

AIOS uses hierarchy in three different senses.

HierarchyOrganizesGoverning question
RepresentationalCorpus, project, document, movement, passage, source, and their projectionsAt what resolution is the meaning represented?
ComputationalBranches, stages, recursive calls, delegated work, and integration pathsHow is the work decomposed and recombined?
AuthoritySource standing, human grants, accepted decisions, promotion rights, and exact operation permissionsWho or what may make which consequence binding?

Document hierarchy is primarily representational. It can guide context selection and computational decomposition, but it does not grant authority. A high-level synthesis is not truer because it sits above a source. A recursive subcall does not acquire permission to revise a document. A planning projection can propose structure without becoming the accepted Document Spine.

The Fractal Seed can recur across all three hierarchies while preserving their different functions. Purpose may travel downward and results may travel upward, but consequential authority still follows explicit grants, standing, and review.

5. The document spine

The Document Spine is the accepted compact account of:

It lives in companion metadata and can be projected as a readable Document Map.

The spine is not:

It is a resumable account of current accepted structure.

6. Movements, not just headings

A heading states a label. A movement account states a contribution.

Weak map:

1. Background
2. Analysis
3. Recommendation

Stronger map:

1. Establishes why the apparent adoption problem is actually a trust problem.
2. Separates evidence about capability from evidence about institutional uptake.
3. Shows that governance architecture, not additional model scale, is the binding constraint.
4. Proposes a bounded pilot and names the evidence that would change the conclusion.

Contribution-oriented maps help both people and models understand how local material bears on the whole.

7. Bottom-up formation

Meaning can form from below:

Meaning forming upward toward reusable knowledge

How provisional fragments can earn larger structures and eventually yield a project contribution or candidate practice.

flowchart TB T["Thinking fragments and source observations"] --> D["Distinctions and local claims"] D --> M["Movements"] M --> S["Document structure"] S --> A["Coherent artifact"] A --> P["Project contribution"] P --> K["Candidate reusable knowledge"]
Semantic altitude · canonical10-document-hierarchy-and-fractal-composition--m01.mmd
Text equivalent

Thinking fragments and source observations → Distinctions and local claims; Distinctions and local claims → Movements; Movements → Document structure; Document structure → Coherent artifact; Coherent artifact → Project contribution; Project contribution → Candidate reusable knowledge.

The widening ladder protects formation: distinctions gather into movements before a document structure is imposed, and an artifact earns its larger role through contribution. Reaching the top makes practice a candidate; it does not retroactively formalize every fragment.

This route protects discovery:

The system does not require the final taxonomy before the thought begins.

8. Top-down bearing

Structure can also guide from above:

Purpose bearing down to exact language

How accepted purpose narrows through document and movement contributions until it can commission exact language.

flowchart TB P["Project purpose and outcome"] --> F["Document field and relationships"] F --> D["Document purpose and spine"] D --> M["Movement contribution"] M --> W["Passage commission"] W --> L["Exact language"]
Semantic altitude10-document-hierarchy-and-fractal-composition--m02.mmd
Text equivalent

Project purpose and outcome → Document field and relationships; Document field and relationships → Document purpose and spine; Document purpose and spine → Movement contribution; Movement contribution → Passage commission; Passage commission → Exact language.

Each downward step translates bearing for a smaller scale: project outcome shapes the document field, the spine shapes a movement, and the movement commissions a passage. The chain remains revisable from below; exact language is not dictated by altitude alone.

Top-down bearing helps the system decide:

The governing structure remains revisable when bottom-up work reveals a better form.

9. Composition is the movement between levels

Content composition is not only writing sentences. It includes:

Composition is therefore a structural intelligence spanning multiple resolutions.

10. Exact descent and semantic ascent

Descent for precision, ascent for consequence

How a source-grounded passage can change successively larger structures, while high-level purpose guides exact descent.

flowchart LR P["Project outcome"] --> D["Document contribution"] D --> M["Movement"] M --> X["Exact passage"] X --> S["Exact source"] S -. "supports or challenges" .-> X X -. "changes local contribution" .-> M M -. "changes document structure" .-> D D -. "changes project route" .-> P
Source descent · canonical10-document-hierarchy-and-fractal-composition--m03.mmd
Text equivalent

Project outcome → Document contribution; Document contribution → Movement; Movement → Exact passage; Exact passage → Exact source.

The solid path descends from outcome to source when precision is needed. The dotted path climbs through changed consequences: evidence can challenge a passage, alter its movement, reshape the document, and finally change the project route.

The system descends when precision matters and ascends when consequence matters.

An edit can begin at one sentence but require ascent if it changes a definition used across the document. A project review can begin at high altitude but require descent when a disputed claim turns on exact evidence.

11. Writing and structure are distinct altitudes

Writing altitude

Concerned with:

Structure altitude

Concerned with:

Structure work should not silently write prose. It can record a commission for later writing or invoke an explicitly authorized structural operation.

12. Accepted and proposed structure remain separate

A planning projection can show:

Until authorized and applied, proposed structure must not overwrite accepted companion metadata.

observation
  ≠ proposal
    ≠ person authorization
      ≠ file effect
        ≠ accepted new spine

This protects exploratory planning from becoming unintended document mutation.

13. Single-document composition loop

The single-document composition loop

How source-grounded material becomes a bounded edit and an accepted document only after holistic review.

flowchart TB T["Thinking or source material"] --> S["Immutable source snapshot"] S --> P["Editorial plan: movements and destinations"] P --> R["Resolve exact source and target ground"] R --> E["Apply bounded edits"] E --> H["Holistic integrity review"] H -->|"repair needed"| R H -->|"document holds"| A["Accept spine and refresh map"]
Document Spine10-document-hierarchy-and-fractal-composition--m04.mmd
Text equivalent

Thinking or source material → Immutable source snapshot; Immutable source snapshot → Editorial plan: movements and destinations; Editorial plan: movements and destinations → Resolve exact source and target ground; Resolve exact source and target ground → Apply bounded edits; Apply bounded edits → Holistic integrity review.

The repair loop is the argument. A bounded edit returns to exact source and target ground whenever whole-document integrity fails; only a document that holds can receive an accepted spine and refreshed map.

This separates:

The separation reduces the chance that an enthusiastic writer will reinterpret the source or that a local edit will evade whole-artifact review.

14. Cross-file composition loop

Authorized composition across files

How cross-file composition stays proposed until each destination-bound movement receives exact authorization, holistic review, and recorded lineage.

flowchart TB Q["Authorized project request"] --> F["Read project field by meaning"] F --> P["Plan cross-file movements"] P --> G["Ground each movement in exact sources and destinations"] G --> A{"Exact authorization?"} A -->|"No"| C["Return proposal or clarification"] A -->|"Yes"| O["Execute destination-bound operations"] O --> H["Close each affected document holistically"] H --> R["Write lineage and movement receipts"] R --> U["Refresh Homes, Maps, and Project Home"]
Operation10-document-hierarchy-and-fractal-composition--m05.mmd
Text equivalent

Authorized project request → Read project field by meaning; Read project field by meaning → Plan cross-file movements; Plan cross-file movements → Ground each movement in exact sources and destinations; Ground each movement in exact sources and destinations → Exact authorization?; Execute destination-bound operations → Close each affected document holistically; Close each affected document holistically → Write lineage and movement receipts; Write lineage and movement receipts → Refresh Homes, Maps, and Project Home.

The authorization fork prevents a useful plan from becoming an effect by implication. Approved movements land in named destinations, but closure is not complete until every affected document is reviewed, lineage is written, and the project views are refreshed.

Does not establish A useful destination does not authorize source removal; a move requires explicit authorization, validated destination writing, then bounded removal.

Operation semantics remain distinct:

A useful destination does not imply authority to remove the source. A move requires explicit authorization, successful destination write, validation, and only then bounded source removal.

15. Document boundaries are cognitive boundaries

A new document may be warranted when:

A new document is not warranted merely because the current file is long.

16. Hierarchy and contradiction

Internal consistency does not require every document to agree.

At project scale, the system should be able to represent:

The hierarchy should locate contradiction and consequence, not flatten it.

17. Completion at multiple scales

Completion should be stated at the level being closed.

ScaleCompletion question
PassageDoes this passage make its intended contribution without breaking its seams?
MovementDoes this section establish what the next movement depends on?
DocumentDoes the artifact fulfill its purpose and criteria with residual limits stated?
WorkflowDid all required stages produce one coherent artifact and completion account?
ProjectAre outcomes satisfied by evidence, decisions, artifacts, and accepted residual risk?
Practice resourceIs the reusable contribution, scope, evidence, and failure boundary established?

Activity and word count do not prove completion.

18. Document hierarchy as an interface model

The person should be able to move among:

The interface should preserve the feeling of working with documents, not with a database ontology. Structural machinery becomes visible when it helps the person make a real judgment.

19. Failure modes

Flat-file reasoning

The model receives entire files without understanding their contributions or relationships.

Outline absolutism

The current structure becomes a rule that new thinking cannot challenge.

Local-edit myopia

A passage changes without reviewing definitions, references, transitions, or whole-document consequence.

Whole-document rewrite

A bounded revision becomes authority to regenerate the entire artifact.

Project monolith

All work is forced into one large document or one global context.

Fragmentation by length

New files are created without distinct purpose, audience, or completion conditions.

Folder-semantic confusion

Location is mistaken for standing or relation.

20. Research evaluation

The hierarchy can be tested through:

The two directions named here are developed as one circuit in Chapter 11, bottom-up personal composition, and Chapter 12, top-down operational knowledge.

21. Research connection: hierarchy extends reach but does not confer authority

AIOS uses document hierarchy to preserve contribution, exact descent, and whole-system bearing. Current research shows why relational and recursive structures can help without making them canonical. The peer-reviewed HippoRAG 2 demonstrates gains from graph-based external memory on its evaluated tasks. Two recent preprints sharpen the boundary: GraphRAG-Bench finds that graph retrieval gains are conditional and may bring substantial prompt, redundancy, and latency costs, while Recursive Language Models demonstrates processing reach across very large inputs with some trajectories requiring extensive model calls.

These findings support the use of representational and computational hierarchy when the work warrants it. They do not show that one hierarchy is universally superior, that a generated graph is complete, or that a computational decomposition has epistemic or operational authority. That separation is an AIOS architectural requirement to be tested directly.

Read deeper in the normalized context-composition brief, full context-composition memo, normalized relational-memory brief, and full relational-memory memo.