105 lines
3.6 KiB
Markdown
105 lines
3.6 KiB
Markdown
# Context Strategy
|
|
|
|
## 1. Default Strategy
|
|
|
|
The main orchestrator should not process the full source in one context.
|
|
|
|
Use:
|
|
|
|
```text
|
|
main session -> source registration and orchestration
|
|
whole-source gestalt reviewer -> full-source high-context structure review
|
|
worker thread -> bounded range processing
|
|
file handoff -> durable cross-session state
|
|
```
|
|
|
|
The whole-source gestalt reviewer is a real sub-session participant, not the main session. It exists to preserve the overall shape of coherent long discussions before range workers begin.
|
|
|
|
## 2. Whole-Source Gestalt Alignment Rule
|
|
|
|
For discussion drafts that fit inside a high-context participant, run a whole-source gestalt alignment pass before segmentation.
|
|
|
|
The pass must judge:
|
|
|
|
```text
|
|
- whether the source is coherent, mixed, or fragmented
|
|
- the global topic portrait
|
|
- the main structural layers
|
|
- core tensions and governing questions
|
|
- model-evolution lines
|
|
- likely parent/child/tool/case/action-layer distinctions
|
|
- risks that chunk-first workers may flatten into false peer topics
|
|
```
|
|
|
|
Step 0 is an alignment loop. Its output must be inspected by the user before downstream automation treats it as binding structure. User corrections should be recorded and either folded into another Step 0 pass or captured as an explicit human-correction record.
|
|
|
|
Mode selection after Step 0:
|
|
|
|
```text
|
|
coherent -> structure-first mode; workers receive the confirmed global portrait as a lens.
|
|
mixed -> macro-topic mode; split into macro-topics and run Step 0 per macro-topic when needed.
|
|
fragmented -> flat-discovery mode; workers do not receive a strong hierarchy lens.
|
|
```
|
|
|
|
If the source is too large for one gestalt pass, record the exception and use a small number of macro-range gestalt passes before worker segmentation.
|
|
|
|
## 3. Range Order
|
|
|
|
```text
|
|
1. H1 rounds: R01, R02, R03
|
|
2. H2 sections when a round is too large
|
|
3. source block batches when a section is too large
|
|
```
|
|
|
|
## 4. Worker Input
|
|
|
|
Each worker gets:
|
|
|
|
```text
|
|
- thread-start packet
|
|
- participant invocation packet
|
|
- exact source range
|
|
- confirmed whole-source gestalt summary, macro-topic split plan, or recorded exception
|
|
- output path
|
|
- forbidden actions
|
|
- return packet template
|
|
```
|
|
|
|
In structure-first mode, workers should use the gestalt summary as orientation. They may challenge it with local evidence, but they must explicitly mark the challenge and cite the source range.
|
|
|
|
In flat-discovery mode, workers should remain minimally biased and extract local topics without forcing a global hierarchy.
|
|
|
|
For topic-doc material extraction, workers should receive:
|
|
|
|
```text
|
|
- confirmed topic graph
|
|
- assigned topic node or topic group
|
|
- routed source block ids
|
|
- source excerpts or exact source ranges
|
|
- required material-unit output schema
|
|
- distortion guardrails from Step 0 and human confirmation
|
|
```
|
|
|
|
## 5. Worker Output
|
|
|
|
Each worker writes:
|
|
|
|
```text
|
|
- participant output file
|
|
- execution or returned-output record
|
|
- thread-return packet
|
|
- unresolved issue list, if needed
|
|
```
|
|
|
|
## 6. Main Session Reading Rule
|
|
|
|
The main session reads worker summaries and indexes first. It reads source excerpts only for verification or repair.
|
|
|
|
The main session may read the user-confirmed whole-source gestalt output because it is a participant result with a record. It must not replace that result with its own informal full-source judgment.
|
|
|
|
The main session should not be the primary extractor for topic-doc material units when a worker/sub-session can handle the extraction. If the main session performs a small bounded extraction for pragmatic reasons, record the reason in the run notes or audit log.
|
|
|
|
## 7. Continuation Rule
|
|
|
|
Create a continuation handoff after each major pass or before any expected context pressure.
|