# Internal Shape Payload Website Notes

The internal site in `internal_site/` is a vanilla PHP application for browsing and editing AccuroTech Shape Payload JSON files.

## Separation rules

- Shape Pattern Templates live under `shape_payloads/pattern_templates/` and are browsed separately.
- Company Profile Shape Payloads live under `shape_payloads/instances/company_profiles/` and hold editable identity/section content.
- GitHub Shape Instantiations live under `shape_payloads/instances/github_shape_instantiations/` and are repository bindings, not the profile payload itself.
- Website page payloads live under `shape_payloads/instances/website/` and provide route/edit binding metadata.

## Edit and audit behavior

The site writes section-body and allowed profile-metadata edits back to the source company profile JSON file. Protected fields are displayed but not included in the casual edit form. Each save appends a JSONL audit event to `shape_payloads/instances/website/edit_audit_log.jsonl`.

## Local run command

```bash
php -S 127.0.0.1:8000 -t internal_site
```

## Validation command

```bash
php tools/validate_shape_payloads.php
```
