opencode/specs/v2
Kit Langton 0726f09b05 feat(core): make path-local instruction discovery durable
Replace synthetic-message instruction injection with a durable
discovery projection so discovered AGENTS.md files survive compaction,
forks, reverts, and restarts.

- Add the instruction_file table and the durable
  session.instructions.discovered event; projection stores each
  discovered path and content with its owning assistant-message
  boundary and durable discovery order.
- Fold discovered files into the core/instructions source through
  InstructionDiscovery, absorbing SessionInstructions. Completed
  compaction rebaselines restate discovered instructions instead of
  summarizing them away.
- Re-read discovered files live at each observation so mid-session
  edits reach the model; the frozen discovery content stands in only
  when a file becomes unreadable.
- Narrate instruction file changes as per-file deltas via diffByKey,
  restating the full set only for pure reorderings.
- Fork copies discoveries within the inherited transcript, committed
  revert removes discoveries past the revert boundary, and Session
  movement clears them so the destination initializes a complete
  baseline.
2026-07-06 17:36:30 -04:00
..
api.html chore: generate 2026-05-13 14:59:13 +00:00
catalog-config-plugin-lifecycle.md feat(core): add embedded v2 session runtime and tool foundation (#30632) 2026-06-03 23:02:17 -04:00
config.md fix(core): drop legacy config filename (#34650) 2026-06-30 11:12:15 -05:00
instructions.md refactor(schema): normalize module patterns (#33770) 2026-06-25 15:42:22 +00:00
provider-model.md refactor(schema): normalize module patterns (#33770) 2026-06-25 15:42:22 +00:00
provider-policy.md feat(core): add location-scoped config loading (#29625) 2026-05-30 04:06:08 +00:00
schema-changelog.md feat(core): make path-local instruction discovery durable 2026-07-06 17:36:30 -04:00
session.md feat(core): make path-local instruction discovery durable 2026-07-06 17:36:30 -04:00
todo.md docs: consolidate session work-unit vocabulary (#35218) 2026-07-03 14:49:05 -04:00
tools.md docs: consolidate session work-unit vocabulary (#35218) 2026-07-03 14:49:05 -04:00