Skip to content

[Reborn] Add vertical tests for post-3080 obligation handoffs #3148

@serrrfirat

Description

@serrrfirat

Parent / related

Summary

Add caller-level Reborn integration tests that prove the post-#3080 obligation path works through public host-runtime seams, not only crate-local helper tests.

Current state

#3080 added unit/contract coverage for CapabilityHost and BuiltinObligationHandler. Once production/service-graph composition and runtime handoff wiring are available, we need vertical tests through the public host-runtime path.

What to test

A thin end-to-end slice should cover:

  • trust decision supplied/evaluated by host composition;
  • authorization returns obligations;
  • DefaultHostRuntime invokes CapabilityHost with configured BuiltinObligationHandler;
  • runtime adapter / shared HTTP egress consumes staged network policy and/or secret material;
  • output redaction / output limit / audit behavior is applied before publication;
  • unsupported or missing obligations fail before backend side effects.

Acceptance criteria

  • Tests go through HostRuntime/DefaultHostRuntime or HostRuntimeServices, not private helper calls only.
  • At least one network-obligated capability consumes staged network policy before HTTP transport.
  • At least one secret-obligated capability consumes staged one-shot secret material and redacts it from runtime-visible output/errors.
  • Unsupported EnforceResourceCeiling or missing backing services fail closed before dispatch.
  • Tests assert no raw secret/output/backend details leak through public outcomes/audit/status.

Verification

Suggested targeted checks:

cargo test -p ironclaw_host_runtime
cargo test -p ironclaw_dispatcher
cargo test -p ironclaw_wasm
python3.11 scripts/check_no_panics.py --base origin/reborn-integration --head HEAD

Metadata

Metadata

Assignees

No one assigned

    Labels

    e2e-coverageEnd-to-end test coverage gapenhancementNew feature or requestrebornIronClaw Reborn architecture and landing workrisk: highSafety, secrets, auth, or critical infrastructure

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions