alexandria.marketplace

close

Ends a task without losing anything from it.

Benjamin a. Mowinckel

Ends the task you're in without losing anything: it first checks the work was the right thing to do and is done right, then what the session taught about you goes into your own files, every open thread in it is finished or parked, and you are asked only what genuinely needs you. Type "close" or "end" to run it. To add it, ask your model to add close; to turn it off, ask it to remove it.

Why

  • A close is a claim that the work is finished and was worth doing, so it checks both before it saves or reports anything. Work done perfectly can still be the wrong work, and only stepping back to the whole it serves shows that.
  • Signal that needs the live context of the close dies with the tab, and no later sweep recovers it, so it is captured now, with full context, or not at all.
  • Logging isn't capturing. A signal in a log or a reflection counts only when the file that should own it carries it at full strength. A signal you have to capture twice is a bug in the file, not new signal.
  • An unverified write is a lost write, because nothing downstream catches a write that never reached disk.
  • Fresh, never from memory. Long sessions get compacted, a close run from a summary is where value quietly disappears, and a silent close failure is the worst kind, because nothing downstream catches it.
  • The bar is that after it runs, leaving the task loses nothing, neither its work nor what it taught, and every other task is untouched.

How

When it runs

"close", "end", or your tool's close command, typed as the message, in any chat that is not a deliberate thinking session with a close of its own. Inside one (in Alexandria, a chat where the alexandria session was started and has not closed), the chat decides the close, not the word: the same words run that session's close (the a. skill), so your model hands over to it and stops here. Your model loads this skill fresh at that moment instead of working from a memory of it.

First, check it is right to close

Before anything else, your model steps back twice, and the task is not ready to close until both answers are yes.

  • Was it the right thing to do? It looks up from the work to the whole it serves (your company, the project, your own life) and judges the task from the ground truth of what is best for that whole and the people in it, never from the request, plan or page that started it. It questions the requirement first: would the whole be better if this had been done differently, smaller, somewhere else, or not at all; did it go at what is actually holding you back; and did it leave anything worse, such as a second copy, a new moving part, or a step someone now has to remember? Whatever the step back finds, it fixes now, undoing, deleting or redirecting the work, and where the better route is a call that is yours (your taste, your money, or something outward-facing), it says so in one plain line with its pick instead of overriding you.
  • Is it done right? Of everything the task made or changed: is it live and verified where it lives, true everywhere it is described, and the best version of itself? If "would you change anything?" has an honest yes (the same test as the optimise skill, where you have one), it fixes it now, or says plainly what still holds it open.

When both answers are yes, the check adds nothing to the report. Only then does it run the parts below, whichever of the three the session touched, skipping any that nothing surfaced for and leaving no empty sections.

1. Keep what the session taught

Any session can surface signal about you, and personal ones surface the most. Your model routes each piece quietly to its home in your own files, in your words.

  • What you think (positions, stories, patterns, contradictions) goes to your working notes until you confirm it as your position, then where you keep your beliefs.
  • What is true of your life (where you are, the people in it, dates, plans, money, health, possessions) goes where your own list of where things live says, or your default facts file; health, money and identity details only where that list puts them, otherwise one question. Only what you said, never inferred (Alexandria: system/model/canon/foundation.md § what is kept, and what is read).
  • How to work with you (what worked, what didn't) rewrites the matching rule where you keep that, in the present tense, never as a dated diary entry.
  • A correction to a practice in your own words ("prefer Z", "X feels off because Y") is folded into that practice's file as a coherent passage, never appended as a log line, with a one-line note so you can revert it.
  • A piece you made that shipped after rounds of your notes taught a style. Your model rewrites the guide for that style where you keep how you write, so the next piece in it would come out as this one finally did on the first try, and points the guide at the shipped piece as its example.
  • A correction your model can't fold into its rule yet goes to wherever you keep corrections waiting to land.

For each correction, your model names its durable home and reads it; if it misses the point or is weaker than the signal, it integrates the signal there. The log entry is a pointer, never the substitute. If the same correction is already waiting, or you say "I keep telling you this", the owning file failed, so it fixes the file instead of logging the complaint again.

It reads each write back, or checks git, before counting it.

A task with no project still has a close: most personal sessions touch at least the how-to-work-with-you notes and maybe one practice file.

2. Run the project's own close

If the work belongs to a project with its own upkeep rules (its AGENTS.md, a conventions file), your model runs them for what this session changed, on top of part 1. It never assumes which project; it looks at the folder and the files touched.

3. Finish the threads and report

  • Close what follows the work. A change can leave stale whatever follows it: a page built from it, a summary of it, a copy of it somewhere else. If your system keeps those links in files (Alexandria's upkeep module does, and python3 ~/.local/share/alexandria/scripts/change_closure.py check <each file this task changed> lists every one whose source moved since it was last read), your model reads each listed output against its source, updates it or confirms it, and leaves none listed. A follow-up only it knew about gets written down as a link, so the next model doesn't have to know it too.
  • Resolve every open thread in this task that doesn't genuinely need you, keeping each change reversible. Save or commit any unsaved work so nothing dies with the tab. If this task improved something you share with other people, it becomes one line in the upkeep queue (Alexandria's upkeep module, § Where each change goes), and your next Alexandria session offers it for a yes. Park what truly can't be settled where you keep open questions, with a drafted resolution you can accept in one word later.
  • Leave no copies behind. If this task worked in its own copy of a repository (a worktree) or on its own branch, remove both once the work has landed where it belongs; work that is paused is committed to its branch first, so the folder can go and nothing is lost. Leftover copies and branches pile up across tasks until your folders and repositories are a mess you have to ask someone to clean.
  • Report in two lines, three when something needs you, because a close is read once, on the way out, and a line nobody reads tells nobody anything. First, what is different for you now, in everyday words, or what still holds the task open. Then, only when a call is genuinely yours, one question answerable in a word: what you're choosing between, what each option costs, and your model's pick, never a file name or internal label you would have to decode. Last, whether you can archive this chat: yes once everything is done, verified and right, or what still holds it open. Nothing else goes in: not the work done, not what closed on its own, not a step back that found nothing, not what was parked, because the proof lives in the files and their history, and what was parked comes back from where you keep open questions when it matters.

Example

You type "close" after an afternoon fixing your website's sign-up form. Your model steps back first: sign-ups are what the site is short of, so the fix was the right work, but the welcome email it added repeats one you already send, so it removes it. Then it checks the fix is live, folds your remark that error messages should name the field into the file where you keep how you like work done, removes the copy of the repository it worked in, and ends: "Sign-up is fixed and live, and I removed a second welcome email I had added. You can archive this chat."

Limits

  • This task only. "Threads" means unresolved lines of work inside this conversation, never other chats or tasks. Your model never lists, reads, messages, delegates to, waits on, interrupts, archives or closes another chat or task unless you explicitly ask to close all of them.
  • Closing never means archiving. It finishes the work and leaves the conversation where it is unless you ask to archive it. You archive it yourself, after reading the report, so it never archives it for you.
  • A thinking session's close is a different skill. If you also use a separate close for a deliberate thinking session (a. in Alexandria), that is a different skill with a different job; the two stay apart, and outside such a session this close never runs that reflection, whichever word you typed. A reflection on what you now think belongs to that close, never here.
  • It never asks about sharing. A change to something other people use waits in the upkeep queue for your next Alexandria session; this close never raises it.
  • Off. Removing it makes "close" and "end" ordinary words again; nothing it already saved is undone.