diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 2631652..fb88f1b 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,7 +1,7 @@ # Code of Conduct — maatify/php-persistence [![Maatify PHP Persistence](https://img.shields.io/badge/Maatify-PHP_Persistence-blue?style=for-the-badge)](https://github.com/Maatify-ltd/php-persistence) -[![Maatify Ecosystem](https://img.shields.io/badge/Maatify-Ecosystem-9C27B0?style=for-the-badge)](https://github.com/Maatify) +[![Maatify Ecosystem](https://img.shields.io/badge/Maatify-Ecosystem-9C27B0?style=for-the-badge)](https://github.com/Maatify-ltd) ## Our Standard diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d83b673..650b768 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -37,7 +37,7 @@ composer whitespace # git diff --check composer test:unit # no Docker needed composer test:regression # no Docker needed composer test:integration # needs Docker; starts a disposable MySQL/MariaDB service -composer examples:smoke # needs Docker; smoke-executes examples/ against a real engine +composer examples:smoke # needs Docker; runs standalone examples against a real engine composer test:consumer # needs Docker; two fresh external Composer verification runs actionlint .github/workflows/*.yml ``` diff --git a/PHP_PERSISTENCE_PACKAGE_REFERENCE.md b/PHP_PERSISTENCE_PACKAGE_REFERENCE.md index b48470f..a0b59d7 100644 --- a/PHP_PERSISTENCE_PACKAGE_REFERENCE.md +++ b/PHP_PERSISTENCE_PACKAGE_REFERENCE.md @@ -961,20 +961,7 @@ An attempt is `New`, `Running`, or `Terminal`. settlement() returns null before **Release, retirement, and discard.** release() makes the source available to another checkout only after confirmed idle status and resolution of pending settings and resources. retireForHost() permanently invalidates the source and transfers the same PDO after confirmed resource release. `ReturnedIdle` certifies the known idle state. `ReturnedForReconciliation` asks the Host to resolve the connection before further circulation. An unresolved resource prevents transfer. The Host can call discardForHost() to permanently invalidate the source and drop the library's references. This call initiates zero explicit SQL, state probes, or transaction-end commands. PDO or its driver may automatically send ROLLBACK or perform other I/O or close the session when the last reference is released. The caller does not receive an acknowledgement of transaction outcome, timing, or server closure. A retirement or discard request while a reservation is held is rejected. -```php -$checkout = $source->checkout(); -$checkout->beginRepeatableRead(); -$grant = $checkout->authorizePage('items', ['tenant' => 7], new PageRequest()); -$attempt = $checkout->newAttempt($grant); -try { - $page = $paginator->paginate($attempt); -} finally { - $settlement = $attempt->settlement(); -} -// The Host uses $settlement on either path and explicitly ends its transaction. -// The Host can reconcile after a classified handoff. Unresolved resources prevent handoff; -// the Host may explicitly discard that connection. -``` +See the [Host Snapshot B example](examples/pagination_host_snapshot_usage.php) for a read-only page attempt, qualified rollback on read failure, and explicit connection disposition. See [DEC-036](docs/decisions/DEC-036-pascalcase-enums-and-stable-settlement-json.md). @@ -1223,7 +1210,7 @@ A detailed, dated per-behavior mapping (the B-01 to B-16 rows, each with its leg - [README.md](README.md) — quick overview, installation/access status, requirements. - [docs/guides/USAGE_GUIDE.md](docs/guides/USAGE_GUIDE.md) — capability map, walkthroughs, and the boundaries of each capability before its examples. -- [examples/](examples/) — runnable, Public-API-only examples for all three capabilities. +- [examples/](examples/) — standalone and Host-dependent examples using only the Public API across all three capabilities. - [llms.txt](llms.txt) — AI consumer navigation map. - [docs/architecture/ARCHITECTURE.md](docs/architecture/ARCHITECTURE.md), [CONTRACT_MATRIX.md](docs/architecture/CONTRACT_MATRIX.md), [BEHAVIOR_CONTRACT.md](docs/architecture/BEHAVIOR_CONTRACT.md), [DATABASE_SUPPORT_AND_TEST_POLICY.md](docs/architecture/DATABASE_SUPPORT_AND_TEST_POLICY.md), [CI_AND_INTEGRATION.md](docs/architecture/CI_AND_INTEGRATION.md) — design, legacy-mapping, and test-matrix detail, dated and framed as historical/evidence records rather than a second current contract. - [docs/decisions/DECISIONS_INDEX.md](docs/decisions/DECISIONS_INDEX.md) — durable decisions this reference applies. diff --git a/README.md b/README.md index 58e50d5..7c251f7 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ $orderId = $runner->run(function () use ($pdo): int { }); ``` -See [docs/guides/USAGE_GUIDE.md](docs/guides/USAGE_GUIDE.md) for a capability map covering Transaction, Pagination, and Ordering, each with its own `Input → Public Call → Result → Boundary` walkthrough, and [examples/](examples/) for complete, runnable scripts. +See [docs/guides/USAGE_GUIDE.md](docs/guides/USAGE_GUIDE.md) for a capability map covering Transaction, Pagination, and Ordering, each with its own `Input → Public Call → Result → Boundary` walkthrough, and [examples/](examples/) for standalone scripts and the Host Snapshot B integration example. ## Public Runtime API @@ -147,13 +147,13 @@ Table and column identifiers passed to `ScopedOrderingConfig` and sort-key ident ## Examples -Runnable [examples](examples/) cover Transaction, Pagination and Ordering on a real MySQL/MariaDB connection. The [opt-in Snapshot example](examples/pagination_snapshot_usage.php) shows a single page with Host-owned connection settlement. See the [C1 contract](PHP_PERSISTENCE_PACKAGE_REFERENCE.md#531-optional-c1-snapshot-pagination) for eligibility and usage. +Runnable [examples](examples/) cover Transaction, Pagination and Ordering on a real MySQL/MariaDB connection. The [opt-in Snapshot example](examples/pagination_snapshot_usage.php) shows a single page with Host-owned connection settlement. See the [C1 contract](PHP_PERSISTENCE_PACKAGE_REFERENCE.md#531-optional-c1-snapshot-pagination) for eligibility and usage. The [Host Snapshot B example](examples/pagination_host_snapshot_usage.php) requires an application-owned PDO and page-plan catalog. ## Documentation - [PHP_PERSISTENCE_PACKAGE_REFERENCE.md](PHP_PERSISTENCE_PACKAGE_REFERENCE.md) — canonical Public Runtime API, behavior, and exception contract. - [docs/guides/USAGE_GUIDE.md](docs/guides/USAGE_GUIDE.md) — capability map and walkthroughs. -- [examples/](examples/) — runnable examples. +- [examples/](examples/) — standalone and Host-dependent examples. - [CHANGELOG.md](CHANGELOG.md) · [SECURITY.md](SECURITY.md) · [CONTRIBUTING.md](CONTRIBUTING.md) - [llms.txt](llms.txt) — AI consumer navigation map. - [docs/architecture/ARCHITECTURE.md](docs/architecture/ARCHITECTURE.md) — design and topology (dated design record). @@ -174,19 +174,20 @@ composer format:check # PER-CS 3.1, non-mutating composer test:unit # no Docker needed composer test:regression composer test:integration # needs Docker; starts a disposable MySQL/MariaDB service -composer examples:smoke # needs Docker; smoke-executes examples/ against a real engine +composer examples:smoke # needs Docker; runs standalone examples against a real engine ``` See [docs/architecture/QUALITY_TOOLING.md](docs/architecture/QUALITY_TOOLING.md), [docs/architecture/CI_AND_INTEGRATION.md](docs/architecture/CI_AND_INTEGRATION.md), and [CONTRIBUTING.md](CONTRIBUTING.md) for the full local-verification contract. ## License -This package is proprietary. For use under the terms on this branch, request -a free written license from [support@maatify.dev](mailto:support@maatify.dev). +This package is proprietary. Under the terms on this branch, obtain written +authorization from Maatify Ltd. before use, subject to the exceptions in +[LICENSE](LICENSE). Request a free written license from [support@maatify.dev](mailto:support@maatify.dev). Include your organization name, if applicable, and an email address for security advisories and critical update notices. Maatify Ltd. uses these details -to administer licenses and send those notices. See [LICENSE](LICENSE) for -the terms. Published versions carry their own license file. +to administer licenses and send those notices. Published versions carry their +own license file. ## 👤 Author diff --git a/SECURITY.md b/SECURITY.md index da131f8..31eb80e 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -24,7 +24,7 @@ See [Packagist](https://packagist.org/packages/maatify/php-persistence) for curr support@maatify.dev ``` -Maatify publishes this private vulnerability-reporting address in its [security reporting instructions](https://github.com/Maatify/persistence/blob/main/SECURITY.md). It is also the contact in this repository’s [LICENSE](LICENSE). Include the affected file(s) or capability (Transaction, Pagination, or Ordering), the commit SHA you observed it on, and, where possible, a minimal reproduction. +This private contact is listed in this package's [LICENSE](LICENSE). Include the affected file(s) or capability (Transaction, Pagination, or Ordering), the commit SHA you observed it on, and, where possible, a minimal reproduction. ## Scope diff --git a/docs/architecture/CI_AND_INTEGRATION.md b/docs/architecture/CI_AND_INTEGRATION.md index 8a11414..9d6b108 100644 --- a/docs/architecture/CI_AND_INTEGRATION.md +++ b/docs/architecture/CI_AND_INTEGRATION.md @@ -95,7 +95,7 @@ composer examples:smoke PP_DB_CELL=mariadb-11.8.9 composer examples:smoke ``` -CI requires both `mysql-8.4.13` and `mariadb-11.8.9` smoke jobs on PHP 8.4 and on PHP 8.6. This smoke matrix is separate from the capability Integration matrix below. +CI requires both `mysql-8.4.13` and `mariadb-11.8.9` smoke jobs on PHP 8.4 and on PHP 8.6. This smoke matrix is separate from the capability Integration matrix below. The [Host Snapshot B example](../../examples/pagination_host_snapshot_usage.php) requires an application-owned source and registered page plan. It runs under the PHP syntax and static-analysis gates, with Host B behavior exercised independently in the installed Consumer Verification Harness. On each of PHP 8.4 and 8.6, [Consumer verification](../guides/CONSUMER_VERIFICATION.md) runs two fresh lifecycles per engine on MySQL 8.4.13 and MariaDB 11.8.9, with separate production Composer roots. diff --git a/docs/guides/USAGE_GUIDE.md b/docs/guides/USAGE_GUIDE.md index 27a21d1..a02808b 100644 --- a/docs/guides/USAGE_GUIDE.md +++ b/docs/guides/USAGE_GUIDE.md @@ -22,16 +22,16 @@ This guide covers the Stable `1.0.0` target. Follow the [installation instructio | Pagination · Optional static composite sort | `PdoPaginator::paginateWithStaticSort()` | [Static composite sorting](#optional-static-composite-sorting) | [examples/pagination_static_sort_usage.php](../../examples/pagination_static_sort_usage.php) | | Pagination · Optional dynamic sort | `PdoPaginator::paginateWithDynamicSort()` | [Dynamic sorting](#optional-dynamic-sorting) | [examples/pagination_dynamic_sort_usage.php](../../examples/pagination_dynamic_sort_usage.php) | | Pagination · Optional delegated snapshot (C1) | `PdoSnapshotPaginator::forExclusiveRead()` then `paginate()` | [C1 snapshot pagination](#optional-c1-snapshot-pagination) | [examples/pagination_snapshot_usage.php](../../examples/pagination_snapshot_usage.php) | -| Pagination · Optional Host transaction snapshot (B) | `PdoHostSnapshotSource::attachExclusive()` then `PdoHostSnapshotPaginator::paginate()` with an authorized page attempt | [B pagination in a Host transaction](#optional-b-pagination-in-a-host-transaction) | [Inline Host B page-attempt example](../../PHP_PERSISTENCE_PACKAGE_REFERENCE.md#533-optional-b-pagination-in-a-host-owned-transaction) | +| Pagination · Optional Host transaction snapshot (B) | `PdoHostSnapshotSource::attachExclusive()` then `PdoHostSnapshotPaginator::paginate()` with an authorized page attempt | [B pagination in a Host transaction](#optional-b-pagination-in-a-host-transaction) | [Host integration example](../../examples/pagination_host_snapshot_usage.php) | | Pagination · Optional forward-only Keyset | `PdoKeysetPaginator::paginate()` | [Forward-only Keyset pagination](#optional-forward-only-keyset-pagination) | [examples/pagination_keyset_usage.php](../../examples/pagination_keyset_usage.php) | | Ordering | `ScopedOrderingManager::moveWithinScope()` (and the next-position reads) | [§3](#3-ordering) | [examples/ordering_basic_usage.php](../../examples/ordering_basic_usage.php) | | Ordering · Optional protected UNIQUE-safe lists (B1) | `ProtectedScopedOrderingManager::getNextUniquePositionForAppend()`, `moveUniqueWithinScope()`, or `deleteUniqueWithinScope()` | [Protected UNIQUE-safe Ordering B1](#protected-unique-safe-ordering-b1) | [examples/ordering_unique_usage.php](../../examples/ordering_unique_usage.php) | ## Run the examples from a 1.0.0 install -After [installing the exact version](../../README.md#installation), choose a row with a linked PHP file in the capability map. Create an `examples/` directory in your Composer project and copy that file and `_bootstrap.php` from `vendor/maatify/php-persistence/examples/`. Run the copied file with PHP from your project root so it loads your Composer autoloader. Use a disposable InnoDB database with the connection variables and privileges in the example setup below. The B1 example also requires `DELETE`. +After [installing the exact version](../../README.md#installation), choose a standalone example from the capability map. Create an `examples/` directory in your Composer project and copy that file and `_bootstrap.php` from `vendor/maatify/php-persistence/examples/`. Run the copied file with PHP from your project root so it loads your Composer autoloader. Use a disposable InnoDB database with the connection variables and privileges in the example setup below. The B1 example also requires `DELETE`. -The inline Host Snapshot B example runs inside a Host integration. Use the [Host B walkthrough](#optional-b-pagination-in-a-host-transaction) to prepare an eligible idle `pdo_mysql` connection for exclusive delegation, register an InnoDB page plan, and build the source and paginator. The Host completes the transaction and handles connection handoff or discard. +Load the [Host Snapshot B example](../../examples/pagination_host_snapshot_usage.php) within an application that has loaded its production Composer autoloader. Use the [Host B walkthrough](#optional-b-pagination-in-a-host-transaction) to attach an eligible idle `pdo_mysql` connection exclusively to a source with a registered InnoDB page plan. Call `Maatify\PhpPersistence\Examples\readHostSnapshotPage()` with that source, the registered plan ID, its bindings, and a page request. The example depends on those application objects and is outside standalone smoke execution. The Host accesses the delegated connection only through its source and checkout. The example discards the source when a normal commit leaves reuse unconfirmed. On failure it attempts to discard the source and rethrows the original failure. After discard or a thrown failure, drop all retained references to the original PDO and keep it out of circulation even if discard could not complete. A returned page does not authorize direct reuse of that PDO. ## Run the published RC.2 examples from a clean install @@ -84,7 +84,7 @@ Each command provisions two disposable services for that engine. Look for `CONSU ### Run examples from the repository checkout -With the checkout's Composer dependencies installed and Docker running, `composer examples:smoke` provisions a disposable database and runs the examples. To run an individual example manually, use the disposable database variables above and run the script from the repository root. +With the checkout's Composer dependencies installed and Docker running, `composer examples:smoke` provisions a disposable database and runs the standalone examples. To run a standalone example manually, use the disposable database variables above and run the script from the repository root. For Host Snapshot B, follow the [application integration instructions](#run-the-examples-from-a-100-install) above. --- @@ -285,7 +285,7 @@ Use B when the Host needs eligible page reads, including its earlier writes, wit 3. **Read** — Call `$checkout->authorizePage($queryId, $bindings, $request)`, pass the grant to `$checkout->newAttempt()`, and use `(new PdoHostSnapshotPaginator())->paginate($attempt)` to receive a `PageResultDTO`. 4. **Boundary** — Eligible page reads share the InnoDB read view within the confirmed transaction and can see the Host's own writes in that transaction. A later transaction has its own read view. Inspect `$attempt->settlement()` after return or exception. The Host directs `commit()` or `rollBack()` on the checkout and handles handoff or discard. The page settlement has a JSON projection of disposition and reason. If the Host calls `retireForHost()` on the source, the returned `HostSnapshotRetirement` transfers the original PDO as a PHP object. If B cannot confirm that startup consumed the isolation setting, the Host must reconcile the connection before reuse. -See the [B contract](../../PHP_PERSISTENCE_PACKAGE_REFERENCE.md#533-optional-b-pagination-in-a-host-owned-transaction) for a page-attempt example, confirmation and handoff rules. The [installed consumer verification](CONSUMER_VERIFICATION.md) exercises a registered write followed by a page in the same transaction. +See the [B contract](../../PHP_PERSISTENCE_PACKAGE_REFERENCE.md#533-optional-b-pagination-in-a-host-owned-transaction) for confirmation and handoff rules. The [Host integration example](../../examples/pagination_host_snapshot_usage.php) shows a read-only page transaction and a conservative discard policy. The [installed consumer verification](CONSUMER_VERIFICATION.md) exercises a registered write followed by a page in the same transaction. ### Optional forward-only Keyset pagination diff --git a/examples/pagination_host_snapshot_usage.php b/examples/pagination_host_snapshot_usage.php new file mode 100644 index 0000000..3672a74 --- /dev/null +++ b/examples/pagination_host_snapshot_usage.php @@ -0,0 +1,81 @@ + $bindings Exact named bindings for the plan. + * @return PageResultDTO|object> + * @throws Throwable The original page failure or the failure to start, authorize, or settle the checkout. + */ +function readHostSnapshotPage( + PdoHostSnapshotSource $source, + string $queryId, + array $bindings, + PageRequest $request, +): PageResultDTO { + try { + $checkout = $source->checkout(); + $checkout->beginRepeatableRead(HostSnapshotAccessModeEnum::ReadOnly); + $grant = $checkout->authorizePage($queryId, $bindings, $request); + $attempt = $checkout->newAttempt($grant); + + try { + $page = (new PdoHostSnapshotPaginator())->paginate($attempt); + } catch (Throwable $readFailure) { + // Roll back only while the settlement confirms control of the transaction. + if ($attempt->settlement()?->disposition === HostSnapshotPageDispositionEnum::ReturnedToHost) { + try { + $checkout->rollBack(); + } catch (Throwable) { + // Discard below and preserve the original read failure. + } + } + + throw $readFailure; + } + + // The successful page returns control to the Host. The Host ends the transaction. + $checkout->commit(); + if ($checkout->state() === HostSnapshotCheckoutStateEnum::Idle) { + $checkout->release(); + } else { + // A completed transaction alone does not clear the connection for reuse. + $source->discardForHost(); + } + + return $page; + } catch (Throwable $failure) { + // The Host keeps the connection out of circulation, even if discard fails. + try { + $source->discardForHost(); + } catch (Throwable) { + // Preserve the failure that put the connection out of circulation. + } + + throw $failure; + } +} diff --git a/llms.txt b/llms.txt index 9e869a4..cee3927 100644 --- a/llms.txt +++ b/llms.txt @@ -9,7 +9,7 @@ This map is for package consumers. Use the Package Reference for the public runt - [PHP_PERSISTENCE_PACKAGE_REFERENCE.md](PHP_PERSISTENCE_PACKAGE_REFERENCE.md): the canonical, complete Public Runtime API inventory, behavior contracts, exception semantics, concurrency/transaction limits, and database-support claim. - [README.md](README.md): package overview, installation/access state, requirements, and a Public Runtime API overview. - [docs/guides/USAGE_GUIDE.md](docs/guides/USAGE_GUIDE.md): a capability map and an `Input → Public Call → Result → Boundary` walkthrough for each capability. -- [examples/](examples/): maintained, runnable examples that use only the Public API and the production autoload. +- [examples/](examples/): maintained standalone and Host-dependent examples that use only the Public API and the production autoload. ## Release and support diff --git a/scripts/release-artifact.php b/scripts/release-artifact.php index 7c77b28..434e071 100644 --- a/scripts/release-artifact.php +++ b/scripts/release-artifact.php @@ -22,6 +22,7 @@ 'examples/ordering_unique_usage.php', 'examples/pagination_basic_usage.php', 'examples/pagination_dynamic_sort_usage.php', + 'examples/pagination_host_snapshot_usage.php', 'examples/pagination_keyset_usage.php', 'examples/pagination_snapshot_usage.php', 'examples/pagination_static_sort_usage.php', diff --git a/tests/evidence/RELEASE_PRESENTATION_CONFORMANCE.md b/tests/evidence/RELEASE_PRESENTATION_CONFORMANCE.md new file mode 100644 index 0000000..bf62f89 --- /dev/null +++ b/tests/evidence/RELEASE_PRESENTATION_CONFORMANCE.md @@ -0,0 +1,64 @@ +# Release presentation conformance evidence + +This review describes the presentation controls and actual evidence needed for an +external reviewer to verify the current Stable preparation. The implementation +reviewed is [`5565625ee710555044b830c6e7d6a93480ddcfb0`](https://github.com/Maatify-ltd/php-persistence/commit/5565625ee710555044b830c6e7d6a93480ddcfb0) +on [#108](https://github.com/Maatify-ltd/php-persistence/pull/108), with +[Library Presentation 7.0.0](../../docs/php-engineering-standards/standards/packages/LIBRARY_PRESENTATION_STANDARD.md) +and [Documentation Lifecycle 3.1.1](../../docs/php-engineering-standards/standards/governance/DOCUMENTATION_LIFECYCLE_STANDARD_AR.md) +pinned at `c1dbb2da062a35c45638abf2bcb2ae210140eb5d`. [#65](https://github.com/Maatify-ltd/php-persistence/issues/65) +tracks the findings and their disposition. + +**Reviewed baseline verdict: REQUEST CHANGES.** The release-facing facts and +the four findings below are distinct from the exact-main-SHA gates in #88. + +## Library Presentation coverage + +| Sections | Result | Evidence | +| --- | --- | --- | +| §§1–6 | PASS for scope and required files | Standalone reusable Composer artifact, licensed for authorized use. All applicable release-facing files are present. An independent local Git and Composer RAV run for Stable `1.0.0` on `5565625` passed with 171 files in each archive. | +| §§7–9 | PASS | Exact-head GitHub-rendered README HTML includes the centered header, light and dark logo sources, three badge rows, repository-local PHP and license values, and links for the artifact scope. The logo and registry download assets returned successfully. The dated RC.2 status and separate Stable target follow §§8.1.1–8.1.2. | +| §§10.1, 11–12 | PASS for presentation | The public overview links to the canonical Package Reference. The README separates three public capabilities, the manifest requirements and tested database versions; it states ownership and failure boundaries. Heading hierarchy and Author formatting were checked in the rendered README. | +| §10.2 | FAIL, F108-22 | The capability map and prerequisites are present. The nine standalone PHP examples are covered by smoke jobs. Host Snapshot B is presented as an inline, Host-dependent example and falls outside the maintained syntax and static-analysis checks. | +| §§10.3–10.4 | PASS | Root `llms.txt` has one heading, consumer/contributor boundaries, the complete canonical Public Runtime API reference, usage map, and six links resolving in the archive. | +| §§13, 22 | FAIL, F108-20 | The Code of Conduct Ecosystem badge uses the old organization. SECURITY points to another package's security instructions as authority for this library's reporting contact even though its own LICENSE supplies it. | +| §14 | PASS for current artifact presentation; first-Stable evidence pending #88 | README and SECURITY distinguish the earlier RC.2 snapshot and the unpublished Stable target. RC.2 can be resolved and installed from dist. DEC-031 covers actual Host validation on the published RC for the first Stable target. The RC.1 Harness evidence remains applicable to the recorded exception path. | +| §15 | PASS | The allocated `1.0.0` section is undated and has no release link. The RC.1 and RC.2 dates and bottom links match release history. This file contains no represented unallocated changes requiring an Unreleased section. | +| §§16–18 | PASS | CONTRIBUTING describes the actual shared dependency-audit gate and local verification. README uses the required Author formatting and final Maatify footer. | +| §19 | PASS for observed metadata | Composer and GitHub description, topics, package identity, homepage and license agree with the documented package. GitHub Releases has the two managed prereleases. No package or deployment panel was observed in the public repo view. Administrative visibility toggles were not inspected. | +| §20 | FAIL, F108-23 | The umbrella carries changes allocated to exact Stable `1.0.0`. Its title and body omit the required preparation/publication state and release-control statement, and the body omits explicit scope. | +| §20.1, §23 | Later release gates pending #88 | Exact main candidate, Full CI, Consumer Harness, RAV, Strict Lead Acceptance, Owner release authorization, then immutable tag and release, external publication, PAV and live documentation synchronization remain ordered release controls. | +| §21 | Verified within the stated review limits | Reviewed GitHub-rendered HTML, logo and badge endpoints, canonical slug and local targets. The independent check resolved 144 tracked relative links and 61 local Markdown anchors in the sampled release-facing docs; a viewport screenshot was not captured. | +| §25 | FAIL, F108-21 | LICENSE and its relative badge are correct. The short README license section does not explicitly state the requirement to obtain written authorization before use. | + +## Documentation Lifecycle coverage + +| Sections | Result | Evidence | +| --- | --- | --- | +| §§1–3 | PASS for ownership and document roles | The Package Reference owns the current public runtime contract. The architecture and decision records preserve historical context. README, guides, CHANGELOG, SECURITY and LICENSE each direct readers to the appropriate owner. | +| §§4–5.1 | PASS for published and artifact identity | The immutable artifact records exact target `1.0.0`; the RC.2 publication and support statements are dated. The exact install command is conditional on actual publication. The live state is checked in the approved distribution channel. | +| §6 | Review record | This evidence supports independent reproduction on the draft. #65 and PR review/checks carry the current verdict and subsequent corrections. | +| §7 | PASS for reviewed surfaces | Maatify identity uses `maatify.dev`. The separate outdated GitHub organization link is handled under Library Presentation §13 in F108-20. | + +## Findings and acceptance evidence + +| Finding | Evidence on the reviewed state | Required correction | +| --- | --- | --- | +| **F108-20 — Governance identity and reporting authority** | [CODE_OF_CONDUCT.md:4](https://github.com/Maatify-ltd/php-persistence/blob/5565625ee710555044b830c6e7d6a93480ddcfb0/CODE_OF_CONDUCT.md#L4) points the Ecosystem badge to `github.com/Maatify`; §13 gives the exact `Maatify-ltd` value. [SECURITY.md:19–31](https://github.com/Maatify-ltd/php-persistence/blob/5565625ee710555044b830c6e7d6a93480ddcfb0/SECURITY.md#L19-L31) uses the legacy repository's security instructions in the reporting channel paragraph. | Use the canonical Ecosystem link. Cite this package's own LICENSE for its existing private channel and retain the distinct-package scope. | +| **F108-21 — License summary misses prior written authorization** | [README.md:182–189](https://github.com/Maatify-ltd/php-persistence/blob/5565625ee710555044b830c6e7d6a93480ddcfb0/README.md#L182-L189) describes requesting a free written license. [LICENSE](../../LICENSE) and §25 require the summary to say that written authorization must be obtained before use. | Make prior written authorization explicit in the README while preserving the approved license terms, no-charge process and contact. | +| **F108-22 — Host B example bypasses syntax/static coverage** | [Usage Guide:25–34](https://github.com/Maatify-ltd/php-persistence/blob/5565625ee710555044b830c6e7d6a93480ddcfb0/docs/guides/USAGE_GUIDE.md#L25-L34) designates the [fenced PHP example](https://github.com/Maatify-ltd/php-persistence/blob/5565625ee710555044b830c6e7d6a93480ddcfb0/PHP_PERSISTENCE_PACKAGE_REFERENCE.md#L964-L977) as the Host B example. Composer syntax scans PHP files and [PHPStan](../../phpstan.neon) does not analyze this Markdown block. The installed Harness proves Host B behavior through its own fixture. | Validate the delivered Host-dependent example with the maintained syntax and static gates, retaining its explicit Host prerequisites. A validated PHP example file is one way to keep its verification attached to the delivered code. | +| **F108-23 — Stable preparation metadata in #108** | At review time the [umbrella title and body, as recorded during review](https://github.com/Maatify-ltd/php-persistence/issues/65#issuecomment-7235660523) did not state the exact target's actual unpublished status or the Owner release-control boundary. This branch already allocates real changes under [CHANGELOG's `1.0.0` target](../../CHANGELOG.md#L7). | Reconcile the umbrella title and description with §20. Name the unpublished target, current preparatory scope and separate Owner authorization. Reference DEC-031, the actual RC.1 Harness, and zero validated real Hosts under the approved exception path. | + +## Publication and evidence boundaries + +- Packagist and GitHub show RC.1 and RC.2. A clean external Composer project + installed `maatify/php-persistence:1.0.0-rc.2` in observed `dist` mode at + `71dc61548e48fd053376db69149a00bc87069b70`. + [Packagist exact versions](https://repo.packagist.org/p2/maatify/php-persistence.json) · + [GitHub RC.2 release](https://github.com/Maatify-ltd/php-persistence/releases/tag/v1.0.0-rc.2). +- [DEC-031](../../docs/decisions/DEC-031-first-stable-real-host-exception.md) records the + exact `1.0.0` Host-only exception and [published RC.1 Harness evidence](https://github.com/Maatify-ltd/php-persistence/issues/29#issuecomment-6839437553). + The approved path calls for the final candidate verification on `main`. +- Stable `1.0.0` is a prepared target. Its local archive pass and the independent + published RC.2 install are evidence for those respective checks. Stable PAV + follows external publication. [#88](https://github.com/Maatify-ltd/php-persistence/issues/88) remains HOLD.