Loom Roadmap
Part of Loom. Proposed implementation phases, with no delivery-date commitment.
Phase 1 — Validate the crawler boundaries
- Build local fixture sites covering cycles, relative links, redirects, robots, failures, query traps, compressed responses, and slow requests.
- Implement URL identity and public-destination validation before accepting arbitrary internet seeds.
- Prototype bounded Go workers, a shared pacing mechanism, and cancellation.
- Define a small graph dataset and benchmark Neo4j constraints, frontier claims, edge ingestion, and neighborhood queries.
Exit: fixtures produce the expected graph, request rates remain within limits, and private destinations and unsafe redirects are rejected.
Phase 2 — Make jobs durable
- Add authenticated job creation, state transitions, page frontier, queue tasks, outbox dispatch, and lease recovery.
- Verify duplicate delivery, lost queue messages, worker crashes, cancelled jobs, and delayed retries.
- Test simultaneous jobs for one host across multiple workers.
Exit: restarts preserve results and recover pending work without unbounded retries or excess target load. Completion does not race with child discovery.
Phase 3 — Ship the useful web experience
- Build job form, history, status, and partial-map views.
- Add graph selection, search, grouping, filters, inspector, and paginated table.
- Add coverage explanations, findings, exports, and rerun as a new job.
Exit: a user can submit a bounded site crawl, close the browser, return, inspect results, understand missing coverage, and export data.
Phase 4 — Pilot and operate
- Use sites operated by the team or explicitly permitted for pilot testing.
- Validate defaults against actual server load and diverse page structures.
- Test backup restoration, cross-account isolation, retention cleanup, cancellation, and global request caps.
- Measure large-view responsiveness and choose a documented graph payload limit.
Exit: crawl limits hold under retries and concurrent jobs, results stay responsive, recovery is verified, and cost fits an explicit pilot budget.
Phase 5 — Expand deliberately
Prioritize snapshot comparison, scheduling, richer discovery, or JavaScript rendering based on pilot use. Browser rendering requires a separate design for every subresource request, not just another worker flag. Add pause/resume after durable cancellation and lease behavior are reliable.
Meaningful acceptance checks
| Scenario | Expected evidence |
|---|---|
| Two jobs for the same host | Shared concurrency and request-start limits still hold |
| Worker crash after fetch | Retry may repeat HTTP, but graph effects and counters remain consistent |
| Redis outage | Workers defer fetches; durable work is recoverable |
| Queue redelivery | Settled work is not processed as a new page |
| Final page discovers children | Job remains active until eligible child work settles |
| Cancel during fetch | No new claims; late writes follow fenced cancellation rules |
| 429 with Retry-After | Shared target cooldown observed by every worker |
| Redirect to private IP | Request blocked before private connection |
| Many links/query variations | Discovery and rendering stay within data and memory caps |
| Map with skipped targets | UI clearly distinguishes observed, failed, external, blocked, and unvisited nodes |
Use deterministic local servers and a controllable clock for rate/retry tests; avoid proving load behavior by stressing a public website.
Decisions
| Topic | State |
|---|---|
| Name | Confirmed: Loom |
| Go concurrency, queue, graph/NoSQL, web UI | Confirmed direction |
| Neo4j + Redis/Asynq | Proposed; validate operational fit and ingestion benchmark |
| React + Cytoscape.js | Proposed; validate realistic graph responsiveness |
| Static HTML, exact-host scope | Proposed MVP boundary |
| Limits and supported scale | Proposed in Loom Responsible Crawling; tune during controlled pilot |
| Hosting/provider/budget | Open |
| Domain/name availability | Not checked |
Next actions
- Review MVP scope and crawl limits.
- Define fixture graphs and expected fetch traces.
- Benchmark durable frontier and graph query patterns.
- Build the polite crawler and recovery loop before public job submission.