Skip to content

[Tracker]: Infra fail-closed + artifact boundary hardening #7

Description

Summary

This tracker groups the main fail-open, model-integrity, and release-boundary hardening work needed in qwed-infra.

The central QWED question here is not only:

  • "Is the infrastructure logically correct?"

but also:

  • "Is the model complete enough to prove anything at all?"
  • "Can an unsafe artifact or deployment surface still ship even when verification appears green?"

QWED principle:
If infrastructure cannot be parsed, modeled, verified, or released safely, it must not pass.

Tracked issues

  • Terraform parser must fail closed on parse and normalization errors
  • IAM policy extraction must be implemented or blocked fail-closed
  • CI and security workflows must not continue after verification failure
  • ArtifactBoundaryGuard integration for release and deployment surface verification
  • CostGuard must not mutate unknown instance types through defaults
  • NetworkGuard must downgrade unsupported topology claims or add strict mode

Why this matters

qwed-infra currently has two major trust boundaries that need to be hardened together:

  1. Model integrity

    • If Terraform parsing fails or IAM extraction is incomplete, any later proof can become meaningless.
  2. Artifact / deployment integrity

    • Even if logical verification passes, unsafe files or release surfaces can still ship without an explicit boundary gate.

This means the infra system must prove both:

  • the infrastructure model is trustworthy
  • the release/deployment artifact is trustworthy

Root classes

1. Fail-open model construction

Affected areas:

  • Terraform parsing
  • resource normalization
  • IAM policy extraction

2. Fail-open CI / validation flow

Affected areas:

  • security workflows
  • publish and scan pipeline behavior
  • soft-fail verification steps

3. Release / artifact boundary gaps

Affected areas:

  • Python packaging
  • future Docker / deployable artifact surfaces
  • publish workflow gating

4. Proof-domain mutation

Affected areas:

  • CostGuard default assumptions
  • NetworkGuard unsupported topology claims presented too strongly

Priority order

P0

  • Terraform parser fail-closed
  • IAM policy extraction or fail-closed block

P1

  • CI fail-open removal
  • ArtifactBoundaryGuard integration

P2

  • CostGuard default removal
  • NetworkGuard strict mode or downgraded claims

Goal

Ensure qwed-infra never allows:

  • partial or broken parsing to pass as a valid proof model
  • unsupported IAM policy extraction to appear safe
  • CI failures to look like successful verification
  • release or deployment artifacts to ship without boundary verification
  • unknown infra states to silently degrade into defaults or soft claims

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions