Repository navigation
Description
Objective and current scope
Prove that documentation generation and site assembly can run outside the DevTools production runtime without changing the consumer. The first draft PR is an isolated comparison harness in DevTools; clock is read-only source. Compare API HTML, RST guides and Wiki Markdown, and verify assembly with external reports. Do not publish Pages/Wiki, change consumer workflows/lock files or release anything. The standalone engine, CLI/versioned PHAR, workflow, assets, skill and guides are tracked in documentation#1, after independent review of this proof. The proof and the package are independent of a Testing release. #367 remains open for DevTools compatibility and incremental adoption after this proof, not as a second implementation of the package. Scope decision.
Fixed references and reproducibility
- Use
clock@a739cbff8bc8eff6e61d612c2f9d4c40263819a8on both sides. It uses DevToolsdev-mainand has no lock at that SHA. Freeze the resolved dependency graph in a disposable workspace, with no writes to the consumer checkout. The new lock does not reconstruct historical CI. If historical bytes cannot be verified, label the evidence comparison against legacy frozen for this proof, not a reproduction of historical CI. - Legacy generation references:
docsruntime/template resolution at DevTools105e9f5f533f8ebdc902071d1627cbf880d33a0a; Wiki generation stage, whose workflow and runtime are distinct (runtimed5a3b7eec9896f9ea50974ff09b23c32887acbc0). Do not rundev-tools reports: it invokes tests and metrics instead of only consuming supplied reports. Do not reuse the hosted Composer setup, which supplies a GitHub token; use local generation without credentials. - The proof manifest separates what was resolved (lock/versions, PHP/Composer/extensions, fixed source/revisions) from what actually ran. For each side and separately for HTML and Wiki record the effective executable/renderer path, actual bytes SHA-256 and source/package revision, plus the effective template/config revision or explicit not applicable. Resolve paths before recording; if a renderer or template resolves outside the frozen environment, reject comparability. Record the exact source, harness base/head, frozen inputs and commands so QA can rerun in a clean clone.
Verifiable acceptance
- Generate baseline and candidate in clean output directories, from the same source SHA and inputs. Compare API pages/anchors, RST guide rendering, Wiki Home/API pages, internal links and hashes of Dash/logo and other scoped assets. Keep the external template/brand ownership. Require non-empty
Home.mdforclock; in a no-API control require explicit skip, with guide-only HTML supported. List any volatile differences excluded from comparison and why. Do not overwrite manual Wiki content or modify live publishing behavior. - Assemble the site separately with the same inert static coverage/metrics fixtures. Verify producer, source repo/SHA and SHA-256 (or per-file manifest) against separately supplied expected identity before copying. Reject unsafe paths, symlinks and executable report payloads; verify landing-page links and final bytes at report routes. Missing, corrupted or wrong-source reports fail when requested; unrequested reports may be omitted.
- Record attempted invocations and fail if tests, metrics or publishers are invoked. Prove guard failures independently from output comparison. Run in a clean, unprivileged workspace without GitHub/publishing credentials. Report comparison and negative controls on exact base/head; QA and review are independent.
Dependencies and first step
After the operator clears claim/code/push and ownership is confirmed, Software Engineer uses t_709d8da2 to prepare the isolated draft; QA t_e8d8d186 and review t_2aba1848 verify the candidate on the exact head. Only then proceed to the package in documentation#1. #238 governs immutable refs for later adoption and #384 owns DevTools composition; never activate an unpublished version. Later compatibility/pilot cohorts must refresh the consumer inventory, preserve custom/manual content and document rollback before any migration. Actual publishers, previews, release and activation require separate gates.
Historical RFC and evidence
The 2026-10-14 inventory examined 40 repositories and identified 14 immediate migration targets, including DevTools: 12 shared Wiki callers and two custom publishers; ten native Pages wrappers, two legacy wrappers, the DevTools producer and one custom HTML/report consumer. These are historical, not current rollout counts. The original RFC considered a packaged Docker runtime and publication as part of a larger proposal; the current proof excludes those, and the standalone package uses a versioned PHAR. Moving YAML alone would retain the DevTools dependency, splitting HTML and Wiki would duplicate discovery, and moving the engine into phpdoc-bootstrap-template would mix tooling with visual ownership. Prior body revisions and the deep dives retain the original evidence: runtime and ownership, library/CLI/skill/release, publisher trust, consumer inventory, validation and rollback. Effective consumer settings for Pages/Wiki and secret grants were not verified by the old inventory.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
coisa commentedon Oct 14, 2026
Deep dive: current code, dependencies and ownership
Evidence
The source baseline is DevTools main
c637e7f9d8ae6059b8655996e56f6d17f874792c.The HTML template defaults to
vendor/fast-forward/phpdoc-bootstrap-template. Native reports require an installed template >=2.1.0, while the Composer manifest allows ^2.0. The new released runtime must reconcile this discrepancy instead of inheriting an implicit workflow-only minimum.The current Wiki workflow bridges Markdown template assets into an isolated runtime. Extracting the renderer and its resources together should eliminate the DevTools-relative path workaround.
Minimal PHP design
Separate only responsibilities that have a concrete reason to change:
Keep CLI orchestration readable. Do not create an interface for every class or introduce a new plugin/service-container layer merely to perform extraction. Unit-test transformations; integration-test renderers and publisher boundaries.
RST guides are part of the current pipeline. phpDocumentor's hand-written documentation guide describes combined guide/API generation. Markdown support must be demonstrated with the selected renderer version and fixtures; this RFC is not a Sphinx migration.
Dependency direction
dev-tools -> documentation -> renderer/templateis acceptable.documentation -> dev-toolsis not.The main branch of github-actions is presently a scaffold. Its pending PR 2, at
28da75de2b349d4c01809994d1661062f7daf0dd, has a production requirement onfast-forward/dev-tools ^1.24. Depending on that runtime while DevTools delegates to Documentation would create:documentation -> github-actions -> dev-tools -> documentationUse small in-package adapters initially. Consider generic helper reuse only once that package has an independent, released dependency direction.
Visual ownership stays with phpdoc-bootstrap-template and the .github brand source. Do not copy the design system into a second documentation repository.
coisa commentedon Oct 14, 2026
Deep dive: library, CLI, skill and release surfaces
Follow the complete Changelog model
The inspected Changelog package is an independent library with a CLI, Docker runtime, Docker-backed operation actions, reusable workflows and a portable skill. Its
setup-dockerhelper is composite; that does not mean every operation action is composite.Documentation should provide the same product surfaces with a single implementation. Names below are proposed contracts, not existing commands:
ff-documentation build htmlff-documentation build wikiff-documentation validateff-documentation publish wikiAvoid a monolithic command that generates and publishes by default. Local generation must not need GitHub credentials. Keep native Pages deployment in GitHub's supported actions rather than implementing a second Pages transport solely for CLI symmetry.
CLI contract
Support explicit project/source, guides, target, cache, template and repository/source-SHA options; retain useful current defaults through compatibility mapping. Reject missing explicitly requested inputs. Define API-only, guides-only and empty-project outcomes, including a machine-readable skipped reason for valid empty projects. Guides-only HTML must remain supported; Wiki without an API skips rather than acquiring a new guide-rendering feature.
Use non-interactive execution, stderr diagnostics and optional JSON results. Specify stable exit semantics before consumers rely on them. Report paths and source identity, but never credentials or complete environment dumps. Resolve package assets from the installed runtime, not consumer
vendorassumptions.Changelog currently requires PHP ^8.5; DevTools and its consumers include PHP 8.3. Prefer an initial PHP 8.3-compatible local CLI if the extracted dependency graph supports it, with a separately pinned container runtime. Confirm this with Composer/platform fixtures. A newer tool runtime must not silently change a consumer's application minimum.
Portable CLI skill
Proposed canonical package:
.github/skills/documentation/SKILL.mdplus license and only necessary references. Mirror Changelog's single real source and deliberate host adapters where useful; do not invent a second procedure per host.The skill must:
listand relevant--helpbefore selecting commands;docs/_static/mascot-banner.png, template/brand ownership and manual Wiki content;Installing a skill installs instructions, not PHP, Composer, Docker or the CLI. No automatic global installation or host-link modification. Packaging tests must retain canonical skill resources and verify example commands against the released CLI. Format validation and copy/discovery checks do not prove native activation in Codex/Claude/Copilot; report that separately.
Coherent release
Use a tested Composer release and a Docker image carrying the same implementation and locked renderer/template versions. Pin deployments to a verified image digest (GitHub registry documentation).
Workflow, action, image and skill compatibility must be documented for the same release. Prefer release-relative in-repository adapters where supported; verify every externally fetched helper ref. Do not use mutable
mainor an unmerged branch as the product's release contract.Test Composer installation, Git archive contents, container invocation and packaged skill discovery in disposable directories. Add optional PHAR distribution only if a demonstrated consumer need justifies it; the first release need not solve the separate DevTools shim RFC.
coisa commentedon Oct 14, 2026
Deep dive: publication trust, ownership and lifecycle
Build and publish are different operations
The recent direct Wiki migration established no-submodule publishing, source freshness and preservation of manual content. Extraction must retain that behavior.
Build jobs may read consumer code and execute its dependency/autoload behavior, so they must not hold Wiki or Pages write credentials. Install consumer dependencies with plugins and scripts disabled where the build permits it; Composer documents this boundary in its untrusted-package guidance. Approved tool dependencies are installed independently. This reduces exposure but does not make arbitrary project execution trusted.
Writers consume only validated artifacts and must not run PHP, scripts, templates or hooks from the consumer checkout. Artifact metadata should identify the repository, source commit, triggering run and expected output; validate these against the trusted GitHub run, not just user-editable artifact fields. Store metadata inside temporary artifacts, not additional committed consumer manifests.
Wiki invariants
Use the present direct publisher and container's custom writer as the behavior baseline. Copying obsolete pointer/preview helper actions would reintroduce responsibilities the recent migration removed.
Pages and reports
One deployment owns each combined site. If documentation, coverage and metrics are produced separately, assemble their validated artifacts before one Pages upload/deploy. Define missing optional-report behavior instead of uploading a second site that erases existing sections.
Keep read-only build and Pages writer jobs separate. Callers must grant the required Pages/environment permissions explicitly; reusable workflows cannot elevate permissions granted by callers.
Preserve published URLs, API anchors, guide navigation, Dash/logo files and asset hash checks. Native publication checks must inspect the deployed site, not merely the uploaded artifact.
Framework, enum and DevTools currently have legacy gh-pages preview/cleanup behavior. Decide an explicit compatibility profile: artifact-only for untrusted/fork PRs; optionally publish reviewed same-repository previews through a trusted writer. Never execute a PR checkout with secrets via a privileged trigger. Retaining or deprecating
/previews/pr-N/routes is a separate visible decision.Version reachability
GitHub recommends commit SHA refs for reusable workflow stability (official reuse guide). The recently merged Wiki rollout also demonstrated that a pre-merge branch SHA can cease to be a valid workflow entrypoint after squash/deletion even when a file API still retrieves its blob.
Publish the final protected-main/release revision first. Verify workflow resolution in a real consumer, then pin migration PRs. Check again after merge. Changing DevTools main cannot update consumers already pinned to the old direct Wiki SHA.
Operational checks not yet performed by this RFC
Implementation must inspect each consumer's effective Pages environment, Wiki availability and secret grants. The source inventory does not prove these settings. Tokens remain scoped to publication; no new organization-wide credential or broad
secrets: inheritis required by default.coisa commentedon Oct 14, 2026
Deep dive: exact consumer inventory and migration obligations
Snapshot date: 2026-10-14. All 40 organization repositories were examined. Fourteen already consume both DevTools Wiki and documentation/report generation; twenty repositories are empty.
Immediate migration targets
Each link pins the audited committed workflow directory. Recheck main and workflow configuration when opening implementation PRs.
70518e88a47f542cf09d92b92d2d57a0a132a4969a76b880969d07a1745f944db277965050a9e6a147b0a3316cab2d8ec2179c97d7a4d819fb41202d02115eddb561af1964ef3c7a4091ddec47e55d9392102251a76a72d50f65c697fb66aa3eaf62f58085199244197ae18a02672a9bc02ca66462e877132f4fe229981906ecfd548b341ac1b97f5c2dda1aab978d0bf68e7f89084afe5afbaa631b71e74ad105ae9bbe9d7a6f6a16a30b90feec27b9e161a0e8e8c2b2607a60395469594c9a0d164e0dab2f0964df162266c50f1ea8e374be578765fe1ffb8a840fc637e7f9d8ae6059b8655996e56f6d17f874792cd6a6fa4a64d9a4316c03596ef77b265b7d29f46b68ed6305e1aac233e1781b4887abf6b44c55e127Current refs: eleven external shared Wiki callers pin
dev-tools/.github/workflows/wiki-direct.yml@c637e7f9d8ae6059b8655996e56f6d17f874792c; DevTools calls it locally. Config checks out Wiki helpers atf09a1d97c595ad2da58b0154fab1e697353d3234; container atd5a3b7eec9896f9ea50974ff09b23c32887acbc0. Both custom paths still run DevTools commands.Ten native report wrappers use
reports-native.yml@main. Framework/enum usereports.yml@main. Config's custom reports still use DevTools helpers at main and verify root, coverage and metrics routes.What every migration PR must inspect
Update the committed Wiki/reports caller and any nested report invocation in tests workflows. Also inspect DevTools-synchronized workflow resources: a later sync must not restore old defaults. Keep test/quality execution with its existing owner.
Preserve URLs, branch/event filters, PHP/platform settings, permissions, environment configuration, Wiki namespace/manual content, preview policy and deployed Dash/logo checks. Preserve existing README asset references. Do not add consumer asset READMEs or generation manifests.
For each consumer, record the old caller refs, new released refs, build comparison and post-merge publishing result. Immutable old pins require explicit changes; a compatibility edit to DevTools main is not sufficient.
Existing repositories outside immediate migration
The twenty empty repositories need future defaults, not migration PRs now:
memoize,cache,logger,console,template-renderer,feature-toggle,promises,http-middleware,scheduler,http-content-negotiation,http-healthcheck,dockerfiles,http-cache,http-apcu,http-phpinfo,application,http-error-handler,runtime,php-fast-forward,http-server.These counts describe committed source at the snapshot, not effective remote deployment settings.
coisa commentedon Oct 14, 2026
Deep dive: phased action plan, validation and rollback
Phase A — settle scope and compatibility
Accept the documentation repository/package boundary, CLI name, PHP compatibility, preview policy and DevTools deprecation window. Coordinate Wiki/docs ownership with issue 240, .github issue 2/PR 3 and the pending github-actions runtime. Do not move all organization automation into this RFC.
Deliverable: a small command/input/output contract and an ownership map. No speculative generic platform.
Phase B — independent runtime
Extract capability/configuration and HTML/Wiki generation into PHP, add thin CLI commands, package renderer resources and use Composer for dependencies. Establish a locked Docker runtime. Do not depend on DevTools or the pending github-actions package while it requires DevTools.
Keep reusable behavior shared between CLI and automation. Bash is limited to runner setup/transport where needed; avoid Python/Node helper chains. Any repository maintenance validator needed for skill adapters should also be PHP.
Deliverable: local CLI + Composer/archive/container fixtures, with generation and validation usable without GitHub credentials.
Phase C — skill and GitHub adapters
Ship one licensed portable CLI skill against the real command surface; validate examples, resource packaging, discovery and host-adapter representation. Native host activation remains a separate check.
Implement read-only build actions and reusable Wiki/docs workflows. Isolate publishers and temporary artifact metadata; preserve current freshness and ownership protections. Update future synchronized defaults and documented compatibility aliases.
Deliverable: version-coherent CLI, skill, actions and workflows with explicit credentials/permissions.
Phase D — comparison and pilots
First generate in disposable outputs without publishing, comparing the old and new implementations from the same consumer commit and dependency state. Compare meaningful routes/content/assets rather than unstable timestamps.
Suggested pilots:
Do not enable two writers for the same Wiki/site during pilots.
Deliverable: comparison evidence and a released revision proven reachable by real workflow callers.
Phase E — release and migration cohorts
Publish the package/runtime/actions/workflows/skill release before updating consumers to its final commit/digest. Validate startup, generation and publication after merge, not only inside PRs.
Then open coordinated migration PRs for all fourteen targets. Migrate the native shared group after pilots; handle config and legacy previews separately. Change DevTools compatibility and packaged synchronization defaults in the same release sequence so subsequent syncs cannot regress consumers.
Deliverable per consumer: old/new refs, preserved behavior, post-merge Wiki/Pages result and rollback instructions.
Phase F — retire compatibility
Keep existing useful aliases (
docs,reports:docs,reports:phpdoc,phpDocumentor, Wiki/report entrypoints where supported) delegating during the agreed window. Remove legacy pointer helpers and compatibility only after verified adoption and a versioned deprecation decision. Keep original tags/refs reachable.Required test matrix
Measure tool/dependency footprint and cold/warm build duration only if used to justify improvement; no performance claim is established by this investigation.
Rollback
For each pilot/cohort, keep the previous caller ref and restore it in a small revert PR if behavior fails. Disable the new writer before restoring the old one; never leave two deployments racing. A workflow revert restores execution, not already changed remote content: retain the prior Wiki commit and Pages artifact/commit as appropriate so approved content recovery is possible.
Do not delete previous generated/manual content or old release refs during extraction. Defer irreversible compatibility cleanup until the migration evidence supports it.
Completion evidence
The implementation is complete only when all fourteen consumer call sites and synchronized defaults are accounted for, final release refs resolve, the deployed Wiki/Pages surfaces pass checks, and the CLI skill matches the released runtime. This RFC publication itself performs none of those migrations.
coisa commentedon Oct 21, 2026
Alignment with domain extraction plan (2026-10-21)
#240 now tracks the responsibility-based architecture; this RFC remains the canonical documentation proposal, not a duplicate/new issue. #384 retains DevTools bootstrap/update composition. #195 maps skills-first distribution through existing LLM Skills; docs-writer/readme-maintainer can become composition skills, while sphinx-docs/package-readme procedures belong with documentation after reconciling names with the actual phpDocumentor/RST renderer.
Retain all original manual Wiki content, source freshness, no-submodule, single Pages publisher, asset/preview/rollback gates. Testing #380 owns coverage/JUnit generation; MetricsCommand is an external producer pending #14 ownership evaluation, not documentation logic. Code/PHPDoc formatting belongs to #379. #351 NotebookLM is optional and does not authorize transmission merely through adoption.
Revalidate against open #376 CPX/portable-skills candidate (not released), and adopt only verified compatible runtime/workflow/skill pins. No mandatory shared github-actions runtime or DevTools dependency. This remains a proposal for maintainer validation before repository creation, implementation or rollout; the historical 14-consumer count must be refreshed at migration time.
coisa commentedon Dec 3, 2026
Proposta para validação: piloto
clock, somente geraçãoSeparar geração (HTML/API + guias RST, Markdown do Wiki) de montagem do site e de publicação. Para este recorte, a CLI de documentação não carrega o DevTools nem executa PHPUnit/PhpMetrics; o orquestrador fornece diretórios de cobertura e métricas já gerados. Usar as mesmas entradas de relatório nas duas montagens. O template continua externo (phpdoc-bootstrap-template). Manter os chamadores e publicadores atuais intocados; não criar repositório/serviço para a prova sem validação do mantenedor.
Baseline verificável:
clock@a739cbff8bc8eff6e61d612c2f9d4c40263819a8; Wiki wrapperv1.26.0resolve para1e2be55575b533b9dc5739d8517dcb2bb4d72a98, mas a geração do Wiki instala/executa o runtime separado emd5a3b7eec9896f9ea50974ff09b23c32887acbc0. Reports@mainfoi observado em105e9f5f533f8ebdc902071d1627cbf880d33a0a; congelar esse SHA e registrar também as versões efetivamente resolvidas de PHP, Composer, PHPDoc, template e dependências (manifesto/lock da prova, não do consumidor). Referência de workflow isolada não fixa o grafo Composer. O Reports atual já instala separadamente o PHAR assinado do phpDocumentor viaphpdocumentor/shim; reaproveitar o renderer no primeiro recorte, sem adicionar Phive (#197).Aceite: ambos os lados geram em diretórios vazios com o mesmo SHA de fonte e insumos congelados; comparar páginas/âncoras da API, guias RST, links internos,
Home.md/páginas de API do Wiki, rotas de cobertura e métricas e hashes de Dash/logo. Desconsiderar apenas diferenças voláteis explicadas. Insumo solicitado ausente ou de outro SHA deve falhar explicitamente; nenhum teste ou cálculo de métricas é disparado pelo candidato. Rodar sem segredo, permissão de escrita, push ou deploy. A reversão nesta etapa é descartar os artefatos locais, sem alterar o consumidor. O candidato ainda não foi implementado; esta proposta não é evidência de paridade.coisa commentedon Dec 3, 2026
Delivery split: clock proof vs. standalone package
The canonical implementation issue for the package is php-fast-forward/documentation#1 (linked child). This RFC stays open for the independent
clockgeneration/assembly comparison and subsequent DevTools compatibility/rollout, not as a second package implementation. First draft: isolated proof in DevTools,clockas read-only pinned source, withdocsand only the Wiki generation step as references.dev-tools reportsis excluded because its coverage/metrics paths are generation destinations and it invokes those engines. Compare the same frozen static report inputs; validate producer, source SHA and digest, verify actual routes/bytes, distinguish non-emptyHome.mdfrom explicit no-API skip, and fail on attempted test/metrics/publication calls. Package follows independent review of that proof; it does not wait for Testing. Versioned PHAR supersedes the earlier mandatory Docker runtime proposal, without changing application PHP requirements. No publisher, active consumer workflow, release or merge is part of the proof.coisa commentedon Dec 3, 2026
Execution repository correction for the proof
The implementation Issue for the comparison harness is now the linked child php-fast-forward/clock#21. Its code and draft PR belong to
php-fast-forward/clock, in an isolated tooling/fixture location, not DevTools. This supersedes the earlier DevTools-harness wording; this parent remains the architecture and DevTools adoption record. php-fast-forward/documentation#1 still owns the separate standalone package and depends on independent review of the clock proof, not Testing. No consumer workflow, publishing, claims or code changes in this refinement.