Suggestion: use OpenSpec for bigger changes #1061

Open
opened 2026-11-26 04:42:13 +00:00 by github-bot · 3 comments
Owner

@⁠oceanpacificpeace on GitHub · 2026-11-24 11:07 UTC · original

Going through the open PRs, a lot of review time seems to go into choosing between several PRs that fix the same thing in different ways. Wait64 went through #708, then #795/#797, and now #850/#851 on top. The #701 structurizer bug has #721, #728/#729 and #765 competing, and #630 and #541 conflict on mesh shaders in the AS slot.

Most of these come from people working in parallel without an agreed design. CONTRIBUTING already asks for a short plan before bigger work, but in practice that plan lives in a comment, if anywhere, and the reasoning behind each fix ends up spread over closed PR threads.

Have you considered OpenSpec? or any other SDD (spec driven development) framework? It keeps a folder in the repo describing how each part currently works.

A bigger change starts as a short proposal there: the problem, the evidence, what the console actually does, and the chosen approach. Once that's agreed, the implementation follows it.

Since most PRs here are written with AI tools anyway, those tools would pick up the agreed design instead of each one inventing its own. Small fixes wouldn't need any of it.

https://openspec.dev/

**@⁠oceanpacificpeace** on GitHub · 2026-11-24 11:07 UTC · [original](https://github.com/xcl-dev/xcl/issues/1061) Going through the open PRs, a lot of review time seems to go into choosing between several PRs that fix the same thing in different ways. Wait64 went through #708, then #795/#797, and now #850/#851 on top. The #701 structurizer bug has #721, #728/#729 and #765 competing, and #630 and #541 conflict on mesh shaders in the AS slot. Most of these come from people working in parallel without an agreed design. CONTRIBUTING already asks for a short plan before bigger work, but in practice that plan lives in a comment, if anywhere, and the reasoning behind each fix ends up spread over closed PR threads. Have you considered OpenSpec? or any other SDD (spec driven development) framework? It keeps a folder in the repo describing how each part currently works. A bigger change starts as a short proposal there: the problem, the evidence, what the console actually does, and the chosen approach. Once that's agreed, the implementation follows it. Since most PRs here are written with AI tools anyway, those tools would pick up the agreed design instead of each one inventing its own. Small fixes wouldn't need any of it. https://openspec.dev/
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:42:13 +00:00
Author
Owner

@⁠oceanpacificpeace on GitHub · 2026-11-24 11:14 UTC · original · edited 2026-11-24 11:17 UTC

One more thing that goes with this. Since most contributors work with AI agents, it would help to give those agents a shared memory of what's already known, not just the specs.

Right now every contributor's agent starts from zero and needs to rediscover the same facts, often after a few wrong turns.

Examples:

  • NVIDIA caps shader-visible heaps at 1,000,000 descriptors.
  • An out-of-range heap index wraps to slot 0 on NVIDIA instead of faulting.
  • GTA VI's watchdog at +0x2215a60 kills the process after about 30 s without progress.
  • The Wait64 producer list gets submitted after its consumer.
  • Which BCPack modes the game actually uses.

Each of these was found by someone, written up once in a PR comment, and then found again later by someone else.

Read more about this here and let's stop using Claude ineffectively; context engineering for agents covers this under "structured note-taking": agents keep notes in files outside their context and read them back in later sessions. Claude Code does the same through CLAUDE.md / AGENTS.md files, and other tools read AGENTS.md too.

For XCL that could be a small docs/knowledge/ folder with an AGENTS.md pointing to it, holding short notes per area: GPU vendor differences, per-title findings, things that were tried and didn't work, and why. Agents would pick it up automatically, so new PRs would start from what's known instead of from scratch. It pairs well with OpenSpec: the specs say how things should work, and the knowledge notes record what was learned getting there.

**@⁠oceanpacificpeace** on GitHub · 2026-11-24 11:14 UTC · [original](https://github.com/xcl-dev/xcl/issues/1061#issuecomment-7129849123) · edited 2026-11-24 11:17 UTC One more thing that goes with this. Since most contributors work with AI agents, it would help to give those agents a shared memory of what's already known, not just the specs. Right now every contributor's agent starts from zero and needs to rediscover the same facts, often after a few wrong turns. Examples: - NVIDIA caps shader-visible heaps at 1,000,000 descriptors. - An out-of-range heap index wraps to slot 0 on NVIDIA instead of faulting. - GTA VI's watchdog at +0x2215a60 kills the process after about 30 s without progress. - The Wait64 producer list gets submitted after its consumer. - Which BCPack modes the game actually uses. Each of these was found by someone, written up once in a PR comment, and then found again later by someone else. Read more about this here and let's stop using Claude ineffectively; [context engineering for agents](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents) covers this under "structured note-taking": agents keep notes in files outside their context and read them back in later sessions. Claude Code does the same through [CLAUDE.md / AGENTS.md files](https://code.claude.com/docs/en/memory), and other tools read AGENTS.md too. For XCL that could be a small `docs/knowledge/` folder with an `AGENTS.md` pointing to it, holding short notes per area: GPU vendor differences, per-title findings, things that were tried and didn't work, and why. Agents would pick it up automatically, so new PRs would start from what's known instead of from scratch. It pairs well with OpenSpec: the specs say how things should work, and the knowledge notes record what was learned getting there.
Author
Owner

@⁠vakaobr on GitHub · 2026-11-24 11:54 UTC · original

+1 to the docs/knowledge/ part. #258 is a good example of the cost: the same D3DMetal facts were found two or three times today by different people (f64 instructions zeroing a shader's writes, 64-bit atomics doing the same, OpenExistingHeapFromAddress returning E_NOTIMPL, timestamps at 60 Hz, the XMA2 GetState context, the helper lanes behind a missing s_wqm).

If @⁠ivall wants the folder, I can open a small docs-only PR seeding docs/knowledge/macos-d3dmetal.md: one line per measured fact, with the commit or PR that measured it and how to reproduce it, plus a pointer from AGENTS.md. I'd keep it to facts with evidence, not plans, so it doesn't overlap the specs side of the proposal.

AI use: Claude Code, Claude Opus 5.5 drafted this; the facts listed are from #258 and my own runs.

**@⁠vakaobr** on GitHub · 2026-11-24 11:54 UTC · [original](https://github.com/xcl-dev/xcl/issues/1061#issuecomment-7130712325) +1 to the `docs/knowledge/` part. #258 is a good example of the cost: the same D3DMetal facts were found two or three times today by different people (f64 instructions zeroing a shader's writes, 64-bit atomics doing the same, `OpenExistingHeapFromAddress` returning E_NOTIMPL, timestamps at 60 Hz, the XMA2 `GetState` context, the helper lanes behind a missing `s_wqm`). If @⁠ivall wants the folder, I can open a small docs-only PR seeding `docs/knowledge/macos-d3dmetal.md`: one line per measured fact, with the commit or PR that measured it and how to reproduce it, plus a pointer from `AGENTS.md`. I'd keep it to facts with evidence, not plans, so it doesn't overlap the specs side of the proposal. AI use: Claude Code, Claude Opus 5.5 drafted this; the facts listed are from #258 and my own runs.
Author
Owner

@⁠iggyvilla on GitHub · 2026-11-24 11:49 UTC · original · edited 2026-11-24 12:54 UTC

Up, I agree with the shared documentation part. We're going to have to coordinate all the agents better somehow, and a shared knowledge base would benefit new contributors/contributors in general.

**@⁠iggyvilla** on GitHub · 2026-11-24 11:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/1061#issuecomment-7130592601) · edited 2026-11-24 12:54 UTC Up, I agree with the shared documentation part. We're going to have to coordinate all the agents better somehow, and a shared knowledge base would benefit new contributors/contributors in general.
This discussion has been locked. Commenting is limited to contributors.
No description provided.