Repository navigation
docs(site): implement three-zone governance and strict pretty YAML - #58
Conversation
Signed-off-by: thxCode <thxcode0824@gmail.com>
|
🔍 OpenCodeReview found 2 issue(s) in this PR.
📄
|
| | Code | Meaning | | ||
| | --- | --- | | ||
| | 0 | Completed, no change, successful static command, or `suite` `eligible`/`deferred`/`ignored` | | ||
| | 2 | Usage, configuration, unknown `--domain`, or `TaskpackSuite`/`EvolutionCampaign` manifest rejected | | ||
| | 3 | Unsupported capability, blocked work, `TEAM_ENVELOPE_VIOLATION`, `EXPORT_UNVERIFIED_FORBIDDEN`, or `WORKER_DEVICE_QUARANTINED` | | ||
| | 4 | Execution, acceptance, or artifact validation failed | | ||
| | 5 | Allowance or campaign budget exhausted | | ||
| | 6 | Deadline expired | | ||
| | 7 | Reconciliation, `EVOLUTION_CONFLICT`, `EVOLUTION_LEASE_FENCED`, `EVOLUTION_CLOCK_DRIFT`, or fenced runner lease | | ||
| | 8 | Authoritative result unavailable, incident, store corruption, or runner teardown failure | | ||
| | 130 | Step cancellation, paused evolution campaign, or accounted SIGINT, subject to uncertainty precedence | | ||
| | 143 | Accounted SIGTERM, subject to uncertainty precedence | | ||
| | `0` | Completed, no change, successful static command, or `suite` `eligible`/`deferred`/`ignored` | |
There was a problem hiding this comment.
The detailed per-code diagnostics dropped from this table (e.g. WORKER_DEVICE_QUARANTINED from code 3, RUNNER_TEARDOWN_FAILED from code 8) and the full subcommand flag table now live only in CLI and Action Reference, but this page never links there. Please add a cross-link (e.g. in the "Exit codes" intro or "See also") so automation consumers matching on specific codes can find the complete dictionary.
There was a problem hiding this comment.
Intentionally not changed: under three-zone governance, public site/ pages must not link outward to docs/references/** (enforced by scripts/check-docs.mjs and site/layouts/partials/link-destination.html). Coding agents and automation consumers discover /references/cli-and-action-reference.md via llms.txt and docs/references/README.md.
| ``` | ||
|
|
||
| Verify `$INSPECT_DIR/result.json` settled `completed`, confirm your local Git working tree is clean and `HEAD` matches the immutable baseline commit OID, and apply `$INSPECT_DIR/candidate.files.json` onto your branch. `candidate.files.json` exports `version: 2` CAS pointers (`{ name, mode, sha256, byteLength, uri, blobPath }`, verified via `O_NOFOLLOW`, `nlink === 1`, and `1 MiB` streaming SHA-256 while preserving `100644`/`100755` modes), with passive fallback for legacy `version: 1` base64 `body` bundles: | ||
| Before applying `$INSPECT_DIR/candidate.files.json` onto your branch (either via the `loopwright-step` skill or an atomic script), verify five invariants: |
There was a problem hiding this comment.
The ~150-line verified overlay-apply script was replaced by a five-point checklist, and the script itself was relocated to Coding Agent Protocol Reference. Without a link here, agents following this page will improvise an apply routine instead of using the fail-closed reference implementation. Please link the reference (e.g. "apply candidate.files.json via the verified apply script").
There was a problem hiding this comment.
Intentionally not changed: under three-zone one-way link isolation, public site/ pages cannot link to docs/references/**. Coding agents discover /references/coding-agent-protocol.md (and the verbatim overlay-apply script) via llms.txt, docs/references/README.md, and .agents/skills/loopwright-step/SKILL.md.
| ## Core inputs | ||
|
|
||
| All Action inputs are optional. Conditional credentials, endpoint bindings, and event payloads depend on the taskpack and trigger. | ||
| All Action inputs are optional. Precedence is `Action with:` inputs > `taskpack.yaml` `spec.limits` > `LOOPWRIGHT_*` env vars > compiler defaults. |
There was a problem hiding this comment.
The example workflow dropped baseline-alignment and github-app-installation-id lines while the "Core inputs" table still documents baseline-alignment — the input still exists in action.yml, so this is only example/table drift, not a removed feature. More importantly, this page no longer lists ~25 of the 44 inputs; add a pointer to CLI and Action Reference so readers of this page can find the complete input list.
There was a problem hiding this comment.
Intentionally not adding a ../references/... link: public site/ pages are strictly isolated from docs/references/** by scripts/check-docs.mjs and Hugo's link-destination.html guard; the complete 44-input reference lives at /references/cli-and-action-reference.md via llms.txt.
| const marker = line.match(BQ_FENCE); | ||
| if (marker && !fence) { | ||
| if (!(marker[1][0] === "`" && marker[2].includes("`"))) { | ||
| fence = marker[1]; | ||
| continue; | ||
| } | ||
| } else if (fence) { | ||
| if (marker && marker[1][0] === fence[0] && marker[1].length >= fence.length && !marker[2].trim()) { | ||
| fence = ""; | ||
| } | ||
| continue; | ||
| } | ||
| const stripped = line.trim(); | ||
| if (comment) { | ||
| if (stripped.includes("-->")) comment = false; | ||
| continue; | ||
| } |
There was a problem hiding this comment.
The same fence/comment state machine (BQ_FENCE open/close, HTML comment tracking) is now duplicated across ~10 functions in this file (getAnchors, maskExemptMarkdownRegions, checkProseHtml, checkInterrogatives, checkHeadingDepthCeiling, checkHeadingCaps, checkSectionAndLineCaps, checkProseParagraphCaps, checkTables, checkBannedAiFiller, checkKindPlurals, checkReferenceEvidenceHeader). The copies already diverge subtly (e.g. getAnchors uses the plain /^#{1,6}\s+/ heading regex without the blockquote prefix the other checkers use). Extract a shared line iterator/generator (e.g. forEachProseLine(content, cb) that skips fences/comments and indented code) so future fixes land in one place.
There was a problem hiding this comment.
Aligned getAnchors() in 833aa00 to use the same blockquote-aware heading regex as the other checkers. Kept the broader 10-function prose-iterator refactor out of scope for this docs-governance PR because paragraph and table checkers require fence/blank-line flush semantics; can be followed up separately if needed.
Signed-off-by: thxCode <thxcode0824@gmail.com>
|
Addressed PR review feedback in commit Addressed (12 items)
Intentionally Not Changed — Three-Zone One-Way Link Isolation (4 items)
Verification
|
Signed-off-by: thxCode <thxcode0824@gmail.com>
|
Addressed all 3 incremental review items in
Verified with |
Signed-off-by: thxCode <thxcode0824@gmail.com>
|
Addressed both incremental review items in
Verified with |
What type of PR is this?
/kind documentation
/area docs
/area site
Summary
docs/into three explicit zones driven by three top-level tables indocs/README.md(## All pagesfor the 15 concise human-first public site pages,## Referencefor 6 flat machine-orienteddocs/references/*.mdfiles, and## Contributefor the 12 repository-only contributor pages).llms.txtisolation and flat reference pipeline: Updatessite/layouts/home.llms.txt,site/hugo.toml,site/layouts/partials/{readme-table-rows,link-destination,markdown-content}.html, andscripts/site.mjs(stageReferenceDocs(),rewriteReferenceMarkdown(),syncGhPagesRoot(),verifySite()) sollms.txtisolates public pages (/docs/.../index.md), static flat references (/references/*.md), and optional contributor guides (https://github.com/gpustack/loopwright/blob/<sourceRef>/...), while keepingreferences/,development.md, andcontribute/**out of site navigation,sitemap.xml, andindex.json. Also updatesresolveHugo()to prefer Hugo>= 0.153.0(0.170.1in CI) and migrates the Hugo mount tofiles = ["*.md"].Evolutionary Campaign): Renamesdocs/walkthroughs/evolutionary-campaigns.mdtodocs/walkthroughs/evolutionary-campaign.md(# Evolutionary Campaign) and aligns navigation labels, indexes,llms.txt, and skill references to match sibling singular walkthrough titles (Declarative Taskpack,Managed Controller,Evolutionary Campaign).docs/references/*.mdfiles (README.md,bootstrap-interview.md,taskpack-and-contract-schema.md,controller-and-registry-schema.md,cli-and-action-reference.md,coding-agent-protocol.md).{ ... }) and flow sequences ([ ... ]) acrossREADME.mdanddocs/**/*.mdinto pure 2-space block-style YAML, enforces this viayaml'sparseDocument(..., { version: "1.2", schema: "core", uniqueKeys: true })AST inscripts/check-docs.mjsalongside H1–H3 depth caps,<= 8public H2 caps, layout-container heading noun bans, one-way public link isolation, checked kind-plural rules, andsite/content/docs/_index.md+site/layouts/index.html15-page parity. Updates.agents/skills/loopwright-docs/**(and sibling skills) pluspackages/cli/test/{check-docs-rules,docs-and-site}.test.ts.check-docs.mjs, Hugov0.170.1site build/link verification, CLI closure audit, and 20 docs/site/gh-pages unit and E2E tests. Live GitHub Pages deployment occurs on merge tomain.Related Issues
None.
Verification
npm run buildpassed cleanlynpm run typecheckpassed cleanlynpm run lintpassed cleanlynpm run lint:docspassed cleanly (Checked 34 docs pages and 44 linked sources; 0 error(s).)npm run sitebuilt and verified with zero broken links (Verified 18 HTML pages and 15 Markdown exports; 0 broken link(s) (6 reference file(s)).)node --test --test-concurrency=1 .test-build/packages/cli/test/check-docs-rules.test.js .test-build/packages/cli/test/docs-and-site.test.js .test-build/packages/github-app/test/site-gh-pages.test.js— 20/20 passed)node packages/cli/dist/main.js closurepassed cleanly.github/workflows/was not modified and remains protected against untrusted taskpack/sandbox writesSigned-off-by: Full Name <email>Developer Certificate of Origin (DCO) included on all commitsDoes this PR introduce a user-facing change?