Skip to content

Commit 521149a

Browse files
committed
Refine sheet dismissal, add cortex list, update docs
UX & behavior: Add route-dismiss logic and a dismissible prop to SheetContent (ROUTE_DISMISS_PROGRESS threshold, onRouteDismiss callback, swipe/escape/click handling), simplify overlay rendering, and expose frontmost to WorkbenchSheet so only the frontmost sheet is dismissible/overlayed and shows the close button. Styling: adjust sheet sizing/positioning in globals.css to use fixed right/width and full-width behavior. Feature: render cortex frames in DispatchSheet by importing cortexEventsFromTranscript and adding a RuntimeItem list with onOpenCortex. Docs/config: strengthen review/self-check guidance in SKILL.md and code-review SKILL.md, add a guidance line to AGENTS.md, and add .codex/config.toml with project markers and doc size limit. Misc: minor typings and imports cleanup across components.
1 parent f74f981 commit 521149a

108 files changed

Lines changed: 2925 additions & 4550 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agents/skills/agent-self-check/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ These checks have higher authority than "tests passed." Passing tests do not mak
2929

3030
Fix these directly when they are in your changed code. If fixing one would change public behavior, package exports, persisted data handling, or compatibility, stop and report it as a deferred concern instead of silently preserving or deleting it.
3131

32+
For each issue you find, name the mechanism before fixing it. Do not patch symptoms by adding local conditionals, broad fallbacks, or compatibility wrappers unless that is the intended design.
33+
3234
### Modeling
3335

3436
- closed protocol/domain/state handling written as if/else return soup instead of exhaustive `Match` or `switch` with a `never` check

.agents/skills/code-review/SKILL.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,26 @@ Do not rewrite code during a review unless the user asks for fixes. If you find
2222

2323
Treat the checklist below as review gates, not taste notes. If changed code violates one, either file a finding or explicitly explain why the local context makes it acceptable.
2424

25+
Review diagnosis must identify the mechanism, not just the symptom. Prefer:
26+
27+
- observation: what the diff/code/test shows
28+
- inference: what mechanism likely produced it
29+
- prescription: what change removes the mechanism
30+
- measurement: what check proves the fix
31+
32+
For recurring problems, use the frame: signal, loop, constraint, intervention, measurement.
33+
2534
## Finding Format
2635

2736
For each finding, include:
2837

2938
- priority: `P0`, `P1`, `P2`, or `P3`
3039
- confidence: `C0`, `C1`, `C2`, or `C3`
3140
- tight file/line reference
32-
- why it matters
33-
- what should change
41+
- observation: the concrete evidence
42+
- mechanism: why it creates risk
43+
- prescription: what should change
44+
- measurement: what would verify the fix
3445

3546
Order findings by severity. Keep summaries secondary.
3647

