Repair Arcade camera state routing, batch-camera protocol behavior, and equivalent window-block binding across both…
harbor run -t mimo-v2.6-rl/candidate-1271-media-gamesharbor download mimo-v2.6-rl/candidate-1271-media-gamesYou are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
A dependency upgrade changed how window cameras and batch drawing interact.
The frozen Arcade tree in /app/vendor/project still uses the old integration:
camera activation writes matrices to obsolete window attributes, the default
projector does not implement the batch-camera scope protocol, and both graphics
backends bypass Arcade's buffer abstraction when binding the window matrix
block.
Repair the existing source tree. Modify these six production modules:
arcade/camera/camera_2d.pyarcade/camera/default.pyarcade/camera/orthographic.pyarcade/camera/perspective.pyarcade/gl/backends/opengl/context.pyarcade/gl/backends/webgl/context.pyThe repaired behavior must satisfy all of the following:
Camera2D.use(), OrthographicProjector.use(), and
PerspectiveProjector.use() make themselves current, preserve their
viewport/scissor behavior, and write generated projection and view matrices
to window.ctx.projection_matrix and window.ctx.view_matrix. They must not
create or rely on legacy window.projection or window.view attributes.DefaultProjector exposes live projection and view properties backed by
its Arcade context. It implements batch camera begin() and end() hooks as
no-ops and get_group_scissor() returns None, so a batch does not inherit
an Arcade scissor rectangle as an extra pyglet group.OpenGLArcadeContext.bind_window_block() and
WebGLArcadeContext.bind_window_block() bind the Arcade-owned buffer through
buffer.bind_to_uniform_block(binding=0, offset=0, size=128). Do not call a
raw backend binding API or use the underlying buffer id./app/tools/check_camera_integration.py, or change
the camera data/projection helpers or Arcade buffer abstraction.After repairing the modules, run:
python3 /app/tools/check_camera_integration.py
This must exit successfully and create /app/repair_report.json. The output
contract is /app/output_contract.json; its output_schema_version is
arcade.camera-repair-report.v1. The report must show status: "pass", no
errors, all six compiled modules, context-routed state for all three camera
families, a complete default-projector protocol result, and identical recorded
uniform-buffer calls for both backends.
The final submission is the repaired source tree plus
/app/repair_report.json. Runtime work must remain offline and CPU-only.