STATE-WP-0070 T03: remove legacy workstream MCP aliases
Meter-gated removal (7 consecutive zero-usage windows reached). Deletes:
- MCP tools: create_workstream, list_workstreams, update_workstream,
update_workstream_status
- MCP resource: state://workstreams/{topic_slug}
- Dead helpers: _LEGACY_MCP_* maps, _legacy_mcp_deprecation,
_meter_legacy_mcp, _attach_legacy_deprecation, _update_workplan_legacy_impl
TOOLS.md keeps a retired→preferred migration map (per backlog). Removed the
now-dead STATEHUB_MCP_LEGACY_METER guard in conftest. Retargeted the
create_workplan error-skip test to the preferred tool; dropped alias-only tests.
Staged on branch state-wp-0070-legacy-retirement — do not merge until the 7th
documented zero-usage window is captured.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
1acad4c02c
commit
ef62cb3872
5 changed files with 28 additions and 328 deletions
|
|
@ -23,10 +23,6 @@ from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_asyn
|
|||
# Make api/ importable when running pytest from state-hub/
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
|
||||
# Tests exercising legacy MCP aliases must not record real usage on the live
|
||||
# legacy meter — that would reset zero-window retirement streaks every run.
|
||||
os.environ.setdefault("STATEHUB_MCP_LEGACY_METER", "off")
|
||||
|
||||
_ASYNC_URL = os.getenv(
|
||||
"TEST_DATABASE_URL",
|
||||
"postgresql+asyncpg://custodian:changeme@127.0.0.1:5432/custodian_test",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue