Index of every page on this site: llms.txt
All skills
oahc09 avatar

/cocosair-verification

@ed38648
by oahc09oahc09/cocosairjs3 stars
2
Run it yourself

Choose verification gates and assess browser/package evidence, write behavior and fingerprints. Use to validate changes, distinguish FAIL/UNSUPPORTED or check release readiness.

  • 9 files
  • 38.8 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/oahc09/cocosairjs/cocosair-verification

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesplaywright-prereqs.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Derived from AGENTS.md, docs/reference/verification.md, tools/verify/graphics-and-dom.cjs, tools/verify/browser-matrix.cjs, tools/verify/tarball-browser-consumer.cjs, tools/verify/example-spec-browser.cjs, tools/verify/devtools-examples.cjs (as of 2026-10-10).

Browser gates are the only evidence for Layer 3 behavior, and they have prerequisites that a normal install does not satisfy. Read this before running any collector.

Playwright is not a project dependency

The repository does not vendor Playwright as a dependency, so browser gates resolve it through a configured tooling environment. Point the tooling at it with NODE_PATH, and select a Playwright CLI wrapper with PWCLI when the collector shells out (the capabilities npm script consumes PWCLI). A successful npm install does not establish that Playwright resolves or that the browser binaries are present. Confirm resolution before expecting a browser gate to run.

Browser binaries must be available and start

npm run verify:port-env inspects Node, npm, the compiler, the test runner, Playwright resolution and the Playwright browser cache, but it is read-only discovery: a cached binary being listed does not prove it launches. Browser matrix, tarball-consumer and perf-lifecycle additionally need a current built bundle and the example assets. verify:browser-matrix reads its scope from the browser matrix contract under tools/verify/, not from every Gallery example.

Server prerequisite for capabilities

npm run capabilities merges verification levels with the model catalog and rewrites the capabilities JSON under examples/gltf-catalog/. It requires a running development server, for example npm run dev -- --port 7462 in another terminal, and working Bash plus Playwright CLI tooling. It writes repository content; it is not a read-only probe.

Presentation evidence is stronger than readback

A matching GPU readPixels result is not proof that the frame reached the screen. The DOM-texture scene checks both the raw GPU readback and the actual PNG screenshot pixels after viewport changes, and the runner requires pngjs in the same tooling environment as Playwright. Treat a readback-only match as necessary, not sufficient, for compositor presentation (AGENTS.md, the browser-evidence table).

HEADLESS gives no pixel evidence

npm test runs Jest under jsdom with HEADLESS. That validates logic, ownership and structure; it cannot validate shader or render output. Visual features require a real browser collector. Do not report a shader or draw behavior as verified from a Jest or typecheck pass.

UNSUPPORTED versus FAIL

Capability absence is recorded as UNSUPPORTED only after capability discovery has run and reported the gap. In the HTML/Graphics probe, the fixture's own status value distinguishes an absent capability from an executed pass (tools/verify/graphics-and-dom.cjs:104 proceeds to interaction only when the discovered status is PASS; a non-PASS status is reported, not asserted as success). Anything that throws before or during the probe is caught and recorded as status: 'FAIL' with the failing stage (tools/verify/graphics-and-dom.cjs:127).

observation correct label why
discovery reports the capability is absent UNSUPPORTED the probe ran and honestly reported a gap
browser launch throws FAIL no probe executed
shader compile or pipeline error FAIL execution reached a defect, not an absent capability
probe times out or yields a black frame FAIL execution happened and produced bad output

Do not soften a launch failure, a timeout, a shader error or a black screen into UNSUPPORTED. Capability absence is a discovery result, not an escape hatch for a failed run.

Before you report a browser claim

Confirm Playwright resolution, the browser-binary availability, the current bundle and any dev server the gate needs; then read the produced report's exit code, timestamp and subset marker rather than assuming a written file proves success (see gate-catalog.md).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at ed38648. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
layer
subsystem
All 1 allowed tools
Read Bash
Other metadata
compatibility
Cocos AIR source checkout or installed cocosair.js package. Browser rendering requires WebGL 2; source tooling requires Node.js >=18. Use the host-provided tools and user-authorized workspace.
when_to_use
[
  "choose focused gates for a changed contract",
  "check whether a verify command writes files",
  "verify package imports or actual browser behavior",
  "check report fingerprints and coverage scope",
  "assess release readiness without trusting stale evidence"
]
owns
[
  "verification-gates",
  "evidence-layers",
  "source-fingerprints",
  "browser-proof",
  "package-validation",
  "release-readiness"
]
not_for
[
  "package installation and setup -> cocosair-project-setup",
  "live-session inspection and probes -> cocosair-agent-session",
  "draw-call optimization -> cocosair-performance"
]
metadata
{
  "author": "oahc09@gmail.com",
  "version": "1.0.0",
  "last-updated": "2026-10-13",
  "description_zh": "选择并解释 AIR 验证门禁、写行为、指纹和逐 API 证据。用于验证改动、包消费、浏览器行为或发布候选。"
}

README badge

README badge for oahc09/cocosairjs/cocosair-verification