Repository navigation
Description
Problem
External-analyzer projects (e.g. Python via snake-eyes) report a large share of their side effects as ambiguous. For snake-eyes, the latest report classifies 56.7% of detected effects (1186/2091) as ambiguous — the same 1186 figure surfaced in the classification_counts verified in #278.
The repository's own spec/design docs already encode the missing intent: the container-mutation design docs explicitly mark 10 ContainerMutation effects as observable/contractual and 14 as internal bookkeeping/incidental. gaze docscan already finds and reads those documents (74 for snake-eyes), but that output is consumed only by the AI report pipeline — it never reaches classification. So documented contracts and documented internal bookkeeping stay ambiguous.
Findings (why this is small, not an architecture change)
- The scoring engine is source-agnostic.
classify.ComputeScore(internal/classify/score.go) sums everySignal.Weightregardless ofSource;adapter.mergeClassifications(internal/adapter/classify.go) copies external-analyzer signals'Source/Weight/Reasoningverbatim intoComputeScore. A new doc-derived source would flow through with no protocol surgery. - The source vocabulary already anticipates it:
taxonomy.Signal.Source(internal/taxonomy/types.go:152-153) lists"readme"and"architecture_doc"as examples, but no extractor produces them. - The only doc-derived weight convention today is Go-native:
internal/classify/godoc.go(maxGodocWeight=15contractual,-15incidental,reducedGodocWeight=5indirect), called only from thegoproviderpath. internal/docscan/*is consumed only byinternal/aireport/runner_steps.go;ClassificationConfig.DocScanis include/exclude/timeout config fordocscan.Scan. There is no doc → signal →ComputeScorepath.
Proposed change
Derive doc/design-doc signals from the docs docscan already reads and inject them into classification for external-analyzer effects, instead of having each analyzer re-scan its own docs.
- Define a doc-derived signal source (e.g.
architecture_doc, or reuse the anticipatedreadme/architecture_docnames already in theSignal.Sourcecomment) and its weights — a gate value, most naturally mirroring the godoc 15/-15/5 convention. - Add a doc → signal derivation step that maps documented public-API contracts → positive signal and documented internal bookkeeping → negative signal, keyed to
(package, function, side_effect_type)so it can be merged inmergeClassifications. - Keep this scoped to external analyzers (Go already has
godoc+ native extractors); do not change thegodocnative path.
Open design questions
- Where should the free-form Markdown →
(file, line, effect_type)mapping live? Docs are natural-language prose, not machine-parseable effect identities. A deterministic annotation grammar (or a machine-readable sidecar) is needed so the derivation is reproducible rather than NLP-based. - Effect-type names are language-specific (snake-eyes emits
ContainerMutation, etc.); the doc grammar must reference analyzer-emitted type names, so the derivation may need the analyzer's own taxonomy mapping.
Related
- enhancement: wire spec/design docs into classification to resolve ambiguous effects zero-dot-force/snake-eyes#28 — the originating enhancement request ("wire spec/design docs into classification to resolve ambiguous effects").
- Surface classify_signals classification in
gaze qualityand wire--analyzerinto the default/gazereport #278 — theclassification_countssurface that made the 1186-ambiguous figure visible.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
fullsend-ai-triage commentedon Sep 28, 2026
🤖 Finished Triage · ✅ Success · Started 9:41 PM UTC · Completed 9:45 PM UTC
Commit:
18aa40c· View workflow run →Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $1.01
fullsend-ai-triage commentedon Sep 28, 2026
Triage Assessment
Severity: medium — The 56.7% ambiguous rate significantly reduces the utility of contract coverage metrics for external-analyzer users, but the tool remains functional and the AI report pipeline partially compensates.
Design Considerations
The two open design questions are the critical path for implementation:
Annotation grammar: Free-form Markdown docs cannot be deterministically mapped to
(package, function, effect_type)triples without a structured format. A machine-readable sidecar (e.g., YAML alongside design docs) or a structured annotation syntax within Markdown (e.g., fenced blocks with a specific tag) would make the derivation reproducible. This is a spec-worthy design decision.Language-specific type names: The grammar must reference analyzer-emitted type names (e.g.,
ContainerMutation). Thetaxonomy.ValidTypesset andtaxonomy.IsKnownTypefunction already exist for validation — the derivation step can use these to reject unknown type names at parse time.Proposed Test Case
Related Work
gaze qualityand wire--analyzerinto the default/gazereport #278 (closed) — surfaced theclassification_countsthat made the ambiguous proportion visiblezero-dot-force/snake-eyes#28— parallel upstream enhancement request; not a prerequisite for this workThis should go through the spec-first pipeline given the annotation grammar design decision.
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefeat: derive classification signals from docs for external analyzers
feat: derive classification signals from docs for external analyzers
feat: derive classification signals from docs for external analyzers
feat: derive classification signals from docs for external analyzers