S000: one worker at a time, test files per plan, testing in the last category
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
c5e1f21666
commit
71c43ee70b
31 changed files with 272 additions and 210 deletions
33
CLAUDE.md
33
CLAUDE.md
|
|
@ -2,21 +2,14 @@
|
|||
|
||||
Medlar is a download manager for Linux in Rust and egui: all of Free Download Manager's features and more, downloads split into dynamic parts, limits, priorities, queues, video sites, a local port that takes downloads from browsers, and a Material You (M3 Expressive) interface with spring motion and wavy progress bars. What it must do: [docs/FEATURES.md](docs/FEATURES.md). Final deliverable: a tested AppImage and tar.gz, for the user and for release on Astar Hub. Vision: [PLAN.md](PLAN.md).
|
||||
|
||||
## 0. Session rules — read first
|
||||
## 0. Session rules
|
||||
|
||||
0. If `docs/HANDOFF.md` exists, read it and `docs/STATUS.md` first.
|
||||
1. You are started with **one plan**: `Plans/<NN Category>/SNNN-*.md`. Read only: this file, **your plan**, the **last 3 entries** of `docs/PROGRESS.md`, and the files/sections your plan names.
|
||||
2. **Do not open other files in `Plans/`** (nor `ORCHESTRATOR.md`, nor all of `PLAN.md`).
|
||||
3. **Tick each checkbox in your plan file the moment it is done**, one by one, never in batches. Right after each tick, sync the tracker (§Tracker). An interrupted plan resumes at its first unchecked box.
|
||||
4. **Stay in scope.** Out-of-scope ideas go to `docs/PROGRESS.md` (“Later”), not into the code.
|
||||
5. **Invent nothing**: check the code/docs; if a fact is still missing, ask — the **orchestrator** if you were started by one (never the user directly), otherwise the user.
|
||||
6. **End of session**: (a) end criteria verified **by commands**, not memory; (b) `docs/PROGRESS.md` entry (≤ 15 lines: done, not done, later); (c) `docs/DECISIONS.md` if a decision binds later plans; (d) tick your line in `Plans/INDEX.md` (no commentary); (e) commit `SNNN: …` and push to `origin` if it is set; (f) short report: done, not done, what the user/orchestrator must do, and any instruction that cost more than it gave.
|
||||
7. **Languages**: answer in English, short (the user is on a tight budget). Code, comments and user-facing text in English. Internal docs (`CLAUDE.md`, `Plans/`, `PROGRESS.md`) in English.
|
||||
|
||||
## Tracker
|
||||
|
||||
Live checklist of every plan: https://claude.ai/artifact/XouimfVJS6FYVKskGJ8s7H (collection `plans`, one doc per plan id).
|
||||
After ticking a box: `ArtifactData` `update` with `url` = the tracker, `collection: "plans"`, `doc_id: "SNNN"`, `data: {"status": "running" or "done" (all boxes ticked), "items": [{"text": "<step>", "done": true/false}, … every checkbox of the plan in order], "updated": "<ISO date-time>"}` and `if_version` = the version returned by your previous write (first time: `get` the doc once to read it; a doc that doesn't exist yet takes no `if_version`). Load the tool with ToolSearch `select:ArtifactData` once. If the tracker call fails, keep working and say so in the report: the plan file is the source of truth.
|
||||
1. Started with **one plan** (`Plans/<NN Category>/SNNN-*.md`): read only your plan and what it names. Not other plans, `ORCHESTRATOR.md` or all of `PLAN.md`. Only the orchestrator reads `docs/HANDOFF.md`, `docs/STATUS.md`.
|
||||
2. **Few steps, short output**: batch reads and edits, cap command output, never read the same thing twice.
|
||||
3. **No testing while building**: no tests written or run, no screenshots, no app runs, no release builds, unless the plan says `Phase: test`. One compile check: `nice cargo check -q -j 2 -p medlar`. Write your test file `docs/tests/SNNN-slug.md` (checks in words, from `docs/tests/_TEMPLATE.md`).
|
||||
4. Stay in scope; ideas go to `docs/PROGRESS.md` (“Later”). Invent nothing: check the code or docs, else ask the orchestrator (the user if there is none).
|
||||
5. **End**: boxes ticked, PROGRESS entry (≤ 5 lines), `docs/DECISIONS.md` if a decision binds later plans, INDEX line ticked, commit `SNNN: …` and push to `origin` if it is set. Report what was not done and not tested. The orchestrator writes the tracker (https://claude.ai/artifact/XouimfVJS6FYVKskGJ8s7H, collection `plans`).
|
||||
6. **Languages**: English, short.
|
||||
|
||||
## 1. Repository layout
|
||||
|
||||
|
|
@ -29,7 +22,7 @@ crates/cli/ command line and headless mode, a library used by the `medlar
|
|||
crates/testserver/ local server with faults for tests (ranges, throttle, cuts, expiry, logins)
|
||||
tools/ screenshot, hidden-run, icon and packaging scripts
|
||||
assets/ icon, fonts, Material Symbols
|
||||
docs/ FEATURES, PROGRESS, DECISIONS, STATUS, CONNECTOR; tracker.html is the tracker page's source
|
||||
docs/ FEATURES, PROGRESS, DECISIONS, STATUS, CONNECTOR, tests/ (one test file per plan); tracker.html is the tracker page's source
|
||||
Plans/ one plan per session
|
||||
```
|
||||
Never modify: everything outside this folder. `~/Projects/*` is read-only reference (copy code in, never edit there). `~/.abdm` and the running AB Download Manager are the user's: never stop, read or reconfigure them.
|
||||
|
|
@ -47,10 +40,10 @@ Never modify: everything outside this folder. `~/Projects/*` is read-only refere
|
|||
## 3. Code rules
|
||||
|
||||
- Write like the neighbouring code. KISS, DRY, YAGNI; no abstraction without ≥ 2 uses.
|
||||
- New pure logic gets a test; a bug fix gets a regression test when feasible.
|
||||
- UI work loads the `app-taste` skill first and follows it; motion work also loads `animate`. Interface colours, radii, spacing, type and motion come from tokens only.
|
||||
- Test phase: new pure logic gets a test; a bug fix gets a regression test when feasible.
|
||||
- UI work reads `~/.claude/skills/app-taste/SKILL.md` once; motion work also `animate`. Interface colours, radii, spacing, type and motion come from tokens only.
|
||||
- Wavy bars and other motion run only while something really changes; idle draws no frames.
|
||||
- `core` never depends on egui. Every engine behaviour has a test against `testserver`, including the failure paths.
|
||||
- `core` never depends on egui. Every engine behaviour and its failure paths get a check in the test file, run against `testserver` in the test phase.
|
||||
- Errors reach the user as plain words: what failed, then why. Every user string goes through the string catalogue (FEATURES 8.5).
|
||||
- Follow the pattern of real products only for mechanics; the look, name, icon and copy are Medlar's own.
|
||||
|
||||
|
|
@ -65,7 +58,7 @@ Never modify: everything outside this folder. `~/Projects/*` is read-only refere
|
|||
- Run apps hidden (kittest or nested niri) with a throwaway `XDG_*` home unless the user asks to watch. Power actions are tested against a fake logind only.
|
||||
- DRM, captchas and paywalls are never worked around.
|
||||
|
||||
## 5. Verification tools
|
||||
## 5. Verification tools (test phase only, except the compile check)
|
||||
|
||||
| Tool | Role | Available after |
|
||||
|---|---|---|
|
||||
|
|
@ -86,4 +79,4 @@ Remote: Astar Hub only (`forgejo:astar76/Medlar.git`, see the user's global CLAU
|
|||
|
||||
## 7. Definition of done
|
||||
|
||||
A plan is done when: all end criteria are **verified by command or test**; planned builds/tests are green; nothing regressed; `PROGRESS` / `DECISIONS` are up to date; the INDEX line and tracker are ticked; the work is committed. Say explicitly what was **not** done or verified.
|
||||
A plan is done when it compiles, its boxes and INDEX line are ticked, its test file exists and it is committed. The **project** is done when the test phase has passed. Compiled is not tested: say so.
|
||||
|
|
|
|||
|
|
@ -1,36 +1,9 @@
|
|||
# Orchestrator — Medlar
|
||||
|
||||
You are the **orchestrator**. You do not do the plans' work yourself: you launch, unblock and validate the sessions that do. Read `CLAUDE.md`, then `Plans/INDEX.md`, then the last 3 entries of `docs/PROGRESS.md`. Start from the **first unchecked plan** in INDEX.
|
||||
How plans are run (one worker at a time, budget, checks, testing at the end) is in the `orchestrate` skill. This file holds only what is special to this project.
|
||||
|
||||
## Files
|
||||
|
||||
- Plans: `Plans/<NN Category>/SNNN-*.md`, one folder per category (header gives model, effort, dependencies, files touched, 🧑). Index: `Plans/INDEX.md`.
|
||||
- Logs: `docs/PROGRESS.md`, `docs/DECISIONS.md`. Vision: `PLAN.md`.
|
||||
- Tracker: https://claude.ai/artifact/XouimfVJS6FYVKskGJ8s7H — sessions update it themselves; you only check it matches the plan files (`ArtifactData list plans` vs. the plans' checkboxes; `update` to repair).
|
||||
|
||||
## Launching sessions
|
||||
|
||||
**Look-ahead rule (check it after EVERY event: start, GO, validation, answer to a session):** count the sessions you started that are *waiting for GO* (not running, not done). If fewer than **3** and unchecked plans remain in scope, start waiting sessions for the next plans in INDEX order right now, until the count is reached. Waiting sessions cost almost nothing and don't touch files: preparing them is never “running in parallel”, and dependencies only gate the GO, not the preparation. Say the count in each status line (`waiting: S014, S015, S016`).
|
||||
|
||||
1. Prepare each look-ahead plan as a nested session (`start_session`, `initiation: "user_asked"`, same folder) with the plan's model and effort. Brief: *“Read CLAUDE.md and Plans/<NN Category>/SNNN-xxx.md only. Do not start: wait for GO from the orchestrator.”* plus “Use the caveman skill (`caveman:caveman`) for all replies; code, docs and commits stay normal English.” plus anything the plan cannot know (state of previous plans, tags, decisions taken since). Do not repeat CLAUDE.md rules.
|
||||
2. Send **GO** (`SendMessage` to its `local_…` id) when its dependencies are validated.
|
||||
3. **Parallel** only if the plans are consecutive, none depends on another, their “files touched” don't overlap, and at most two run at once, only one of them builds or runs tests at a time (4 cores, 16 GB). Otherwise one at a time.
|
||||
|
||||
## Answering sessions
|
||||
|
||||
Sessions talk to **you**, never to the user. Answer from the project goal, `PLAN.md`, `DECISIONS.md` and the code. The user does not want to be stopped (D-004): take the recommended choice yourself and record it. Disturb them only for a real necessity (a release, 🧑 steps, irreversible or outward-facing actions, a decision that changes the goal); then stop and tell them exactly what to look at, how, and what to answer. Record any decision you take in `docs/DECISIONS.md`.
|
||||
|
||||
## Validating a plan (when its session ends)
|
||||
|
||||
Check with commands, not its report: plan checkboxes all ticked; end criteria hold (rerun only **targeted** tests for what changed); PROGRESS entry present; INDEX line ticked; commit (pushed if `origin` is set) present; working tree clean; tracker doc matches. If something is missing, send it back to the same session. Then GO the next one and apply the look-ahead rule.
|
||||
|
||||
Relay to the user any remark that an instruction costs more than it gives, with an alternative.
|
||||
|
||||
## Context and stop
|
||||
|
||||
- Near ~300K context: finish validating the current plan, then tell the user to open a new session with `/orchestrate` (you resume from INDEX).
|
||||
- If the user says **STOP**: stop the running sessions and your follow-up; on resume, message the same sessions to continue from their first unchecked box.
|
||||
|
||||
## End of a phase / project
|
||||
|
||||
Short report: what changed (before/after), what was verified, what remains, what the user must do.
|
||||
- Plans: `Plans/<NN Category>/SNNN-*.md`; index `Plans/INDEX.md`, in its order. Logs: `docs/PROGRESS.md`, `docs/DECISIONS.md`. Test files: `docs/tests/`, results: `docs/TEST-REPORT.md`. Plans up to S019 have automatic tests of their own and no test file.
|
||||
- Tracker: https://claude.ai/artifact/XouimfVJS6FYVKskGJ8s7H (collection `plans`, one doc per plan id; written once, when a plan ends). S035 and S036 are merged into S034; S041–S043 are new.
|
||||
- Decide alone (D-004), except: a release, 🧑 steps, what cannot be undone or leaves this PC, a change of the goal.
|
||||
- Merging: `main` is fast-forwarded after each finished category (D-014). Pushes go to Astar Hub only.
|
||||
- Never touch `~/.abdm`, port 15151, or anything outside this folder.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S017 — Details panel and file actions
|
||||
|
||||
> Category 03 Interface · Model: Opus · Effort: medium · Depends on: S015, S009 · Size: M · Human: no
|
||||
> Category 03 Interface · Model: Sonnet · Effort: medium · Depends on: S015, S009 · Phase: build · Human: no
|
||||
> Files touched: crates/app/src/views/details*, crates/core/src/files*, crates/app/tests/details*
|
||||
|
||||
## Goal
|
||||
|
|
@ -18,10 +18,14 @@ FEATURES 7.2, 7.3, 7.4, 9.3 in place.
|
|||
- [ ] Live edits: limit, parts, priority, queue, link, login
|
||||
- [ ] Log with copy, filter and redaction; properties copyable
|
||||
- [ ] Error section: what, why, when tried, next try, all fixes
|
||||
- [ ] Test file `docs/tests/S017-details.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S017: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar --test details` green
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar (details) green
|
||||
- shots of every tab and the error state looked at
|
||||
|
||||
## Pitfalls
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S020 — Automatic limiter, quota and metered lines
|
||||
|
||||
> Category 04 Control · Model: Opus · Effort: medium · Depends on: S007, S019 · Size: M · Human: no
|
||||
> Category 04 Control · Model: Opus (control loop) · Effort: medium · Depends on: S007, S019 · Phase: build · Human: no
|
||||
> Files touched: crates/core/src/{autolimit,quota,metered}*, crates/core/tests/autolimit*
|
||||
|
||||
## Goal
|
||||
|
|
@ -12,15 +12,20 @@ FEATURES 2.4, 2.5.
|
|||
|
||||
## Steps
|
||||
- [ ] Latency probe without extra traffic (TCP connect or RTT to current hosts, optional gateway ping), baseline and queueing delay estimate
|
||||
- [ ] Controller that backs off when delay rises and recovers gently; simulated line tests (bottleneck, buffer bloat, competing flow)
|
||||
- [ ] Controller that backs off when delay rises and recovers gently
|
||||
- [ ] Quota per day, week or month with reset day, warning and stop, override for one download
|
||||
- [ ] Metered connection through NetworkManager: pause, limit or ignore; big-file threshold
|
||||
- [ ] Snapshot says why a limit is in force
|
||||
- [ ] Test file `docs/tests/S020-auto-limit-quota.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S020: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-core --test autolimit` green with a virtual clock
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-core (autolimit) green with a virtual clock
|
||||
- no oscillation over 20 % in the simulator
|
||||
- simulated line: bottleneck, buffer bloat, competing flow
|
||||
|
||||
## Pitfalls
|
||||
The user's line is about 425 KB/s: constants must work there and on gigabit. Fake D-Bus only.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S021 — Queues, scheduler and power actions
|
||||
|
||||
> Category 04 Control · Model: Opus · Effort: medium · Depends on: S019 · Size: M · Human: no
|
||||
> Category 04 Control · Model: Sonnet · Effort: medium · Depends on: S019 · Phase: build · Human: no
|
||||
> Files touched: crates/core/src/{queue,schedule,power,run}*, crates/core/tests/schedule*
|
||||
|
||||
## Goal
|
||||
|
|
@ -12,15 +12,20 @@ FEATURES 2.6–2.9.
|
|||
|
||||
## Steps
|
||||
- [ ] Queues: folder, limit, active count, order, schedule, done action; move tasks between them
|
||||
- [ ] Schedules: times, weekdays, once, mode by time grid; time zone, daylight saving and missed-while-asleep rules with tests on a virtual clock
|
||||
- [ ] Schedules: times, weekdays, once, mode by time grid; time zone, daylight saving and missed-while-asleep rules; the clock is injectable
|
||||
- [ ] Dependencies and delayed start; cycles refused
|
||||
- [ ] When done: shut down, suspend, hibernate, log out, lock, quit, run command, with a cancellable countdown; conditions (all, queue, task)
|
||||
- [ ] logind through zbus, inhibit suspend while downloading; capabilities checked first
|
||||
- [ ] Run program: argument list with placeholders, no shell, timeout, output in the log
|
||||
- [ ] Test file `docs/tests/S021-queues-schedule-power.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S021: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-core --test schedule` green against a fake logind
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-core (schedule) green against a fake logind
|
||||
- daylight saving, time zone and missed-while-asleep on a virtual clock
|
||||
|
||||
## Pitfalls
|
||||
Never call the real logind power methods in tests. A failed download must not trigger a shutdown unless chosen.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S022 — Control screens
|
||||
|
||||
> Category 04 Control · Model: Opus · Effort: medium · Depends on: S015, S018, S020, S021 · Size: M · Human: no
|
||||
> Category 04 Control · Model: Sonnet · Effort: medium · Depends on: S015, S018, S020, S021 · Phase: build · Human: no
|
||||
> Files touched: crates/app/src/views/{modes,queues,schedule}*, crates/app/tests/control*
|
||||
|
||||
## Goal
|
||||
|
|
@ -18,10 +18,14 @@ FEATURES 2.1–2.9 and 9.5 on screen.
|
|||
- [ ] Queue page: cards with live totals, drag tasks and order, edit sheet
|
||||
- [ ] Week grid for modes and starts: paint by drag, keyboard too
|
||||
- [ ] Quota card and metered notice; done-action picker with countdown sheet
|
||||
- [ ] Test file `docs/tests/S022-control-screens.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S022: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar --test control` green: drag keeps the grab point, keyboard equivalent works
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar (control) green: drag keeps the grab point, keyboard equivalent works
|
||||
- shots looked at
|
||||
|
||||
## Pitfalls
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S023 — The port and its protection
|
||||
|
||||
> Category 05 Connector · Model: Opus · Effort: high · Depends on: S016 · Size: M · Human: no
|
||||
> Category 05 Connector · Model: Opus (network security) · Effort: medium · Depends on: S016 · Phase: build · Human: no
|
||||
> Files touched: crates/core/src/connector/**, crates/core/tests/connector*, docs/CONNECTOR.md
|
||||
|
||||
## Goal
|
||||
|
|
@ -14,17 +14,22 @@ A browser hands links to 127.0.0.1:17616; nothing else can abuse it. FEATURES 4.
|
|||
## Steps
|
||||
- [ ] Server on loopback only, changeable port, on and off live, port-in-use state that names the fix
|
||||
- [ ] `GET /` ping with name and version; `POST /` with one link or a list, unknown fields ignored, size and rate limits, answers 2xx quickly
|
||||
- [ ] Refuses foreign `Host` (DNS rebinding), any web `Origin`, form content types and preflights; no CORS headers; tests for each attack
|
||||
- [ ] Refuses foreign `Host` (DNS rebinding), any web `Origin`, form content types and preflights; no CORS headers
|
||||
- [ ] Checks links (http, https, ftp, ftps, sftp, stream schemes only), names and headers; hop-by-hop and injection headers dropped
|
||||
- [ ] Cookies, referrer and user agent used for the download and kept through the keyring module
|
||||
- [ ] Sender log: when, what, accepted or why not; sender process name from /proc/net/tcp where possible
|
||||
- [ ] docs/CONNECTOR.md: format, examples with curl, security notes
|
||||
- [ ] Test file `docs/tests/S023-port-server.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S023: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-core --test connector` green
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-core (connector) green
|
||||
- Nacre's exact body (copied as a fixture) is accepted by curl
|
||||
- every attack test refused
|
||||
- every attack: foreign Host, web Origin, form content type, preflight, header injection
|
||||
|
||||
## Pitfalls
|
||||
Never bind 0.0.0.0. Port 15151 is the user's AB Download Manager. No secrets in the sender log.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S024 — Hand-off flow and Nacre test
|
||||
|
||||
> Category 05 Connector · Model: Opus · Effort: medium · Depends on: S018, S023 · Size: M · Human: no
|
||||
> Category 05 Connector · Model: Sonnet · Effort: medium · Depends on: S018, S023 · Phase: build · Human: no
|
||||
> Files touched: crates/app/src/views/{incoming,connector}*, crates/app/src/instance*, assets/*.desktop, crates/app/tests/incoming*
|
||||
|
||||
## Goal
|
||||
|
|
@ -18,13 +18,17 @@ From a click in the browser to a running or continued download. FEATURES 4.4, 4.
|
|||
- [ ] Setting "add without asking" with type and size rules, off by default
|
||||
- [ ] Connector page: state, port, test link button, sender log, steps for Nacre's custom manager
|
||||
- [ ] Single instance by socket; a second launch hands over its arguments; `medlar:` scheme and `.metalink` in the desktop file
|
||||
- [ ] Hidden run: Nacre with a throwaway home and Medlar on a spare port; a click on a test-server link arrives and downloads. If Nacre can't be driven, replay its body and say so
|
||||
- [ ] Expired-link run: download, expire, send a fresh link, file completes identical
|
||||
- [ ] Test file `docs/tests/S024-handoff-flow.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S024: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar --test incoming` green
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar (incoming) green
|
||||
- hidden run log and shots looked at
|
||||
- hidden run: Nacre with a throwaway home, Medlar on a spare port, a click arrives and downloads (else replay its body and say so)
|
||||
- download, expire the link, send a fresh one, file completes identical
|
||||
|
||||
## Pitfalls
|
||||
Run Nacre only with a throwaway home. `medlar:` links come from web pages, so they always show the dialog.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S025 — Video sites through yt-dlp
|
||||
|
||||
> Category 06 Media · Model: Opus · Effort: medium · Depends on: S012, S016 · Size: M · Human: no
|
||||
> Category 06 Media · Model: Sonnet · Effort: medium · Depends on: S012, S016 · Phase: build · Human: no
|
||||
> Files touched: crates/core/src/ytdlp*, crates/app/src/views/video*, crates/core/tests/ytdlp*
|
||||
|
||||
## Goal
|
||||
|
|
@ -17,12 +17,16 @@ FEATURES 6.1 with the system's yt-dlp (D-011).
|
|||
- [ ] Add dialog page: quality choice with sizes, audio only, subtitles, playlist picker
|
||||
- [ ] Run as a task: progress template parsed to parts and speed, pause by stop and resume, limits passed on, cookies through a private temp file
|
||||
- [ ] Errors mapped to kinds: private, removed, region, login, unsupported, too many requests; DRM refused
|
||||
- [ ] A stub yt-dlp script for tests that replays recorded outputs
|
||||
- [ ] Test file `docs/tests/S025-video-sites.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S025: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-core --test ytdlp` green with the stub
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-core (ytdlp) green with the stub
|
||||
- one `#[ignore]` test against the local test server's generic page
|
||||
- a stub yt-dlp that replays recorded outputs
|
||||
|
||||
## Pitfalls
|
||||
Links after `--`; config files ignored; cookies file mode 600 and removed. No bypassing of protections. Don't download from real video sites in tests.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S026 — Preview and conversion
|
||||
|
||||
> Category 06 Media · Model: Sonnet · Effort: high · Depends on: S017, S025 · Size: M · Human: no
|
||||
> Category 06 Media · Model: Sonnet · Effort: medium · Depends on: S017, S025 · Phase: build · Human: no
|
||||
> Files touched: crates/core/src/{preview,convert}*, crates/app/src/views/{preview,convert}*
|
||||
|
||||
## Goal
|
||||
|
|
@ -17,10 +17,14 @@ FEATURES 6.2, 6.3.
|
|||
- [ ] Text and archive head preview; hex for the rest; size caps
|
||||
- [ ] Convert: presets (MP4, MKV, WebM, MP3, Opus, FLAC, remux), own presets, queue with progress and cancel, keep or replace the source
|
||||
- [ ] Auto-convert as a rule action
|
||||
- [ ] Test file `docs/tests/S026-preview-convert.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S026: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-core --test convert` green with ffmpeg-made samples
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-core (convert) green with ffmpeg-made samples
|
||||
- ffprobe confirms results
|
||||
- shots looked at
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S027 — Rules, clipboard, drag and drop, drop target
|
||||
|
||||
> Category 07 Library and tools · Model: Opus · Effort: medium · Depends on: S016, S018 · Size: M · Human: no
|
||||
> Category 07 Library and tools · Model: Sonnet · Effort: medium · Depends on: S016, S018 · Phase: build · Human: no
|
||||
> Files touched: crates/core/src/rules*, crates/app/src/{clipboard,drop}*, crates/app/src/views/{rules,target}*
|
||||
|
||||
## Goal
|
||||
|
|
@ -18,10 +18,14 @@ FEATURES 3.3, 3.4, 3.9.
|
|||
- [ ] Drop links, text, lists and `.metalink` on the window with a full-window drop state
|
||||
- [ ] Floating drop target: small wavy ring with speed, own always-on-top window where the compositor allows, else a compact window; accepts drops; context menu
|
||||
- [ ] Rules and clipboard pages
|
||||
- [ ] Test file `docs/tests/S027-rules-clipboard-drop.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S027: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-core --test rules` and app tests green
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-core (rules) and app tests green
|
||||
- hidden run drops a link and shots looked at
|
||||
|
||||
## Pitfalls
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S028 — Archive peek, unpack, join and scan
|
||||
|
||||
> Category 07 Library and tools · Model: Opus · Effort: medium · Depends on: S017, S018 · Size: M · Human: no
|
||||
> Category 07 Library and tools · Model: Opus (hostile archives) · Effort: medium · Depends on: S017, S018 · Phase: build · Human: no
|
||||
> Files touched: crates/core/src/archive/**, crates/app/src/views/archive*, crates/core/tests/archive*
|
||||
|
||||
## Goal
|
||||
|
|
@ -17,10 +17,14 @@ FEATURES 3.7, 7.5.
|
|||
- [ ] Join split files (.001, .part, multi-volume) after all parts are done
|
||||
- [ ] Scan hook: any command with a placeholder, clamscan preset when found; quarantine state
|
||||
- [ ] Archive tab and post-action settings
|
||||
- [ ] Test file `docs/tests/S028-archives.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S028: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-core --test archive` green: traversal, symlink, bomb and huge-count archives refused
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-core (archive) green: traversal, symlink, bomb and huge-count archives refused
|
||||
|
||||
## Pitfalls
|
||||
Zip slip and bombs. Check paths after normalising, cap ratio and count, extract to a temp folder, then move.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S029 — Site grabber and explorer
|
||||
|
||||
> Category 07 Library and tools · Model: Opus · Effort: medium · Depends on: S011, S016, S027 · Size: M · Human: no
|
||||
> Category 07 Library and tools · Model: Sonnet · Effort: medium · Depends on: S011, S016, S027 · Phase: build · Human: no
|
||||
> Files touched: crates/core/src/{grab,explore}*, crates/app/src/views/{grab,explore}*, crates/core/tests/grab*
|
||||
|
||||
## Goal
|
||||
|
|
@ -17,10 +17,14 @@ FEATURES 3.5, 3.6: collect links from a web page or folder listing.
|
|||
- [ ] Optional save of pages with links rewritten for offline reading
|
||||
- [ ] Explorer for FTP, SFTP and open directory listings (Apache, nginx, h5ai): tree, multi-select, whole-folder download keeping the structure
|
||||
- [ ] Results view with tree, filters, select by pattern, send to Add or a queue
|
||||
- [ ] Test file `docs/tests/S029-grabber-explorer.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S029: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-core --test grab` green on the test site tree: loops, traps, off-host links and huge pages handled
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-core (grab) green on the test site tree: loops, traps, off-host links and huge pages handled
|
||||
- shots looked at
|
||||
|
||||
## Pitfalls
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S030 — Statistics, import and export
|
||||
|
||||
> Category 07 Library and tools · Model: Sonnet · Effort: high · Depends on: S015, S021 · Size: M · Human: no
|
||||
> Category 07 Library and tools · Model: Sonnet · Effort: medium · Depends on: S015, S021 · Phase: build · Human: no
|
||||
> Files touched: crates/core/src/{stats,port}*, crates/app/src/views/stats*, crates/core/tests/port*
|
||||
|
||||
## Goal
|
||||
|
|
@ -17,10 +17,14 @@ FEATURES 7.6, 7.7.
|
|||
- [ ] Export and import of lists (JSON, text, CSV, Metalink) and full backup without secrets
|
||||
- [ ] Import from aria2 session files; AB Download Manager and FDM only from exports with a documented or sample format, otherwise say not supported
|
||||
- [ ] Merge rules for duplicates, preview before import
|
||||
- [ ] Test file `docs/tests/S030-stats-import.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S030: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-core --test port` green with round trips
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-core (port) green with round trips
|
||||
- shots in light and dark looked at
|
||||
|
||||
## Pitfalls
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S031 — Command line, headless and REST
|
||||
|
||||
> Category 07 Library and tools · Model: Opus · Effort: medium · Depends on: S021, S024 · Size: M · Human: no
|
||||
> Category 07 Library and tools · Model: Sonnet · Effort: medium · Depends on: S021, S024 · Phase: build · Human: no
|
||||
> Files touched: crates/cli/**, crates/core/src/rest*, crates/app/src/main*
|
||||
|
||||
## Goal
|
||||
|
|
@ -18,10 +18,14 @@ FEATURES 8.2 (API), 8.3.
|
|||
- [ ] REST plus event stream with the same commands, token per client, scopes (read, control), off by default, loopback unless remote control is on
|
||||
- [ ] Shell completions (bash, zsh, fish) and man page generated
|
||||
- [ ] Terminal progress with parts, plain when not a terminal
|
||||
- [ ] Test file `docs/tests/S031-cli-rest.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S031: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-cli` green
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-cli green
|
||||
- scripted end-to-end run against the test server without a display
|
||||
|
||||
## Pitfalls
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S032 — Web remote
|
||||
|
||||
> Category 07 Library and tools · Model: Opus · Effort: medium · Depends on: S031 · Size: M · Human: no
|
||||
> Category 07 Library and tools · Model: Opus (login and web security) · Effort: medium · Depends on: S031 · Phase: build · Human: no
|
||||
> Files touched: crates/core/src/remote*, crates/core/remote/**, crates/core/tests/remote*
|
||||
|
||||
## Goal
|
||||
|
|
@ -17,10 +17,14 @@ FEATURES 8.2: control Medlar from a phone on the LAN.
|
|||
- [ ] Look from the same roles: wavy SVG bars, light and dark, reduced motion, phone first
|
||||
- [ ] Security: rate-limited login, hashed password, HttpOnly SameSite cookie, CSRF token, CSP, `Host` check, sessions list and revoke; optional own TLS certificate
|
||||
- [ ] Settings page for it
|
||||
- [ ] Test file `docs/tests/S032-web-remote.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S032: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar-core --test remote` green, with auth, CSRF and rebinding tests
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar-core (remote) green, with auth, CSRF and rebinding tests
|
||||
- page checked in the built-in browser at phone and desktop width
|
||||
|
||||
## Pitfalls
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# S033 — Tray, notifications and autostart
|
||||
|
||||
> Category 07 Library and tools · Model: Sonnet · Effort: high · Depends on: S022, S024 · Size: M · Human: no
|
||||
> Category 07 Library and tools · Model: Sonnet · Effort: medium · Depends on: S022, S024 · Phase: build · Human: no
|
||||
> Files touched: crates/app/src/{tray,notify,launcher,autostart}*
|
||||
|
||||
## Goal
|
||||
|
|
@ -17,10 +17,14 @@ FEATURES 8.1, 8.4.
|
|||
- [ ] Notifications: done, failed, needs login, all done, with actions (open, show folder, continue, retry); grouped, quiet hours
|
||||
- [ ] Launcher progress through the Unity D-Bus signal
|
||||
- [ ] Desktop file, metainfo, MIME and scheme entries checked by their validators when present
|
||||
- [ ] Test file `docs/tests/S033-tray-notify.md`, with the checks below
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S033: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar` green against fake StatusNotifier and Notifications services under dbus-run-session
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Checks for the test file (do not run now)
|
||||
- automatic tests in medlar green against fake StatusNotifier and Notifications services under dbus-run-session
|
||||
|
||||
## Pitfalls
|
||||
Never use the user's session bus in tests.
|
||||
|
|
|
|||
|
|
@ -1,32 +1,25 @@
|
|||
# S034 — Animation audit
|
||||
# S034 — Motion and look pass
|
||||
|
||||
> Category 08 Motion and polish · Model: Opus · Effort: high · Depends on: S022, S024, S026, S027, S028, S029, S030, S032, S033 · Size: M · Human: no
|
||||
> Files touched: animation-plans/**, docs/PROGRESS.md
|
||||
> Category 08 Motion and polish · Model: Opus (design judgement) · Effort: medium · Depends on: S017, S022, S024, S026–S033 · Phase: build · Human: no
|
||||
> Files touched: crates/app/**, crates/core/remote/**
|
||||
|
||||
## Goal
|
||||
Run `/improve-animations` at standard depth over the finished app, as D-008 sets out. Plans only, no source changes.
|
||||
One look and feel, and motion that earns its place (D-008, FEATURES 9.7). Was S034, S035 and S036: find and fix in one go, no separate plan files.
|
||||
|
||||
## Read
|
||||
- improve-animations and app-taste skills
|
||||
- crates/app/src/{motion,tokens}*
|
||||
- crates/app/src/ui and views (motion calls)
|
||||
- `~/.claude/skills/app-taste/SKILL.md`, `~/.claude/skills/improve-animations/SKILL.md` (rules only)
|
||||
- crates/app/src/{motion,tokens}*, then the views by `rg` hits only
|
||||
|
||||
## Steps
|
||||
- [ ] Recon: where motion lives, tokens, personality, a frequency tier for each animated surface
|
||||
- [ ] Audit the eight categories named in the skill; the web remote page included
|
||||
- [ ] Re-read the code at each finding; drop the by-design and duplicate ones
|
||||
- [ ] Findings table by leverage and up to four missed opportunities
|
||||
- [ ] A self-contained plan for every HIGH and MEDIUM finding in `animation-plans/`, with exact values and a feel check
|
||||
- [ ] Update S035's steps: one checkbox per plan, and sync its tracker doc; split to S035b if more than ten
|
||||
- [ ] One list of faults across all screens and the web remote page, by leverage: motion, edges, grid, radii, sizes, states, copy, focus; drop what is by design
|
||||
- [ ] Fix every high and medium motion fault
|
||||
- [ ] Fix every high and medium look fault; no literal colours or radii outside tokens
|
||||
- [ ] Copy, empty states, AccessKit names, focus and 32 px hit targets
|
||||
- [ ] Test file `docs/tests/S034-motion-audit.md`: each fixed motion with normal, reduced and off; keyboard only; sizes 480, 900, 1600, 3440; light, dark, AMOLED; long names and big numbers
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S034: …`, push
|
||||
|
||||
## End criteria
|
||||
- `ls animation-plans` shows README and the plans
|
||||
- every finding cites file:line that exists
|
||||
- `git diff --stat -- crates` is empty
|
||||
`nice cargo check -q -j 2 -p medlar` clean
|
||||
|
||||
## Pitfalls
|
||||
Subagents only if the orchestrator allows; inline otherwise. "Already right" is a valid result.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
Order of fixes.
|
||||
Polish within the look, no redesign. "Already right" is a valid result.
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
# S035 — Animation fixes
|
||||
|
||||
> Category 08 Motion and polish · Model: Opus · Effort: medium · Depends on: S034 · Size: L · Human: no
|
||||
> Files touched: crates/app/**, crates/core/remote/**, animation-plans/README.md
|
||||
|
||||
## Goal
|
||||
Carry out the plans from S034.
|
||||
|
||||
## Read
|
||||
- animation-plans/README.md, then each plan as it is worked on
|
||||
- animate skill
|
||||
|
||||
## Steps
|
||||
- [ ] Carry out each plan in the README order, with its own verification and feel check
|
||||
- [ ] Shot sequences before and after for each changed motion
|
||||
- [ ] Reduced and off levels checked for every change
|
||||
- [ ] Idle and busy frame cost no worse than before
|
||||
- [ ] README statuses set to DONE, or skipped with a reason
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S035: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar` green
|
||||
- every plan DONE or explained
|
||||
- idle CPU under 1 %
|
||||
|
||||
## Pitfalls
|
||||
Stay inside each plan's boundaries.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
What can only be judged on real hardware.
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
# S036 — app-taste pass over every screen
|
||||
|
||||
> Category 08 Motion and polish · Model: Opus · Effort: medium · Depends on: S035 · Size: L · Human: no
|
||||
> Files touched: crates/app/**
|
||||
|
||||
## Goal
|
||||
One look and feel everywhere. FEATURES 9.7.
|
||||
|
||||
## Read
|
||||
- app-taste skill
|
||||
- crates/app/src/views list
|
||||
- tests/shots.rs
|
||||
|
||||
## Steps
|
||||
- [ ] Shot set of every screen, state, size (480, 900, 1600, 3440), light, dark and AMOLED, with long names and big numbers
|
||||
- [ ] Walk the app-taste rules screen by screen; list the faults, then fix: edges, grid, radii, sizes, states
|
||||
- [ ] Copy pass: verbs, plain errors, sentence case, empty states
|
||||
- [ ] Keyboard-only pass and AccessKit names; focus visible everywhere; hit targets 32 px
|
||||
- [ ] Consistency of icons, tooltips and shortcuts
|
||||
- [ ] Second shot set compared with the first
|
||||
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S036: …`, push
|
||||
|
||||
## End criteria
|
||||
- `nice cargo test -j 2 -p medlar` green
|
||||
- no literal colours or radii outside tokens (grep check added as a test)
|
||||
- shots looked at
|
||||
|
||||
## Pitfalls
|
||||
Polish within the look, no redesign.
|
||||
|
||||
## Handoff (→ PROGRESS.md)
|
||||
—
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue