Skip to content

Commit aca2fab

Browse files
doc edits
1 parent d0a55e1 commit aca2fab

File tree

4 files changed

+87
-413
lines changed

4 files changed

+87
-413
lines changed

.tasks/README.md

Lines changed: 21 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,27 @@
1-
# Subagent Task Cards
1+
# Subagent Task Cards (`.tasks/`)
22

3-
This folder contains task assignments for AI subagents. Each task is a markdown file that the assigned subagent updates as work progresses.
3+
## Contract
44

5-
## Folder Structure
5+
Every `.tasks/**/TASK-*.md` must include:
6+
- `Files to Modify` (tight scope)
7+
- `Acceptance Criteria` (testable)
8+
- `Parent Docs / Cross-links` (bidirectional)
9+
- `Progress Log` + `Completion Notes`
610

7-
```
8-
.tasks/
9-
├── README.md # This file
10-
├── active/ # Currently assigned tasks
11-
│ └── TASK-001-description.md # Task being worked on
12-
├── done/ # Completed tasks
13-
│ └── TASK-001-description.md # Completed with notes
14-
└── backlog/ # Planned but not yet assigned
15-
└── TASK-002-description.md # Ready for next round
16-
```
17-
18-
## Task File Format
19-
20-
```markdown
21-
# TASK-XXX: [Short Description]
22-
23-
## Status
24-
- [ ] Assigned
25-
- [ ] In Progress
26-
- [ ] Blocked (reason: ...)
27-
- [ ] Complete
28-
29-
## Priority
30-
high | medium | low
31-
32-
## Assigned To
33-
[subagent type: general | explore | ...]
34-
35-
## Description
36-
What needs to be done.
37-
38-
## Files to Modify
39-
- `path/to/file1.zig`
40-
- `path/to/file2.ts`
41-
42-
## Acceptance Criteria
43-
- [ ] Criterion 1
44-
- [ ] Criterion 2
45-
46-
## Progress Log
47-
### YYYY-MM-DD HH:MM
48-
- [What was done]
49-
- [What's next]
50-
51-
## Completion Notes
52-
[Filled in when done: what was accomplished, commit hash, any follow-up needed]
53-
```
11+
Rules:
12+
- One task = one owner = one atomic commit.
13+
- Parallel tasks must not overlap file edits.
5414

5515
## Workflow
5616

57-
### Orchestrator (Main Agent)
58-
1. Creates task cards in `.tasks/backlog/`
59-
2. Moves to `.tasks/active/` when assigning to subagent
60-
3. Reviews completed tasks
61-
4. Moves to `.tasks/done/` and updates gap-backlog
62-
63-
### Subagent
64-
1. Reads assigned task from `.tasks/active/`
65-
2. Updates status to "In Progress"
66-
3. Adds progress log entries as work proceeds
67-
4. Updates status to "Complete" with completion notes
68-
5. Does NOT move the file (orchestrator does that)
69-
70-
## Rules
71-
1. **One task per file** - keeps diffs clean
72-
2. **Update frequently** - progress log should reflect current state
73-
3. **Be specific** - acceptance criteria must be testable
74-
4. **No stale tasks** - if blocked >1 round, document why
75-
5. **Commit task updates** - task card changes are part of the commit
17+
- Orchestrator:
18+
- Create cards in `.tasks/backlog/`
19+
- Move to `.tasks/active/` when assigning
20+
- Move to `.tasks/done/` when complete
21+
- Keep `research/zig-cr/92-gap-backlog.md` in sync
22+
23+
- Subagent:
24+
- Only touch `Files to Modify`
25+
- Update the task card as you work
26+
- If blocked, write the reason + next step
27+
- Do not move task files (orchestrator does)

.wishes/start-here.md

