Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 44c21ae2caacc02d0ce261481c73f036b61c506d
parent 10d63c6c70884c948a0bc868413f07cd065a6633
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 18 Nov 2026 08:40:04 -0500

plans, changelog: x-trending slice 3 as built after review 1 -- the purge takes the operator's drops only and says what is true of a post gone from the page; the press routes are the page's only

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Meditor/CHANGELOG.md | 12+++++++-----
Mplans/x-trending.md | 23++++++++++++++++++-----
2 files changed, 25 insertions(+), 10 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -12,12 +12,14 @@ switch per topic; it works on a phone. - **Purge dropped posts' captures**, in two presses: the first says what would be removed (posts, files, bytes). `pnpm ops purge-trending` is the same: a dry run answers `confirm`, and the removal carries it with - `"by": "operator"`. Only dropped posts' captures go; judgements stay; media another post uses is left. - - Every press is the editor's action, written as the operator's. `umtool library` is the same from a shell, where - `--by` is `agent` unless told. The library stays private: nothing here puts a post into a project or on a site. + `"by": "operator"`. Only the captures of posts the operator dropped go: an agent's drop is counted and left + alone. For a dropped post that is gone from the page, the confirm says its capture is the only copy and that + removing it cannot be undone. Judgements stay; media another post uses is left. + - Every press is the editor's action, written as the operator's, and umtool takes a press from its own page in + a browser only. `umtool library` is the same from a shell, where `--by` is `agent` unless told. The library stays private: nothing here puts a post into a project or on a site. - `GET /api/ops/trending` takes the judge view's asks (filters, `offset`, `ids`, `detail`; no `slug` lists the libraries). Asked as before, it answers as before. - - `watch-trending`'s help says a failing watch waits for the operator. + - A failing watch says it waits until the operator switches it on again, in its own sentence and in the help. - **A trending library can be judged, archived and watched.** - **Keep / Drop / Later** under each post on a library's page, or `pnpm ops judge-trending`. A thread can be judged by its root post. An agent's judgement never replaces the operator's: it is skipped for that post and @@ -36,7 +38,7 @@ cover a night nobody refreshes in. /review lists paused watches. The limit is the watch's own: it holds whatever the login source, and with the cookie-age setting at 0. - All libraries share one stream of ticks: no tick starts while a trending read or capture of any library is - queued or running. Three failed reads in a row pause a watch until someone switches it on again. + queued or running. Three failed reads in a row pause a watch until the operator switches it on again. - A post a trending page stops showing is marked "Gone from the page at …", and only when the saved capture shows the page's end. That is not a claim it was deleted. - A browser that will not close is now killed by its process id, checked against the profile it holds. diff --git a/plans/x-trending.md b/plans/x-trending.md @@ -188,11 +188,23 @@ again by the watch; keeping the post asks again. editor's action with `by: "operator"` stamped on umtool's server (`umtool/lib/library/presses.mjs`; a `by` in the body is not read). umtool writes no file of a library and asks X nothing. - **The listing** (`listXTrending`, `GET /api/ops/trending`) takes a filter, `offset`, `ids` and `detail`, and - with no `slug` lists the libraries. Asked as before it answers as before: the MCP's tools and `get trending` + with no `slug` lists the libraries. With the topics' seen marks (`seen`) it answers every topic's new posts + in the same read: a view is two reads of the editor, whatever the number of topics. Asked as before it answers as before: the MCP's tools and `get trending` are unchanged. -- **The purge** (`common/lib/xTrending/purge.ts`, `purge-trending`): dropped posts only, a dry run whose walk - is the removal's, a digest of the exact posts the removal must carry, the operator's, refused while a - capture is queued or running. +- **The purge** (`common/lib/xTrending/purge.ts`, `purge-trending`). RULED (review 1): IT TAKES THE + OPERATOR'S DROPS ONLY — posts whose judgement in force is drop by the operator, their own entry or their + thread's. An agent's drop is a suggestion and is never purged: the answer counts those left alone + (`agentDropped`). The posts to be removed that are gone from the page are named (`gone`), and the sentence + is true of them: the capture is the only copy and removing it cannot be undone; "keeping it again captures + it again" is said only of the others. A dry run whose walk is the removal's, a digest of the exact posts the + removal must carry, the set read again inside the media index's lock immediately before the first file goes, + the operator's, refused while a capture is queued or running. The page, `pnpm ops` and `umtool library` + print the one sentence and the same numbers. A purge clears the page's undo memory. +- **The press routes are the page's only** (review 1): `/api/library/{judge,watch,purge,seen}` write a press as + the operator's, so they take one only from umtool's own page in a browser (`umtool/lib/library/caller.mjs`: + what a browser sends and a page cannot forge, same-origin, to this machine). A request no browser sent, + with a bearer or with nothing, is a 403 naming `pnpm ops` and `umtool library`. Mark seen is the operator's + too: `umtool library seen` wants `--by operator`, and the library and topic are checked through the listing. - **Media** is served by umtool, `/api/library/media/<lib>/<id>/<name>` (`umtool/lib/library/media.mjs`): a picture or a video under a MARKED library's `trending/posts-media/<id>/`, its real path inside it, read only, refusing a cross-site request, listing nothing. umtool is LAN-bound, as its other media routes are. @@ -205,7 +217,8 @@ again by the watch; keeping the post asks again. - **Found on the way.** After a press the page reads its view again through `GET /api/library`, not `router.refresh()`: several refreshes in a row left the last one unapplied until the next press. An undo writes the restored entry as the operator's, whoever wrote the one it replaced (the action cannot write - another hand's entry). + another hand's entry); the bar says so. A bulk press over more than 500 posts whose later chunk fails says + how many were written and returns the undo of those. ## Slice 4: topics and publishing