# Generation Hook: 007-observability-lgtm-compose

> For the complete documentation index, see [llms.txt](https://deploy-preview-472--lucky-concha-f3599f.netlify.app/llms.txt).

*   Hook script: `pipeline/generate-state-007-observability-lgtm-compose.sh`
*   Feature pack: `specs/007-observability-lgtm-compose`

This state follows the patch-set overlay model.

## Patch-Set Inputs

*   Parent state id: `006-messaging-nats-replacement`
*   Patch directory: `specs/007-observability-lgtm-compose/generation/patches/`
*   Canonical patch file: `0001-state-overlay.patch`

## Hook Responsibilities

1.  Generate parent state output.
2.  Apply all ordered patch files from this pack.
3.  Regenerate architecture docs from `system/architecture.model.json`.
4.  Ensure generated runtime contains `observability-lgtm-compose` compose assets.
5.  Keep compatibility with lineage contracts unless explicitly changed.
6.  Produce deterministic output suitable for branch publishing.

Runtime scripts:

*   `scripts/start-state-007-observability-lgtm-compose-generated.sh`
*   `scripts/status-state-007-observability-lgtm-compose-generated.sh`
*   `scripts/stop-state-007-observability-lgtm-compose-generated.sh`
*   `scripts/test-state-007-observability-lgtm-compose.sh`

## Capture / Refresh Patch

Use patch capture workflow after implementing deltas in this state:

```bash
bash pipeline/create-state-patchset.sh 007-observability-lgtm-compose 006-messaging-nats-replacement
```
