refactor!: simplify runtime tools and remove replay engines (#572)

* fix(hopper): report unavailable procedure body coverage

* refactor!: simplify runtime tools and remove replay engines

Keep direct inspection, capture, and comparison tools. Bind handlers to named contracts and let agents compose experiments with commands and local fixture servers.

BREAKING CHANGE: Remove controlled replay, Node characterization, finite replay-machine, managed runtime planning, and redundant string-tracing tools. Retire process replay, shims, reactive scenarios, custom checkpoints, and active browser replay and origin-scope inputs.
This commit is contained in:
morluto
2026-10-05 21:15:04 +08:00
committed by GitHub
parent c6d3bdf597
commit e07b81649e
258 changed files with 1193 additions and 22444 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ versions against this historical capture.
`mcp-initialize.json` captures the `initialize` request emitted by the pinned
`@modelcontextprotocol/client` 2.0.0 SDK on 2026-10-04. The client connected to
the actual `scripts/rea.mjs mcp` subprocess and completed `listTools` (122 tools).
the actual `scripts/rea.mjs mcp` subprocess and completed `listTools` (the current catalog).
The recorder intercepted `transport.send`, serialized the message, and delegated
the unchanged message to the real SDK transport. The committed JSON is formatted
for review; whitespace is not a wire identity claim. No provider was launched.
+32
View File
@@ -101,6 +101,26 @@ class FakeProcedure:
def getSegment(self):
return self.segment
def basicBlockIterator(self):
return [FakeBlock()]
def getBasicBlockCount(self):
return 1
def signatureString(self):
return "int fixture-procedure()"
def getLocalVariableList(self):
return []
class FakeBlock:
def getStartingAddress(self):
return 0x401000
def getEndingAddress(self):
return 0x401004
class FakeStringsDocument:
def getSegmentsList(self):
@@ -185,10 +205,20 @@ def main():
bridge["_procedure"] = lambda document, value=None: reference_procedure
bridge["_instruction_addresses"] = lambda procedure: [0x401000]
bridge["_segment"] = lambda document, address: reference_segment
bridge["_containing_procedure"] = lambda document, address: (
reference_procedure,
None,
)
containing_procedure = bridge["_dispatch"](
"resolve_containing_procedure", {"address": "0x401000"}
)
procedure_references = bridge["_dispatch"](
"procedure_references",
{"procedure": "0x401000", "direction": "outgoing"},
)
procedure_info = bridge["_dispatch"](
"procedure_info", {"procedure": "0x401000"}
)
inventories = bridge_replies(bridge, [
request(method, params, index)
for index, (method, params) in enumerate([
@@ -251,7 +281,9 @@ def main():
"current_address": current_address,
"strings": strings,
"inventory_replies": inventories,
"containing_procedure": containing_procedure,
"procedure_references": procedure_references,
"procedure_info": procedure_info,
"provider_faults": provider_faults,
"malformed_requests": malformed_requests,
"session_document_reused": selected,