Rewrite alignment: contract v1, evidence, session lifecycle, stealth, validation harness#34
Merged
vercel[bot] merged 3 commits intomainfrom Apr 20, 2026
Merged
Conversation
Add new session lifecycle methods and wire tools into registry. Co-authored-by: Jeremy Schulze <197647907+Delqhi@users.noreply.github.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Extend content script, rewrite worker, add tests, and migrate call sites. Co-authored-by: Jeremy Schulze <197647907+Delqhi@users.noreply.github.com>
Update error message handling and add tests for new interaction primitives. Co-authored-by: Jeremy Schulze <197647907+Delqhi@users.noreply.github.com>
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.
Implements the OpenSIN-Bridge counterparts of worker issues #68-#76
(parent tracker
OpenSIN-AI/A2A-SIN-Worker-heypiggy#67).Scope
extension/src/contract/v1/index.jswith methodregistry, error codes, retry hints, idempotency table. Exposed through
bridge.contract*tools and thebridge_contractlegacy alias.drivers/trace.js+drivers/evidence.js+tools/evidence.js. New methods:bridge.evidenceBundle,bridge.traces.drivers/session-lifecycle.jswithmanifest / TTL / last-known-good / health. New methods:
session.manifest,session.invalidate,session.lastKnownGood,session.health,session.list,session.drop.tools/stealth.jswithstealth.assess(coherence score) andstealth.detectChallenge(Cloudflare / Turnstile / reCAPTCHA / hCaptcha / DataDome).
scripts/validate-bridge-contract.mjsplus tests under
test/contract/,test/session/,test/evidence/.tools/aliases.jsso existing callers keepworking during the worker rollout.
server.jsTOOL_DEFINITIONS extended with the new methods.docs/BRIDGE_CONTRACT_V1.md,docs/REWRITE_TRACKER.md.Tests
Compatibility
canonical dotted handlers via
tools/aliases.js.session.save/session.restoreare preserved unchanged; the newmanifest layer wraps them.
Co-authored-by: v0[bot] <v0[bot]@users.noreply.github.com>