54 lines
1.0 KiB
Markdown
54 lines
1.0 KiB
Markdown
# Context Strategy
|
|
|
|
## 1. Default Strategy
|
|
|
|
The orchestrator should not process the full source in one context.
|
|
|
|
Use:
|
|
|
|
```text
|
|
main session -> source registration and orchestration
|
|
worker thread -> bounded range processing
|
|
file handoff -> durable cross-session state
|
|
```
|
|
|
|
## 2. 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
|
|
```
|
|
|
|
## 3. Worker Input
|
|
|
|
Each worker gets:
|
|
|
|
```text
|
|
- thread-start packet
|
|
- participant invocation packet
|
|
- exact source range
|
|
- output path
|
|
- forbidden actions
|
|
- return packet template
|
|
```
|
|
|
|
## 4. Worker Output
|
|
|
|
Each worker writes:
|
|
|
|
```text
|
|
- participant output file
|
|
- execution or returned-output record
|
|
- thread-return packet
|
|
- unresolved issue list, if needed
|
|
```
|
|
|
|
## 5. Main Session Reading Rule
|
|
|
|
The main session reads worker summaries and indexes first. It reads source excerpts only for verification or repair.
|
|
|
|
## 6. Continuation Rule
|
|
|
|
Create a continuation handoff after each major pass or before any expected context pressure.
|