Repository navigation
Harden gate, policy, and fixture server after review - #5
Merged
Merged
Conversation
Constrain the gate API and revalidate elements before acting, mask sensitive fill values, and record intent/outcome evidence. Validate model answers, broaden hard rules, and bound gateway calls. Harden fixture serving and revision approval, align the eval with policy, and add CI, tests, and documentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to the senior-engineer review. This branch hardens the decision gate, policy, decider transport, fixture server, revision approval, eval, packaging, and docs.
Gate and policy
GateAPI toTargetSpec(role/label/selector); planner code no longer receivesPageorLocator.ElementHandleand fingerprint after model/human approval; block on detach or change.StoppedByGate; keep the real value only in the execution closure.startUrl/allowedOrigins; sanitize title, URL, and page text against prompt injection; read page text in a Chromium isolated world where possible.Server, approval, eval, packaging
path.relativecontainment plusrealpathsymlink rejection, 404s, security headers, clean shutdown, and missing fixture pages.NaN-safe metrics; split page fixtures intoeval/pages.ts.vercelfrom production dependencies; require Node >=20.12; add CI andnpm run verify; harden the publish script and update docs.Verification
npm run verify— 76 tests pass; typecheck clean.npm audit --omit=dev— 0 vulnerabilities.STOPLINE_BACKEND=keyword npx tsx eval/run.ts— 49/49 answered, 0 errors, 0 unsafe allows, noNaN.npm run demo:revision— matching approval accepted; changed revision rejected.Limits
These changes narrow the gate but do not sandbox a caller that keeps the raw
Page/Locator, and they do not remove the documented TOCTOU, page-controlled-DOM, popup, truncation, or local-evidence limits. SeeREADME.mdandSECURITY.mdfor the current boundary.