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:
+32
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user