# ACDL sample consumer contract — static-assets module (dev)
#
# This is the reference example for a consumer contract. It declares:
#   id:           short operational acronym (becomes stack.name for state, tags, evidence)
#   name:         full human-readable stack name (becomes stack.title for display)
#   environment:  which environment to deploy to (dev = autonomous)
#   infrastructure: map of modules to deploy (keyed by module registry name)
#     <module>:
#       version:  module version pin (defaults to latest published)
#       inputs:   module-specific inputs
#
# Validated against schemas/contract.schema.json.
# Resolved by core/contract_resolver.py to a Target Stack instance.
#
# Interpolation (D-081): ${env.<field>} + ${contract.<field>} tokens are
# expanded by the resolver from the environment onboarding JSON. The
# bucket_name below demonstrates the naming pattern that includes region,
# aws account id, and environment:
#   acdl-${env.environment}-${contract.id}-${env.account_id}-${env.region}

id: assets
name: static-assets
environment: dev
infrastructure:
  static-assets:
    version: "1.0.0"
    inputs:
      bucket_name: acdl-${env.environment}-${contract.id}-${env.account_id}-${env.region}
      region: ${env.region}
