Suggestion: use OpenSpec for bigger changes #1061
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#1061
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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: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:
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 anAGENTS.mdpointing 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.@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,OpenExistingHeapFromAddressreturning E_NOTIMPL, timestamps at 60 Hz, the XMA2GetStatecontext, the helper lanes behind a missings_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 fromAGENTS.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.
@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.