Option C Tools
Loading...
Searching...
No Matches
tests_mcp.test_mcp_policy Namespace Reference

Classes

class  TestToolManifest
class  TestToolSpec
class  TestMcpPolicyConstructor
class  TestMcpPolicyDefault
class  TestMcpPolicySafeMode
class  TestMcpPolicyAirgapped
class  TestMcpPolicyStrict
class  TestPolicyDecision

Variables

dict _PHASE_5A_TOOLS
dict _PHASE_5B_TOOLS

Detailed Description

Purpose
-------
Regression tests for :mod:`oct.mcp.policy` — ``TOOL_MANIFEST``,
``ToolSpec``, ``McpPolicy``, and ``PolicyDecision``.

Responsibilities
----------------
- Verify all profile behaviours (default, strict, airgapped).
- Verify safe_mode enforcement and unknown tool rejection.
- Verify manifest completeness for registered tools.

Diagnostics
-----------
Domain: MCP-TESTS
Levels:
    L2 — test lifecycle
    L3 — assertion details
    L4 — deep tracing

Contracts
---------
- Tests are in-memory policy checks; no subprocess or filesystem writes.

Variable Documentation

◆ _PHASE_5A_TOOLS

dict tests_mcp.test_mcp_policy._PHASE_5A_TOOLS
protected
Initial value:
1= {
2 "oct_lint", "oct_health", "oct_skeleton", "oct_deps",
3 "oct_test", "oct_typecheck", "oct_diag",
4 "oct_git_status", "oct_git_check",
5}

Definition at line 46 of file test_mcp_policy.py.

◆ _PHASE_5B_TOOLS

dict tests_mcp.test_mcp_policy._PHASE_5B_TOOLS
protected
Initial value:
1= {
2 "oct_format", "oct_docs", "oct_export_source", "oct_new",
3 "oct_scaffold", "oct_clean", "oct_install_hooks",
4 "oct_git_commit", "oct_git_hooks_install", "oct_git_init",
5 "oct_git_changelog",
6}

Definition at line 52 of file test_mcp_policy.py.