[Grid agent] Build deterministic fake-grid, fake-LLM, and adversarial test infrastructure #133
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Provide deterministic, credential-free infrastructure that exercises the complete agent orchestration against scripted grid and LLM peers, including adversarial security and bounded-load scenarios.
Harnesses
Required scenarios
Acceptance criteria
ubuntu-latestonly and respects its runtime budget; longer soak scenarios are explicit non-routine jobs if needed.Dependencies
Start the base fakes after architecture and grow them alongside every feature. Completion depends on all functional issues except packaging and final live validation.
Implemented in
fe8d011. Added metacrate-grid-agent::testing with a unified deterministic FakeGrid implementing the production session, perception, embodiment, build, landmark, script-inventory, interaction, and authorized policy backend traits. It scripts lifecycle and grid protocol inputs (chat/IM/offers/avatar/object/movement/teleport/create/capability/delay/duplicate/malformed/partial failure), emits content-free SHA-256 protocol evidence, enforces generation/resource accounting, and reports redacted seed/script/correlation reproduction context. Added an injectable clock, seeded behavior/roaming randomness, adversarial corpus, bounded-load/leak metrics, and a loopback OpenAI-compatible peer scripting text/tools/malformed/oversize/rate-limit/slow/disconnect/multimodal paths while retaining only redacted request metadata. Replaced the policy counter mock with the unified protocol peer. Namespace constraints remain enforced: all infrastructure is metacrate-grid-agent; no new libremetaverse crate or compatibility-facade reexport. Verification: new harness 4/4, policy integration 3/3, dependency policy 7/7, full related metacrate-grid-agent suite 135 unit tests plus every integration/doc test, all-feature all-target clippy -D warnings, rustdoc, formatting/diff checks. The existing consolidated Gitea gate automatically discovers the integration test and all workflows remain ubuntu-latest only.