Skip to content

Make Reject a rejection on the shelf, not a decision - #128

Open
nedtwigg wants to merge 7 commits into
mainfrom
rejections-to-feedback
Open

nedtwigg wants to merge 7 commits into
mainfrom
rejections-to-feedback

Conversation

@nedtwigg

@nedtwigg nedtwigg commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Reject stays, but rejecting isn't a stored verdict any more. A rejection is what's wrong with an image, written for the coding agent. It waits on a shelf until you copy them all to the agent. Approvals keep their own data, and there's a new decision, Undo approval.

Rejecting

  • Reject, or r, on a story's page opens the box on the image showing, asking what's wrong. Saving the rejection goes on to the next story, as Approve does. Drawing a box also starts one, and stays on the story.
  • A rejection is kept as a note. Every page now calls notes rejections, and r replaces m.
  • A story reads Rejected while an open rejection is on its very image and it isn't approved. Rejected has its own filter, and a rejected story is left out of "Needs a decision" and the undecided queue. It's never approved in bulk or by accepting a crosscut.
  • A rejection is never a decision. It never turns a commit red, blocks selfie review, or syncs to another store.

The shelf replaces the feedback bar. It's docked at the foot of every screen, like a Gmail draft. It folds down to its title, and the browser remembers whether it's folded. It has "Copy all for agent", and "Send to agent" while an agent waits locally.

In the cloud, nothing stores notes yet, so the shelf is kept in the browser (localStorage, per project, shared across tabs). It only copies. The copied text names each render batch and each rejected image's hash, and tells the agent to selfie pull <batch> and selfie review <batch> for the images. A link wouldn't open for an agent on a private repository. Anyone can reject, signed in or not, since nothing leaves the browser until they copy it.

selfie pull <batch> takes a batch the remote holds, such as one CI rendered, with its images. It then pulls that batch's commit in the batch's environment, if this clone has the commit. The renders route now sends the batch's facts with each page.

Undo approval

  • Approving an image can be undone with Undo approval, or with selfie unapprove <batch> --all|--story.
  • An undo is a decision, undone. It reads as undecided, says who undid it, and syncs like an approval. takesDecision only lets an undo land on an approved image.

Schema version 2: decisions.rejected becomes decisions.undone. Every store has to be reset when this ships: each project's D1 database, and each local store.db. See OPERATIONS.md → Resetting a project store.

Other changes

  • selfie reject is gone, and so is the rejected blocker. A commit's status is red only when a story fails.
  • summarizeBatch drops unapproved, which is now the same as undecided.
  • isApproved, isUndecided, and rejectedStories are the shared rules.

Glossary: Rejection, Note (what a rejection is kept as), Shelf, Decision (an approval, or an undo of one), and Undecided.

Specs: feedback (Rejections, The shelf, In the cloud), ui, renders, cli, cloud, access, system, README, OPERATIONS, and CHANGELOG.

pnpm test passes: store 661, cli 557, render 147, ui 163. I tried the cloud flow end to end in the sandbox, on #108's batch: reject, move on, the Rejected filter, and Copy all.

🤖 Generated with Claude Code

A decision is now an approval, or a withdrawal that takes one back, which
reads as undecided and says who took it back. What's wrong with an image is a
note's to say. `selfie reject` becomes `selfie unapprove`, the review UI's
Reject buttons and filter go, and a story approved here offers Take back
approval. A commit's status is red only when a story fails.

The decisions table keeps its `rejected` column, now 1 for a withdrawal, since
renaming it would be a schema version that resets every store.

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

@selfie-bot selfie-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syncing with the released 0.1.0 CLI turns a withdrawal into an approval on its side. Details are inline.

Comment thread ui/src/server/sync.ts Resolved
nedtwigg and others added 2 commits November 30, 2026 22:01
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The decision word is `undone`, as the UI's Undo approval says, and the store's
schema is version 2, with `decisions.undone` in place of `rejected`. Every
store, local and D1, is reset rather than migrated. The glossary defines
Undecided, and Decision as an approval or an undo of one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nedtwigg nedtwigg changed the title Replace rejections with taking back an approval Replace rejections with undoing an approval Dec 1, 2026
@nedtwigg

nedtwigg commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@selfie-bot please review again: the decision word is now undone, the store's schema is version 2 (decisions.undone), and the glossary gains Undecided.

selfie-bot
selfie-bot previously approved these changes Dec 1, 2026
Reject, or `r`, asks what's wrong with the image showing, keeps it as a note,
and moves on to the next story. A story reads as rejected while an open note
is on its very image and it isn't approved: it has a label and a filter, and
is never approved in bulk or by a crosscut. Nothing stores a rejection as a
decision. The feedback bar becomes the shelf, docked at the foot of every
screen and folding to its title, with Copy all for agent. In the cloud, where
nothing stores notes yet, the shelf is kept in the browser, and its text links
each image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nedtwigg nedtwigg changed the title Replace rejections with undoing an approval Make Reject a rejection on the shelf, not a decision Dec 1, 2026
@nedtwigg

nedtwigg commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@selfie-bot please review again: Reject is back, as a rejection kept as a note on a shelf for the agent, held in the browser in the cloud, and never a decision.

@selfie-bot selfie-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The selfie status on this head is red, and the cause is this PR: the new Pages/Story/States/Rejected story's play fails (batch dbd9da32, play: expect(element).toBeVisible() … Received element is not visible: <span />). Its first "Rejected" is the story list's decision column, which the narrow sidebar hides, so the assertion lands on a hidden span. The detail page's own label is in <main>. There's a suggestion inline that scopes the check to it, which I haven't run.

The other inline note is minor: if Reject is pressed and the person moves away without saving, the "rejecting" state stays attached to that story.

Comment thread ui/src/client/ImageCompare.tsx Resolved
@selfie-bot
selfie-bot dismissed their stale review December 1, 2026 06:31

Superseded by the review on a later commit.

… leaving

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

@selfie-bot selfie-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pages/Story/States/Rejected still fails, and the cause is the getByRole("main") I suggested last round. The canvas has two main elements: the app's <main className="selfie-main"> and Primer's PageLayout.Content, which renders as main by default and sits inside it. Batch 096cd5df reports play: Found multiple elements with the role "main", and that one failure is why the selfie status reads "1 story failed". Taking the last main gets the inner one, because a nested element comes after its ancestor in document order. The inline suggestion does that. I haven't run it.

…atch

The cloud's copied text names each render batch to pull and each rejection's
image by its hash, instead of a link an agent couldn't open for a private
repository. `selfie pull <batch>` takes that batch and its images, then pulls
its commit, so `selfie review <batch>` gives the images as files. The renders
route sends the batch with each page, which is how a store that knows only an
ID takes it.

Also checks the innermost main in the Rejected story, since the page has two.

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

nedtwigg commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@selfie-bot please review again: the cloud's copied text now names render batches and image hashes, and selfie pull <batch> takes a batch by its ID.

@selfie-bot selfie-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A rejection copied from the cloud tells the agent to run selfie pull <batch> without saying which server to pull from, so the agent gets no-remote unless SELFIE_REMOTE is already set. The inline suggestions pass the page's origin into the command. I haven't run them.

Comment thread ui/src/client/browserNotes.ts Resolved
Comment thread ui/src/client/browserNotes.ts Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants