MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / verdict

Function verdict

tests/test_coverage_parent_failure.py:103–124  ·  view source on GitHub ↗
(mode, code, diagnostics, rows)

Source from the content-addressed store, hash-verified

101
102
103def verdict(mode, code, diagnostics, rows):
104 if mode == "control":
105 problems = []
106 if code != 0 or diagnostics:
107 problems.append("unrestricted positive child caused parent accounting failure")
108 if not complete_rows(rows):
109 problems.append("unrestricted positive reducer rows were not complete")
110 return problems, False
111 if code == 0:
112 if diagnostics or not complete_rows(rows):
113 raise common.Infrastructure("zero-status restricted run did not demonstrate the frozen baseline false success")
114 return ["valid native marker-open failure was silently accepted by original parent"], True
115 if len(diagnostics) != 1:
116 raise common.Infrastructure("nonzero parent status lacks exactly one original-parent accounting diagnostic")
117 required = {TESTS[0], "*"}
118 problems = []
119 if not required <= set(rows) or not set(rows) <= set(TESTS) | {"*"}:
120 problems.append("actual reducer omitted fixture/setup or emitted unrelated rows")
121 for key, row in rows.items():
122 if row["status"] != "incomplete" or "suite did not exit 0" not in row["reason"].split("; "):
123 problems.append("actual reducer did not retain suite failure floor: " + key)
124 return problems, False
125
126
127def run_case(root, mode, inputs):

Callers 1

run_caseFunction · 0.85

Calls 2

complete_rowsFunction · 0.85
setFunction · 0.85

Tested by

no test coverage detected