From ab17b6fc2992d0a7a8be3a65167ecf1b420f0c3d Mon Sep 17 00:00:00 2001 From: Johannes Stein Date: Fri, 29 May 2026 08:22:04 +0200 Subject: [PATCH] Add GocciaScript issue validation skill Capture project-specific issue validation rules for test262-backed reports, including the repository runner path and pinned suite guidance. --- .../gocciascript-issue-validation/SKILL.md | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .agents/skills/gocciascript-issue-validation/SKILL.md diff --git a/.agents/skills/gocciascript-issue-validation/SKILL.md b/.agents/skills/gocciascript-issue-validation/SKILL.md new file mode 100644 index 00000000..c1b8bed4 --- /dev/null +++ b/.agents/skills/gocciascript-issue-validation/SKILL.md @@ -0,0 +1,35 @@ +--- +name: gocciascript-issue-validation +description: Validate GocciaScript engine issues against the project-specific test262 harness. Use alongside implement-issue for GocciaScript issues that mention test262, ECMA-262/ECMA-402 conformance, Intl, or parser compatibility flags. +--- + +# GocciaScript Issue Validation + +Project-specific validation rules for GocciaScript issues. Use this skill with the generic `implement-issue` workflow when the issue references test262, ECMAScript/ECMA-402 behavior, or compatibility flags. + +## Test262 Validation + +When an issue references test262 files, patterns, or categories: + +1. Read `docs/test262.md` before running the reproduction. +2. Use `scripts/run_test262_suite.ts` with `GocciaScriptLoaderBare`; do not run stock test262 files directly through `GocciaScriptLoader`, `GocciaTestRunner`, or hand-built wrappers. +3. Use the pinned test262 SHA from `.github/workflows/pr.yml` or `.github/workflows/ci.yml` unless the issue explicitly targets another SHA. +4. Build the bare loader first: + +```bash +./build.pas loaderbare +``` + +5. Run exact issue paths through the project runner, for example: + +```bash +bun scripts/run_test262_suite.ts \ + --suite-dir /path/to/test262-suite \ + --categories intl402 \ + --filter 'intl402/NumberFormat/prototype/format/example.js' \ + --mode bytecode \ + --jobs 1 \ + --verbose +``` + +The runner supplies the compatibility flags, harness substitutions, non-strict script handling, timeout/memory limits, pinned harness behavior, and PASS/FAIL/WRAPPER_INFRA classification used by CI. Direct loader experiments are only supplemental after the project runner result is known.