Files
claw/docs/superpowers/reports/2026-04-18-g7-multi-endpoint-runtime-contract-report.md

1.4 KiB

G7 Multi-Endpoint Inventory Runtime Contract Report

Scope

This round upgrades G7 / multi_endpoint_inventory from safe-slice classification to a minimal runnable runtime contract.

Representative fixture:

  • tests/fixtures/generated_scene/g7_multi_endpoint_inventory

Delivered

  1. Added a minimal G7 runtime contract in the generator.
  2. Promoted g7_fail_closed from unconditional block to conditional pass when the inventory contract is complete.
  3. Added a dedicated browser compiler path for multi_endpoint_inventory.
  4. Replaced the old positive fail-closed test with:
    • runnable generation test
    • incomplete-contract negative test

Minimal Contract

G7 is treated as complete when all of the following are present:

  1. At least 3 inventory_request workflow steps
  2. At least 3 API endpoints
  3. One inventory_aggregate workflow step

Generated Runtime Shape

The generated browser script now includes:

  1. inventoryEndpoints()
  2. aggregateEntry()
  3. multi-endpoint request execution
  4. merged artifact payload with workflow_archetype = multi_endpoint_inventory

Validation

Passed:

  • cargo test --test scene_generator_test g7 -- --nocapture
  • cargo test --test scene_generator_test -- --nocapture

Outcome

G7 no longer stops at classification-only safe slice. It now supports a minimal runnable contract while still fail-closing incomplete manual SceneIr inputs.