feat/project-deletion #59

Merged
xavier merged 7 commits from feat/project-deletion into dev 2026-11-18 14:02:33 +01:00
Owner
No description provided.
The leaving half of the project registry (server-registry.md; «project
deletion by owner», server-mode.md): Registry.Delete drops one entry in
ONE registry transaction — the acronym frees, a re-init under it is a
fresh birth (ADR-028) — and the host's DeleteProject composes the
owner-gated wire act: the authoritative gate (membership E_UNKNOWN_AGENT
first, then E_NOT_OWNER via the shared app guard) and the whole
namespace + registry entry removed in one host-level critical section
(enginesMu held across engine close → store file vacated by atomic
rename → entry dropped), every crash window landing in the sanctioned
shapes — the entry-present window re-materializes empty (the lost-file
shape), the entry-dropped window never resurrects (the canonical path
mints fresh). Deletions serialize through deleteMu: the loser fails
typed at the gate, never at an internal double-close.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
The control plane's second endpoint beside /initialize («project
deletion by owner», server-mode.md): the actor rides the body (the
mutating-request discipline, ADR-023 point 5), the unknown-project
rejection routes through the same resolve as every /p/ route, and the
audit row lands after the host commits — subject the machine, actor the
declared owner, fact registry/<acronym>. The exchange is outcome-unknown
territory (/delete rides isMutatingExchange — /initialize's precedent,
pinned by the round record). The client call is the handle's method:
the token the credential channel, the staged actor the body. The two
protocol.Deps test fakes gain the interface-satisfaction stubs (the
deletion act's own probes are the tester's).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
GuardProjectDeletion — the one rule every deletion surface answers
with (membership E_UNKNOWN_AGENT first, then E_NOT_OWNER), mode-blind
through the Store port: the CLI gates both carriages with it (the
init-ensure's client-side precedent), the server re-runs it
authoritatively against the engine. No zero-owner relief — repair is
init's entrance (ADR-016). The render record carries the three
carriages' fields (Store/Server/DataRoot, omitempty per carriage) and
the hazard sentence as fixed bytes (HazardCloneCapture): the
clone-capture warning named, not hidden, on both server carriages —
machine form structured, human form the note line.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
skuld project delete — the mode twin, BINDING-ADDRESSED per the FR: no
name flag exists, the acronym comes from the thin config alone (a
positional is a usage error). skuld projects remove <acronym> — the
console's ONE name-addressed deletion, the machines-noun pattern
(--data, cold cadence on the registry.db/audit.db locks, ConsoleActor
audit row, the operator's stray cleanup, a board no binding reaches
included). Bare nouns are usage errors naming the forms; both nouns
wire through Deps seams the composition root owns.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
The mode twin's composition: the acting agent's resolution, the shared
gate, then the dispatch — local removes the whole .skuld/ at the BOUND
root (the data-location key decided it; a lane run deletes the MAIN
tree's store, the boundary notice rendering), server runs the wire act
through the boot-built handle and removes the caller's own thin config
after the deletion lands (the repo un-initialized, twin-symmetric; the
hazard names the OTHER clones' traffic). The console composition: open
registry.db + audit.db exclusively, resolve → file removed → entry
dropped (the order every crash window lands in the sanctioned shapes),
the audit row after the fact, the gap announced loudly and never
re-reporting the landed removal. Boot: projects joins the project-less
dispatch; both compositions wire into Deps.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
The deletion act's adversarial pins, all against the production host
composition or the render bytes: the server gate's membership-first
order by raw wire calls (no CLI above it — the authorization cannot
ride the client's word); the namespace + registry entry leaving in one
act with the vacated temp swept and the freed acronym birthing FRESH
(new roster only, no items — never a resurrection); the audit row read
raw from audit.db (subject the machine, actor the DECLARED owner,
fact registry/<acronym>); concurrent deletions serializing to exactly
one landing with the loser typed E_UNKNOWN_PROJECT; a staged
in-flight transaction racing the deletion without resurrecting the
doomed namespace; the request-shape discipline (method, malformed
actor, malformed body, unknown acronym); the wire client's
outcome-unknown family pins for /delete (mid-flight truncation,
connect failure, the retry's typed unknown-project — the crash-window
corner); and the hazard's fixed bytes per carriage (machine payload +
human note line on both server carriages, absent on the local one).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
project-deletion: comment hygiene — the reviewer's three nits
All checks were successful
/ secrets-scan (gitleaks 8.28.0, all refs, redacted) (pull_request) Successful in 7s
/ test (linux/amd64, full suite) (pull_request) Successful in 1m34s
/ build linux/amd64 (pull_request) Successful in 54s
/ build darwin/amd64 (pull_request) Successful in 59s
/ build windows/amd64 (pull_request) Successful in 1m23s
/ build darwin/arm64 (pull_request) Successful in 1m25s
/ build linux/arm64 (pull_request) Successful in 53s
/ build windows/arm64 (pull_request) Successful in 53s
/ release (six binaries + checksums.txt, tag pushes only) (pull_request) Has been skipped
4a4a2ea2ba
The conformance harness's MachineSelfView comment returns to its
function (the DeleteProject stub keeps its own); the console audit
row's subject wording aligns with the code — the project's registry
address, not the acronym (the code stands, the reviewer ruled); the
retry probe names its fake's message wording as its own — production's
is registry.Delete's ("deletion addresses a registered project"), the
client branches on the code, never the prose.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
xavier deleted branch feat/project-deletion 2026-11-18 14:02:33 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
assistant/skuld!59
No description provided.