version: 1
layout: workspace
lastReviewedAt: 2026-04-20
lastReviewedCommit: example-workspace-config
catalog:
  repos:
    - id: sample-sdk
      path: sample-sdk
      canonicalRepo: Biaoo/sample-sdk
      entryDoc: AGENTS.md
      branchPolicyDoc: docs/branch-policy.md
      workflowDocs:
        - docs/workflows/local-dev.md
      integrationDocs:
        - docs/workflows/workspace-integration.md
      workspaceIntegrationRequired: true
ownership:
  domains:
    - id: sample-sdk-api
      paths:
        include:
          - sample-sdk/src/**
      ownerRepo: sample-sdk
coverage:
  include:
    - docs/**
    - .github/**
  exclude:
    - vendor/**
freshness:
  warn_after_commits: 50
  warn_after_days: 90
  critical_after_days: 180
routing:
  intents:
    root-governance:
      paths:
        - docs/**
        - .github/**
docInventory:
  include:
    - AGENTS.md
    - docs/**
    - .docpact/**/*.yaml
  exclude:
    - docs/archive/**
workspace:
  name: sample-workspace
  profiles:
    default:
      coverage:
        include:
          - src/**
        exclude:
          - dist/**
      docInventory:
        include:
          - README.md
          - docs/**
      freshness:
        warn_after_commits: 30
        warn_after_days: 45
        critical_after_days: 90
      routing:
        intents:
          repo-bootstrap:
            paths:
              - src/**
              - README.md
      rules:
        - id: repo-bootstrap
          scope: repo
          repo: workspace-default
          triggers:
            - path: src/**
              kind: code
          requiredDocs:
            - path: README.md
              mode: review_or_update
            - path: .docpact/config.yaml
              mode: review_or_update
          reason: Default repo changes must refresh local docs and governance metadata.
rules:
  - id: workspace-branch-policy
    scope: workspace
    repo: sample-workspace
    triggers:
      - path: docs/branch-policy.md
        kind: doc-contract
      - path: .github/workflows/**
        kind: automation
    requiredDocs:
      - path: AGENTS.md
        mode: review_or_update
      - path: .docpact/config.yaml
        mode: review_or_update
    reason: Root workflow and branch policy changes alter root guidance and validation expectations.