.agents/skills/docs-reading/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ the conflict if it affects the task.
4040
- Core primitives: `docs/primitives/primitives.md`, plus the specific note
4141
such as `tool.md` or `agent-comm.md`.
4242
- Runtime: `docs/runtime/architecture.md`,
43-
`docs/runtime/mission-system.md`, and `docs/runtime/isolation.md`.
43+
`docs/runtime/mission-system.md`, `docs/runtime/isolation.md`,
44+
`docs/maps/runtime-truth-map.md`, and `docs/maps/not-real-yet.md`.
4445
- Server: read runtime docs first, then server package code; server is a host
4546
adapter, not runtime owner.
4647
- Client/operator surfaces: `docs/clients/README.md` and runtime command,
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
name: roadmap-management
3+
description: Use when creating, updating, reviewing, or promoting Theseus roadmap items, including public roadmap notes, internal roadmap status maps, planning lanes, GitHub issue readiness, and OSS roadmap hygiene.
4+
---
5+
6+
# Theseus Roadmap Management
7+
8+
Use this skill when roadmap or planning work changes what Theseus says it is
9+
building next.
10+
11+
Roadmap work is status management, not aspiration capture. Keep current truth,
12+
planned work, research, and rejected paths separate.
13+
14+
## Read Order
15+
16+
Start with:
17+
18+
1. `docs/direction/roadmap.md`
19+
2. `docs/maps/roadmap-status-map.md`
20+
3. `docs/maps/runtime-truth-map.md`
21+
4. `docs/maps/not-real-yet.md`
22+
5. the owning concept note for the roadmap item
23+
24+
If an item concerns implementation, verify against source before marking it
25+
`shipped`, `active`, or `next`.
26+
27+
## Roadmap Artifacts
28+
29+
- `docs/direction/roadmap.md`: concise public-facing roadmap.
30+
- `docs/maps/roadmap-status-map.md`: internal evidence table and promotion state.
31+
- GitHub issues: execution units only after the item is actionable.
32+
- GitHub milestones/projects: sequencing containers, not doctrine.
33+
34+
Do not put loose ideation in the roadmap. Move it to `docs/brainstorms` or
35+
`docs/drafts` first.
36+
37+
## Status Vocabulary
38+
39+
Use one status per item:
40+
41+
- `shipped`: implemented and verified.
42+
- `active`: currently being built.
43+
- `next`: intended soon and clear enough to plan.
44+
- `designed`: accepted direction, not scheduled.
45+
- `research`: needs investigation, prototype, or decision.
46+
- `blocked`: dependency or unresolved decision is known.
47+
- `parked`: not rejected, but not worth attention now.
48+
- `rejected`: deliberately not doing.
49+
50+
Avoid `future`. It hides whether an item is designed, research, blocked, or
51+
parked.
52+
53+
## Promotion Pipeline
54+
55+
```text
56+
brainstorm -> draft -> designed -> next -> active -> shipped
57+
```
58+
59+
Promotion rules:
60+
61+
- Do not promote directly from brainstorm to active.
62+
- Do not mark `next` without a `done when` test.
63+
- Do not mark `active` without an owner and evidence that work has started.
64+
- Do not mark `shipped` unless code, tests/checks, and docs agree.
65+
- When promoting or demoting, update `roadmap-status-map.md` in the same pass.
66+
67+
## Item Shape
68+
69+
Every roadmap-ready item needs:
70+
71+
- status
72+
- owner
73+
- source docs
74+
- evidence or current implementation note
75+
- dependency or blocker, if any
76+
- `done when` criteria
77+
78+
If `done when` cannot be written, the item belongs in `research`, `drafts`, or
79+
`brainstorms`, not `next`.
80+
81+
## OSS Posture
82+
83+
For public docs:
84+
85+
- Prefer `Now / Next / Later / Not Planned` over dates.
86+
- Publish less than the internal status map knows.
87+
- State non-promises explicitly.
88+
- Do not imply timelines unless the project intends to carry timeline pressure.
89+
- Keep roadmap items tied to user-visible or contributor-visible value.
90+
91+
## Verification
92+
93+
After roadmap doc edits, run:
94+
95+
```sh
96+
bun run docs:check
97+
```
98+
99+
Use `docs-management` rules for links, frontmatter, folder placement, and
100+
status separation.

.codex/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
project_root_markers = ["bun.lock", "package.json", "AGENTS.md"]
2+
project_doc_max_bytes = 65536

AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ Treat these as the conceptual base unless current code or docs prove otherwise:
114114
- IDs crossing package, persistence, tool, RPC, dispatch, or mission boundaries should be branded/schema-backed, not raw `string`.
115115
- If ordering matters, encode it in the API. Do not rely on incidental object key order, registration order, import order, or array order.
116116
- Logs, capsules, dispatch events, protocol events, and telemetry are append-only unless an explicit compaction/snapshot boundary says otherwise.
117+
- Define expected outcome, success criteria, allowed side effects, evidence rules, and stopping conditions before changing complex or high-risk code. Avoid step-by-step process scaffolding unless the exact path matters.
117118

118119
### Module Shape
119120

@@ -171,6 +172,8 @@ Use `code-review` when reviewing code changes for defects, regressions, missing
171172

172173
Use `cleanup-audit` after substantial edits, refactors, moves, generated changes, or long agent sessions to remove confirmed non-behavioral leftovers and report possible stale compatibility/runtime paths before changing them.
173174

175+
Use `roadmap-management` when creating, updating, reviewing, or promoting roadmap items.
176+
174177
</skills>
175178

176179
<generated-files>

docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ This `docs/` directory is the Theseus Obsidian vault.
4141
- Move superseded designs to `archive/` instead of deleting them.
4242
- Keep stable doctrine in the concept note; put time-bound reasoning in `design-notes/`.
4343
- Run `bun run docs:check` after docs moves or link edits.
44+
- Use [runtime-truth-map](maps/runtime-truth-map.md) and [not-real-yet](maps/not-real-yet.md) before changing runtime docs.
45+
- Use [roadmap](direction/roadmap.md) and [roadmap-status-map](maps/roadmap-status-map.md) for planning work.

docs/direction/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ Direction notes define what Theseus is for and what constraints the system is bu
1212
## Notes
1313

1414
- [goals](goals.md)
15+
- [roadmap](roadmap.md)
1516
- [agent-comm-prior-art](agent-comm-prior-art.md)

docs/direction/roadmap.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
status: current
3+
owner: direction
4+
kind: concept
5+
updated: 2026-04-29
6+
---
7+
8+
# Roadmap
9+
10+
> Status: active planning shell
11+
12+
This roadmap describes the intended shape of Theseus work. It is conservative:
13+
it separates what exists, what is practical next, what is designed but not
14+
scheduled, and what is deliberately not planned.
15+
16+
Use [roadmap-status-map](../maps/roadmap-status-map.md) for the internal
17+
evidence table.
18+
19+
## Now
20+
21+
Work that should make the current coding harness more controllable,
22+
inspectable, recoverable, or usable.
23+
24+
| Item | Status | Why It Matters |
25+
|---|---|---|
26+
| Runtime work tree visibility | next | Operators need truthful mission work state before richer clients can be useful. |
27+
| Capsule event curation | next | Mission outputs need a durable review-facing record, not only raw runtime events. |
28+
| Thin server/runtime boundary | next | Runtime behavior should stay owned by `packages/theseus-runtime`, with server as adapter. |
29+
| First operator client surface | research | `docs/clients` has no active concept note yet; client work needs a narrow first shape. |
30+
31+
## Next
32+
33+
Designed or likely near-term work that needs sharper scope before execution.
34+
35+
| Item | Status | Why It Matters |
36+
|---|---|---|
37+
| Mission hardening | designed | Raw user intent needs a path into dispatchable missions without forcing ceremony on small tasks. |
38+
| Tool selection and catalog clarity | designed | Tool authority needs explicit selection and hydration before broader autonomy. |
39+
| Pause and resume safe points | designed | Runtime should reserve cooperative control semantics without pretending it can freeze arbitrary work. |
40+
| RuntimeBus transport concept | designed | Client/operator surfaces need transport vocabulary, but it must adapt to command/control/query. |
41+
42+
## Later
43+
44+
Research or larger architecture work that should not block the near-term
45+
runtime wedge.
46+
47+
| Item | Status | Why It Matters |
48+
|---|---|---|
49+
| Cortex context management | research | Context durability and recall may become important after event/projection surfaces stabilize. |
50+
| Semantic or tool-result folding | research | Folding needs evidence from real failure bursts before becoming runtime doctrine. |
51+
| Outcome execution beyond coding | research | The primitives should support this ambition, but the wedge remains coding harness first. |
52+
53+
## Not Planned
54+
55+
These paths are not active roadmap items.
56+
57+
| Item | Reason |
58+
|---|---|
59+
| Plugin marketplace or generic plugin host | Theseus is a self-editable harness with explicit source assembly. |
60+
| Persistent named-agent daemon runtime | Superseded by the current runtime host/world model. |
61+
| Fixed crew roster as architecture | Crew and specialist roles are harness scaffolding, not primitive floor. |
62+
| Queue RuntimeBus as the runtime base | Superseded by runtime command/control/query. |
63+
64+
## Rules
65+
66+
- Do not promote a roadmap item without updating
67+
[roadmap-status-map](../maps/roadmap-status-map.md).
68+
- Do not mark work as shipped unless implementation, tests/checks, and docs
69+
agree.
70+
- Do not use dates unless the project accepts date pressure.
71+
- Keep loose ideas in [brainstorms](../brainstorms/README.md) and unadopted
72+
designs in [drafts](../drafts/README.md).

docs/maps/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ that should be read before changing code or design.
1313
## Notes
1414

1515
- [coding-agent-reading-map](coding-agent-reading-map.md)
16+
- [runtime-truth-map](runtime-truth-map.md)
17+
- [not-real-yet](not-real-yet.md)
18+
- [roadmap-status-map](roadmap-status-map.md)

0 commit comments

Comments
 (0)