You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ssljson precision: duplicate scene/step IDs are silently deduped by map[string]bool — the spec's "unique IDs" Pass-4 rule is uni
[Content truncated due to length] #39494
Because a map collapses repeated keys, two scenes (or two logic steps) that share an id produce no diagnostic — the second silently overwrites the first. Every downstream reference check (entry_scene, entry_logic_step, transition target, step next) then resolves against an ambiguous, deduped table, so a malformed document with colliding IDs is reported as valid.
The intent is the linter's own embedded spec
The repo's own .github/skills/ssl/ssl.json:150 (step_verify_validate) enumerates the Pass-4 rules the analyzer is meant to enforce:
"unique IDs" is an explicit, named rule. It is currently unimplemented: there is no uniqueness check anywhere in ValidateDoc. The analyzer's Doc (ssljson.go:24) advertises "enum and graph rules", and uniqueness is a precondition for the graph to be well-defined.
Why it matters
If an SSL-authoring agent emits two scene_recover scenes with diverging next_scene_rules, or two step_reason_pass1 steps with different next pointers, the graph is non-deterministic — but ssljson waves it through. The 4 current production files happen to have unique IDs (verified: no scene or step id repeats), so this is a latent correctness gap, exactly the class of issue worth closing before the linter is enforced in CI.
Recommendation
Detect collisions while building the maps. Minimal form:
for_, s:=rangedoc.Scenes {
ifsceneIDs[s.ID] {
msgs=append(msgs, fmt.Sprintf("duplicate scene id %q", s.ID))
}
sceneIDs[s.ID] =true
}
...and the symmetric loop for stepIDs. Reuse the existing msgs accumulator; no new data structures needed.
Validation checklist
Add ValidateDoc cases: two scenes with the same id are flagged; two steps with the same id are flagged.
All 4 production ssl.json files still validate clean (ids are unique today).
go test ./pkg/linters/ssljson/... passes.
Effort: small — a guard inside each of the two existing ID-collection loops plus two testdata cases. Pairs naturally with the scene_id graph-integrity gap (#39493); both complete the spec's Pass-4 rule set in the same function.
The agent encountered an error and was unable to start working on this issue: Please try again later, or contact support if the problem persists. (Request id: 12C0:375BA6:19A2825:6111E16:6A310B50)
Activity
Copilot commentedon Jun 16, 2026
The agent encountered an error and was unable to start working on this issue: Please try again later, or contact support if the problem persists. (Request id: 12C0:375BA6:19A2825:6111E16:6A310B50)
github-actions commentedon Jun 16, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
github-actions commentedon Jun 23, 2026
This issue was automatically closed because it expired on 2026-06-23T05:39:54.943Z.