Skip to content

Focus local CLI on code/policy scanning (remove trace-mining surface)#84

Merged
yfxiao16 merged 1 commit into
mainfrom
remove-trace-mining-surface
Jun 15, 2026
Merged

Focus local CLI on code/policy scanning (remove trace-mining surface)#84
yfxiao16 merged 1 commit into
mainfrom
remove-trace-mining-surface

Conversation

@yfxiao16

Copy link
Copy Markdown
Contributor

Summary

Trims the CLI to the capabilities that work standalone. sponsio scan reads source code and policy docs; sponsio check --trace and sponsio eval still replay traces. The trace-derived contract-mining surface, which depends on the trace_mining extension that isn't bundled here, is removed so the documented surface matches what actually runs:

  • Removed the sponsio refresh command (sponsio/refresh.py, prompts/refresh.md py+ts, the prompt refresh flow).
  • Removed sponsio scan's --trace / --trace-min-support / --trace-confidence-threshold options and the --emit-context trace summary.
  • Kept the dormant discover() trace-mining extension point (guarded import) so an alongside implementation still composes; stale comments updated.
  • Docs pruned across README (en/zh/ja), docs/reference/cli.md, OSS_PROMISE.md, oss-scope.md, observability.md, onboard-prompt.md, SKILL.md (py+ts), llms.txt; llms-full.txt regenerated.
  • Tests test_skill_doc_sync + test_emit_context_loop updated to the new surface.

Test plan

  • ruff check / ruff format --check (0.15.16): clean
  • pytest -q: 2337 passed, 2 skipped
  • (cd ts/packages/sdk && npm run build && npm test): build OK, all suites pass
  • sponsio demo --scenario freeze --fast: BLOCKED as expected
  • sponsio scan <dir> (code-only) and sponsio scan --emit-context (no trace_summary key) verified end-to-end

🤖 Generated with Claude Code

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>
@yfxiao16 yfxiao16 merged commit dc3ad2e into main Jun 15, 2026
10 checks passed
@yfxiao16 yfxiao16 deleted the remove-trace-mining-surface branch June 15, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant