# GerberGuard-MBT 0.1.0 Acceptance

## Deliverable identity

- Module: `001-Elsa/gerberguard`
- License: Apache-2.0
- Target: Native
- GitHub: https://github.com/001-Elsa/GerberGuard-MBT
- GitLink: https://gitlink.org.cn/Hzhhhh/GerberGuard-MBT
- Mooncakes package: `001-Elsa/gerberguard@0.1.0`

## Reproducible verification

Run from the repository root:

```bash
moon update
moon fmt --check
moon check --target all --deny-warn
moon test --target all --deny-warn
moon build --release --target native
moon info
git diff --exit-code
moon package
```

The native test suite contains 107 tests covering scanner, parser, structural
checker, text/JSON reporters, and CLI parsing. Non-native targets contain no
test entries because the module deliberately supports only the native target.

## Runtime demonstrations

```bash
moon run cmd/main --target native -- inspect samples/pass/minimal.gbr
moon run cmd/main --target native -- check samples/warn/aperture_macro.gbr
moon run cmd/main --target native -- check samples/fail/undefined_aperture.gbr
moon run cmd/main --target native -- inspect samples/pass/minimal.gbr --json
```

Expected exit codes are 0 for PASS and PASS WITH WARNINGS, 1 for a failed
Gerber report, 2 for CLI misuse, and 3 for file IO or UTF-8 decoding errors.

## Scope boundary

GerberGuard is a deterministic supported-subset Gerber inspection and preflight
tool. It is not a renderer, PCB DRC engine, manufacturability checker, CAM
system, or complete Gerber conformance validator. Geometry for macros, regions,
and arcs is deliberately not verified and is reported with warnings.

## Compliance evidence

- Public API and generated interfaces: `pkg.generated.mbti`
- Architecture: `docs/ARCHITECTURE.md`
- Supported syntax: `docs/SUPPORTED_SYNTAX.md`
- Error model: `docs/ERROR_CODES.md`
- Source and fixture provenance: `docs/PROVENANCE.md`
- CI workflow: `.github/workflows/ci.yml`
