Skip to content

Hold on a missing verdict instead of reloading - #3

Merged
sujal-maheshwari2004 merged 1 commit into
mainfrom
fix/hold-on-missing-verdict
Aug 23, 2026
Merged

sujal-maheshwari2004 merged 1 commit into
mainfrom
fix/hold-on-missing-verdict

Conversation

@sujal-maheshwari2004

Copy link
Copy Markdown
Contributor

AUTO_RELOAD included "", so the example agent hot-reloaded when the server returned no classification.

The server returns "" when it could not classify the change at all — an unreachable or misconfigured embedding endpoint — and publishes anyway, because the version is durable and the verdict is advisory. So "" does not mean safe; it means nobody checked.

Treating it as safe inverts the gate precisely when it matters: the moment the safety check breaks, every change sails through unreviewed and the log looks like a run of harmless edits. A forged notification carries no verdict either.

Now fails closed, and distinguishes "this edit is risky" from "the classifier is down" so an operator can act on the right one.

Also adds PRIOMPT_TOKEN — the agent built its client with no token, so it could only talk to a server running open, while the point of the example is to stand in for a production agent.

Verified live, all three paths: minor edit → reload, structural → hold, embedder unreachable → hold and keep serving the previous version.

The example treated an empty classification as safe to auto-reload. The server
returns "" when it could not classify a change at all — an unreachable or
misconfigured embedding endpoint, say — and publishes anyway, because the
version is durable and the verdict is only advisory. So "" does not mean "safe";
it means nobody checked.

Treating it as safe inverts the gate exactly when it matters: the moment the
safety check breaks, every change sails through unreviewed, and the log looks
identical to a run of harmless edits. A forged notification carries no verdict
either. It now fails closed, and says which case it is hit rather than the bare
"needs review", so an operator can tell "this edit is risky" from "the classifier
is down".

Also: the agent could not authenticate. It built its client with no token, so it
could only ever talk to a server running open — while the whole point of the
example is to stand in for a production agent. It now reads PRIOMPT_TOKEN.

Verified against a live server, all three paths: a minor edit reloads, a
structural edit holds, and with the embedding endpoint unreachable the empty
verdict holds and keeps serving the previous version.
@sujal-maheshwari2004
sujal-maheshwari2004 merged commit fb638ca into main Aug 23, 2026
1 check passed
@sujal-maheshwari2004
sujal-maheshwari2004 deleted the fix/hold-on-missing-verdict branch August 23, 2026 20:52
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.

1 participant