Focus local CLI on code/policy scanning (remove trace-mining surface)#84
Merged
Conversation
Remove the trace-derived contract-mining surface from the CLI: the `sponsio refresh` command (and its prompt + docs) and the `--trace` options of `sponsio scan`. Plain `sponsio scan` over source code and policy docs is unchanged, as are `sponsio check --trace` and `sponsio eval` for trace replay. - delete sponsio/refresh.py and prompts/refresh.md (py + ts) - drop scan's --trace / --trace-min-support / --trace-confidence-threshold options and the emit-context trace summary - drop `refresh` from `sponsio prompt` flows (py + ts) - prune refresh / trace-mining from README (en/zh/ja), cli.md, OSS_PROMISE.md, oss-scope.md, observability.md, onboard-prompt.md, SKILL.md (py + ts), llms.txt, regenerate llms-full.txt - keep the dormant discover() trace-mining extension point (guarded import) intact; update its now-stale comments - update test_skill_doc_sync + test_emit_context_loop for the new surface Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Trims the CLI to the capabilities that work standalone.
sponsio scanreads source code and policy docs;sponsio check --traceandsponsio evalstill replay traces. The trace-derived contract-mining surface, which depends on thetrace_miningextension that isn't bundled here, is removed so the documented surface matches what actually runs:sponsio refreshcommand (sponsio/refresh.py,prompts/refresh.mdpy+ts, theprompt refreshflow).sponsio scan's--trace/--trace-min-support/--trace-confidence-thresholdoptions and the--emit-contexttrace summary.discover()trace-mining extension point (guarded import) so an alongside implementation still composes; stale comments updated.docs/reference/cli.md,OSS_PROMISE.md,oss-scope.md,observability.md,onboard-prompt.md,SKILL.md(py+ts),llms.txt;llms-full.txtregenerated.test_skill_doc_sync+test_emit_context_loopupdated to the new surface.Test plan
ruff check/ruff format --check(0.15.16): cleanpytest -q: 2337 passed, 2 skipped(cd ts/packages/sdk && npm run build && npm test): build OK, all suites passsponsio demo --scenario freeze --fast: BLOCKED as expectedsponsio scan <dir>(code-only) andsponsio scan --emit-context(notrace_summarykey) verified end-to-end🤖 Generated with Claude Code