Lines changed: 25 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,25 @@
1-
Gaps (zig/ vs research/zig-cr)
2-
- Docs mismatch: zig/README.md:5 still claims partial C oracle + missing alter, but research/zig-cr/92-gap-backlog.md:7 says MVP complete and 154/154 passing. This is a real “gap” because it will mislead anyone trying to use/validate the Zig implementation.
3-
- Performance hotspot items not yet done (from research/zig-cr/11-performance-hotspots.md:6 and tracked in research/zig-cr/92-gap-backlog.md:161):
4-
- PRAGMA schema_version-keyed invalidation caching
5-
- PRAGMA data_version amortization (per-transaction / per-query-loop flag)
6-
- sqlite3_prepare_v3(...SQLITE_PREPARE_PERSISTENT...) use for long-lived statements
7-
- Web multi-tab “Phase 2” items still open (called out in research/zig-cr/92-gap-backlog.md:186 and motivated by research/zig-cr/96-proposal-multitab-wasm-sqlite-crsqlite.md:10):
8-
- Service Worker fallback (when SharedWorker missing)
9-
- Reactive query subscriptions / notifications surface (more than “manual re-query”)
10-
- Cross-platform packaging gaps (tracked in research/zig-cr/92-gap-backlog.md:214):
11-
- macOS universal binary (aarch64+x86_64)
12-
- Windows .dll build
13-
- iOS/Android static embedding guide
14-
- Big future proposals not implemented (expected): the “threadsafe-by-default / mesh” family (research/zig-cr/99-threadsafe-sqlite-proposals.md:31, research/zig-cr/100-proposal-node-multiprocess-crsqlite-mesh.md:19, research/zig-cr/101-proposal-universal-crsqlite-mt-js.md:34, research/zig-cr/102-proposal-crsqlite-global-mesh.md:5) has no corresponding implementation in zig/ yet.
15-
Wishes review (.wishes/)
16-
- /.wishes/spec-first-RGRTDD.md:1 asks for new “realistic” spec/tests-as-examples now that we’re green everywhere.
17-
- /.wishes/stop-before-typescript.md:1 is an explicit constraint: do not race ahead on new TS work; if we feel pressure to do TS-heavy features, we should write it down and mark it blocked.
18-
Tasks review (.tasks/)
19-
- Only one backlog task exists: /.tasks/backlog/TASK-026-A-macos-universal-binary.md:1.
20-
- It’s directionally right, but the implementation notes are currently underspecified relative to zig/build.zig’s default single zig-out/ install prefix (zig/build.zig:46). To build two mac targets without stomping outputs, the task should explicitly require separate --prefix (and likely separate cache dirs) per target before lipo.
21-
Proposed next concurrent subagent assignments (do not assign yet)
22-
1) macOS universal dylib (highest near-term “ship-ability”)
23-
- Based on existing backlog /.tasks/backlog/TASK-026-A-macos-universal-binary.md:1
24-
- Files: zig/Makefile:1 (add make universal or similar), maybe CI workflow later
25-
- Output verification: lipo -info ... + load-test with sqlite3 via nix
26-
2) Performance tranche: schema/data version amortization + persistent statements
27-
- Source: research/zig-cr/11-performance-hotspots.md:6, backlog research/zig-cr/92-gap-backlog.md:161
28-
- Files likely centered on zig/src/changes_vtab.zig and wherever we prepare hot statements (plus any stmt cache module)
29-
- Goal: reduce prepare churn + pragma spam without changing semantics
30-
3) Windows .dll build reconnaissance + minimal build target (even if not fully CI’d yet)
31-
- Source: research/zig-cr/92-gap-backlog.md:215
32-
- Files: zig/build.zig:1 (target/export correctness), plus a small harness note on how to test load on Windows
33-
- Outcome: either a real build artifact path or a crisp “blocked by X” statement with next steps
34-
4) Docs alignment task (small but high leverage)
35-
- Fix zig/README.md:5 to reflect reality and point at the real acceptance suite location (research/zig-cr/10-test-oracle.md / core/src/*.test.c)
36-
- This closes the “people can’t tell what’s done” gap immediately
37-
5) Spec-first “realistic scenarios” tests (non-TS)
38-
- Convert /.wishes/spec-first-RGRTDD.md:8 into a small set of new harness tests under zig/harness/ that read like executable examples.
39-
- Keep it Zig/shell first to respect /.wishes/stop-before-typescript.md:1.
40-
- If any scenario truly demands TS (e.g. SW fallback), we write a blocked wish/task instead of implementing.
41-
.tasks accuracy fixups (recommend before we start work)
42-
- Update /.tasks/backlog/TASK-026-A-macos-universal-binary.md:31 to explicitly require per-target zig build with distinct --prefix outputs (so the lipo paths in the task are actually achievable), and clarify whether we expect nix cross-target builds to work on this host or if it needs a remote builder.
1+
# start-here
2+
3+
If you’re asking “what’s left?” start here:
4+
5+
- Canonical status + remaining gaps: `research/zig-cr/92-gap-backlog.md`
6+
- Task queue (what to run next): `.tasks/{backlog,active,done}/`
7+
- Zig implementation: `zig/`
8+
- TS specs + packages:
9+
- Specs: `effect-native/.specs/`
10+
- Packages: `effect-native/packages-native/`
11+
12+
## Next parallel work (curated)
13+
14+
- Web phase 2 (TS, spec-gated):
15+
- `.tasks/backlog/TASK-031-web-service-worker-fallback.md`
16+
- `.tasks/backlog/TASK-032-web-reactive-subscriptions.md`
17+
- Mobile embedding guide (docs): `.tasks/backlog/TASK-033-mobile-static-embedding-guide.md`
18+
- Upstream feedback capture (blocked): `.tasks/backlog/TASK-037-zig-sqlite-upstream-feedback-blocked.md`
19+
20+
## Rules of the game (thing-golf)
21+
22+
Prefer fewer, sharper “Things”:
23+
- One task card owns one named delta.
24+
- Each task card lists a tight `Files to Modify` set.
25+
- Each task card links to its parent doc/spec and the parent links back.

0 commit comments

Comments
 (0)