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

Function bounds

tests/coverage_live_v2_admin.py:100–123  ·  view source on GitHub ↗
(context, case)

Source from the content-addressed store, hash-verified

98
99
100def bounds(context, case):
101 runner, marker = untouched_runner(case)
102 options = ["--max-output-bytes", "--max-total-output-bytes", "--max-profile-bytes",
103 "--max-total-profile-bytes", "--max-profile-files", "--conversion-timeout",
104 "--max-map-bytes", "--reduction-timeout", "--timeout"]
105 for number, option in enumerate(options):
106 directory = case / ("zero-%d" % number)
107 directory.mkdir()
108 registry = context.registry(directory, image=digest(runner))
109 process, destination = context.collect(directory, registry, runner=runner, extra=[option, "0"])
110 no_marker(process, destination)
111 require(not marker.exists(), "invalid positive bounds reached runner")
112 directory = case / "native-output-bound"
113 directory.mkdir()
114 registry = context.registry(directory)
115 process, destination = context.collect(directory, registry, extra=["--max-output-bytes", "1"])
116 no_marker(process, destination)
117 directory = case / "native-file-count-bound"
118 directory.mkdir()
119 registry = context.registry(directory)
120 process, destination = context.collect(directory, registry, extra=["--max-profile-files", "1"])
121 no_marker(process, destination)
122 require(len(retained_profiles(destination)) >= 2, "profile bound was not reached after real native evidence")
123 return {"class": "administrative-bounds-with-native-file-control", "positive_options": options}
124
125
126def converter_errors(context, case):

Callers 1

mainFunction · 0.90

Calls 7

digestFunction · 0.90
requireFunction · 0.90
retained_profilesFunction · 0.90
untouched_runnerFunction · 0.85
no_markerFunction · 0.85
registryMethod · 0.80
collectMethod · 0.80

Tested by 1

mainFunction · 0.72