一键导入
create-issue
Create a new issue file from a test262 failure pattern. Includes smoke test, sample extraction, and proper frontmatter.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a new issue file from a test262 failure pattern. Includes smoke test, sample extraction, and proper frontmatter.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compare two test262 result files to find exactly which tests changed status. Use after a test262 run shows unexpected pass count changes.
Compile a source file to WAT and analyze the output for codegen inefficiencies. Use after a codegen change to verify the output is clean, when investigating performance issues, or when creating optimization issues from real compiler output.
Write an implementation spec for a hard issue. Read compiler source, identify exact functions/lines, design the fix, document edge cases.
Quickly find which commit introduced a test262 regression using git bisect with automated test.
Atomically claim an issue for a developer (human or agent) via the cross-developer lock ref, so two devs never pick up the same task. Syncs with origin first, refuses if already claimed or already done on main, and pushes the claim immediately without touching main or triggering CI.
Merge self-check for a green PR. Reads the PR's required-check status from the checks API (the committed ci-status feed is RETIRED), outputs MERGE (mark task completed, stand down — server-side auto-enqueue enqueues,
| name | create-issue |
| description | Create a new issue file from a test262 failure pattern. Includes smoke test, sample extraction, and proper frontmatter. |
Describe the failure pattern: error message, test category, approximate count.
NEW=$(node scripts/claim-issue.mjs --allocate) # prints the reserved id
echo "$NEW"
This reserves the next id unique against origin/main ∪ every open PR's added
issue files ∪ ids already reserved on the orphan ref, with first-push-wins
atomicity. Use $NEW as {N} below. (The CI gate check:issue-ids:against-main
rejects any PR that introduces a main-colliding id, so this is enforced, not
just advised.)
grep -l "<error pattern>" /workspace/benchmarks/results/test262-results.jsonl | head -5
Or search the JSONL:
python3 -c "
import json
matches = []
with open('benchmarks/results/test262-results.jsonl') as f:
for line in f:
r = json.loads(line)
if '<pattern>' in r.get('error',''):
matches.append(r['file'])
print(f'Found {len(matches)} matching tests')
for m in matches[:5]:
print(f' {m}')
"
For each sample, extract the relevant source lines from the test file.
Write the issue file:
---
id: {N}
title: "{description} ({count} tests)"
created: YYYY-MM-DD
updated: YYYY-MM-DD
priority: {high|medium|low}
feasibility: {easy|medium|hard}
depends_on: []
goal: core-semantics
es_edition: {es5|es2015|es2016|es2017|es2018|es2019|es2020|es2021|es2022|es2023|es2024|multi|n/a}
language_feature: {normalized-feature-slug}
task_type: {bug|feature|test|refactor|planning}
---
# #{N} -- {title}
## Problem
{count} tests fail with {error pattern}. {1-2 sentence description}.
### Sample files with exact errors and source
**1. {test name}**
File: `{path}`
Error: `{exact error}`
```js
// Relevant source lines
Root cause: {why the compiler produces wrong output}
{Link to the relevant spec section(s) at https://tc39.es/ecma262/} Example: §7.1.1 ToPrimitive
If multiple sections apply, list each with a one-line note on which step or sub-algorithm is relevant to this issue.
{Which codegen function/file produces this pattern}
{High-level approach — specific enough for architect to spec}
={target} of {total} tests fixed
Required metadata rules:
- `created` is the first known creation date and should not change later
- `updated` must be bumped whenever the issue meaningfully changes
- `es_edition` should capture the relevant language edition, or `multi` / `n/a`
- `language_feature` should be a stable machine-readable feature or subsystem slug
- `task_type` must be one of `bugfix`, `feature`, `test`, `refactor`, `planning`
5. Add to dependency graph and backlog.