The pipeline that reads a client's pages and proposes changes is automatic. The step that puts a change on a client's page is not. This page is about the part in between: what a proposal has to contain before a person is asked to judge it, what approving does and does not do, and what is recorded.
Why a person
The copy on a product page is not ours. It may have been written by an agency, approved by a legal team, or be one arm of an A/B test that someone is in the middle of reading. Whether a sentence may be replaced is not something a pipeline can know, and when a client later asks who changed their page, “the system did” is not an answer.
So the default is that nothing is written. Two things have to happen before anything is: a person adopts the specific proposal, and the site’s write scope allows that kind of write.
What a proposal contains
A proposal is attached to a page and has a target, a statement of impact, the content, the place it would go, and its evidence: the verbatim passages from the client’s own page that the content was built from.
The evidence rule is strict. A proposal with no evidence is not supposed to be made. If one reaches the inbox anyway, its card shows a red notice telling the reviewer not to apply it. The reviewer does not have to take the content on trust: the passages it was built from are on the card beside it.
The inbox
The inbox lists pages whose decision is pending, one card per page, because approval is per page. A card shows, for each proposal:
- what it targets and where it would go
- which finding from the site’s diagnosis it addresses, and what that is worth
- the change itself. A change that replaces existing copy is shown as a before and after, with a line saying that existing text will be deleted and replaced. A change that only adds is shown as the inserted text, as raw text and not rendered HTML
- a plain-language preview of what will look different on the client’s page
- the evidence list
Two buttons: adopt, or hold. The page header states the consequence in so many words: approving here does not change the client’s page yet.
Four states

The status is an enum in the schema. Comments are translated from Korean.
enum DecisionStatus {
/// A proposal has been made and is waiting for a person's judgement.
pending
/// A person adopted it. It is a target for apply.
taken
/// A person passed on it. It will not be proposed again.
skipped
/// It has actually gone onto the client's page.
applied
}
A decision records who made it and when. The identity comes from the session, and the function that reads it throws when there is none, so a decision without a name cannot be stored.
Why applied is separate from taken. For changes that go out through our own channel, the sync record says when they shipped. Some proposals are briefs for a page that the client’s web team will build by hand, and nothing in our systems sees that page go live. If only the approval date were kept, “handed over and still waiting” and “live for a month” would look the same, and nobody could say from when to measure the effect. So a person marks the page applied on the day it goes live, and that action has a guard.
export async function markPageApplied(pageId: string): Promise<void> {
const appliedBy = await currentUserEmail();
const before = await prisma.geoPage.findUniqueOrThrow({
where: { id: pageId },
select: { siteKey: true, proposals: true, decision: true },
});
// Only an approved page can be marked as applied. Otherwise approval was skipped.
if (before.decision.status !== 'taken') return;
await prisma.geoPage.update({
where: { id: pageId },
data: { decision: { ...before.decision, status: 'applied', appliedBy, appliedAt: new Date() } },
});
// ...
}
Undo. A decision can be returned to pending. Doing so clears who decided, when, and the applied date, so a page that was approved and then reverted never looks approved.
The write scope
Approval says “this change is acceptable”. The write scope says “this kind of write is permitted on this site”. Both are needed.
| Scope | What may be written |
|---|---|
| Off | Nothing, apart from targets opened one by one with an explicit grant. Proposals are made and nothing is written. The default for every new site, including one that has just installed the platform app |
| Technical | Settings that only machines read and that leave the visible page unchanged: robots and llms files, structured data in the head, the meta description, the main image’s alt text |
| Additive | Also additions that do not touch existing content: alt text on images that have none, a specification table under the product description, search tags |
| Replacing the summary | Not part of any scope. It overwrites copy a visitor sees, so it always needs its own grant |
| A brief for a new page | Never opened by a scope. It is handed to the client’s web team, because creating a URL is something neither channel can do |
The platform write checks the policy per item. The edge sync checks only whether the scope is off: with any other scope it writes every approved page under one target, and with the scope off it also removes what it wrote before. With the scope off, an approved plan makes no calls at all, and a test asserts that as the first principle of the policy module.
A kill switch per site sits beside the scope. It does not affect what is approved or stored. It turns the edge Worker into a pass-through for that site.
Shipping
For the edge channel, shipping is a job started from the site’s operations tab, and it runs twice.
- Plan. The job loads the adopted pages and computes what it would do: these keys written, these deleted. It writes nothing and stores its output.
- Apply. After reading the plan, a person runs it again to apply. The confirmation text says how to undo it.
The plan output a person read is kept on the job record with who started it. That is a small thing with a large purpose: the record shows not only that someone pressed apply, but what they were shown before they did.
What is recorded
| Record | Holds |
|---|---|
| The decision on the page | Status, who decided, when. For applied pages, who marked it and when |
| The job | Who started it, whether it applied, and the plan text |
| The apply log | One row per write: page, target, channel, the value read from the edge before the write, the value after, who decided, the write scope at that moment, success or the error |
The before value is read from the edge at the time of the write, not taken from our own database. It is what was actually being served. Failed writes and recalls are logged with the same shape, and a plan writes no log rows.
The site’s history tab shows the log as before and after pairs.
Failure modes
| What happens | What the system does |
|---|---|
| A proposal has no evidence | The card tells the reviewer not to apply it |
| A page is approved while the scope is off | The card warns that approval will not ship. The apply makes zero writes |
| A page is marked applied without having been approved | The guard returns without writing |
| A decision is made with no session | The identity lookup throws and nothing is stored |
| A write to the edge fails | The page is not marked as synced, and the failure is logged |
| An approved change turns out to be wrong | Return the decision to pending, turn the scope off to recall what shipped, or lower the kill switch |
Limits
- Approving and shipping are two steps on purpose, and that costs time. An approved change sits until someone runs the sync.
- The kill switch in the console is a database setting. It reaches the edge through a sync, and the screen says so. In an emergency the edge config is changed directly.
- Restore is manual. The apply log holds the before value of every write. Nothing yet replays it automatically.
- All admins are equal. Any signed-in admin may decide. There are no reviewer roles.
- The log is immutable by convention. Nothing in the code updates or deletes its rows, and nothing in the database forbids it.
