Projet

Général

Profil

Plan du projet » Historique » Version 1

clarie Admin, 05/10/2026 07:33
Importé depuis PLAN.md du dépôt Git

1 1 clarie Admin
# Development Plan & Roadmap
2
3
## Phase 1: Foundation & Deterministic Testing Environment
4
- [ ] Prepare GitHub Actions workflow to run Debian GNU/Hurd inside QEMU.
5
- [ ] Write the core C test suite using **`libmicrohttpd` v1** to simulate a loopback (`127.0.0.1`) embedded HTTP server.
6
- [ ] Implement specific test endpoints: `Range` header support, truncated responses, HTTP error codes, static raw files for post-read SHA256 checksum validation.
7
- [ ] Ensure tests model atomic POSIX calls and remain completely environment-agnostic.
8
9
## Phase 2: Refactoring Core `httpfs` (Raw Transport)
10
- [x] Strip all HTML parsing code from the current `httpfs` implementation.
11
- [x] Optimize `libnetfs` callbacks to map POSIX calls cleanly and performantly to the network.
12
- [x] Implement a robust seek mechanism using HTTP `Range` headers to faithfully map `lseek`/`pread`.
13
- [x] Validate `httpfs` against the Phase 1 test suite (must reliably yield 100% raw bytes while handling EOF, timeouts, and disconnects).
14
15
## Phase 3: Content-Type Translators Architecture (The Parser Chain)
16
- [x] **`htmlfs`:** Develop the standalone DOM/HTML parsing translator and interface it to be stacked via `settrans` on top of `httpfs` (tolerant single-pass extractor: title, visible text, meta, headings, links).
17
- [x] **`jsonfs`:** Design and build the JSON translator to map JSON trees into Mach file system nodes (objects → directories, arrays → numbered entries, scalars → files).
18
- [x] **`csvfs` / `tsvfs`:** Develop interfaces to dynamically interpret structured text tables (RFC 4180 dialect, delimiter sniffing, row and column views; `tsvfs` is `csvfs` under its tab default).
19
- [x] Write dedicated test suites to verify correct I/O interactions between the transport translator (`httpfs`) and parser translators (`test_json`, `test_html`, `test_csv` unit tests plus the stacking section of `tests/smoke.sh`).
20
- [ ] Cluster operation from this phase onward: `httpfs` and the parser chain must be usable in a multi-node Hurd cluster — mounted on the orchestrator node, serving concurrent multi-user fetches with one seek/Range cursor per open file per reader, and the stacking behaviour (`httpfs` under `htmlfs`/`jsonfs`/`csvfs`) must not depend on a single-node topology.
21
22
## Phase 4: Evolution & Hardening
23
- [ ] Controlled migration of embedded tests from `libmicrohttpd` v1 to **`libmicrohttpd` v2**, leveraging new APIs for increased I/O determinism (e.g., complex fault-injection scenarios).
24
- [ ] Multi-task and multi-user operation: `httpfs` and the parser chain (`htmlfs`, `jsonfs`, `csvfs`/`tsvfs`) must serve concurrent readers and several users at once — one seek/Range cursor per open file per reader, no shared mutable state without locking, no user-serialized global state.
25
- [ ] Optimize Mach IPC and minimize buffer-copy overhead (memory-to-memory I/O) between `httpfs` and upstream content translators.
26
27
## Design Notes
28
29
- **Cluster from phase 3**: as of orchestrator phase 3, the stack runs on multi-node Hurd clusters. `httpfs` itself needs no new contract — a translator mounted on the orchestrator node serves fetches for the remote instances too. The design rule is that neither the transport nor the parser chain may assume a single-node topology: one seek/Range cursor per open file per reader, no shared mutable state without locking.