# Build Verification Report

Build: `1.0.0-rc1`  
Date: `2026-07-11`

## Verification completed in this build environment

- PHP syntax validation for all application, route, configuration, migration, seeder and test PHP files.
- JSON validation for Composer and npm manifests.
- JavaScript syntax validation.
- Dependency-free structural verification covering:
  - 160 PHP source/test files.
  - 123 internal application classes.
  - 56 model-to-migration fillable/schema checks.
  - 221 named web routes.
  - 174 static route references.
  - Controller methods referenced by routes.
  - Internal `App\\...` imports.
  - Blade layout, include and view references.
- npm lock file generated.
- Exact-decimal accounting design verified for the mandatory dual-role party scenario.
- Driver advance and full-settlement automated test added.
- Cross-company and cross-branch references hardened in core financial forms and centrally in journal posting.
- Race-safe document and journal numbering implemented with locked sequence records.
- Browser installer made safe before database-backed sessions exist.

Mandatory dual-role scenario expected result:

- Customer invoice: AED 10,000 + AED 500 VAT.
- Customer receipt: AED 4,000.
- Vendor bill from the same party: AED 3,000 + AED 150 VAT.
- Vendor payment: AED 1,000.
- Authorised contra: AED 2,000.
- Remaining customer receivable: AED 4,500.
- Remaining vendor payable: AED 150.
- Net exposure: AED 4,350.
- Output VAT: AED 500.
- Recoverable input VAT: AED 150.

## Runtime verification required on the target server

Composer was not available and outbound PHP package resolution was unavailable in this sandbox. A valid `composer.lock` therefore could not be generated here; the first successful Composer resolution on staging must generate and retain the lock file before production deployment. The sandbox PHP runtime also has no PDO database driver and lacks several required Laravel extensions. Consequently, the following must be executed on a compliant target or staging server:

```bash
composer install
./scripts/verify.sh
```

The full command performs Composer validation and dependency installation, Laravel boot, automated tests, accounting integrity checks and frontend compilation. Do not treat the release as production-approved until that command, database backup/restore testing, user acceptance testing and accountant review all pass.
