forked from cleveragents/cleveragents-core
fix(lint): narrow docstring tables to 88-char line limit
Fix 25 E501 line-too-long violations in RST/markdown docstring tables across resource.py, tool.py, models.py, and lifecycle.py. Also fix invalid test expectation in project_commands_coverage.feature where project list with no database was expected to abort but now succeeds with an empty list after the redesign.
This commit is contained in:
@@ -23,13 +23,13 @@ devops/docker-build
|
||||
|
||||
## Source Types
|
||||
|
||||
| Source | Description | Required Fields |
|
||||
|-------------|----------------------------------|--------------------------|
|
||||
| ``mcp`` | Delegates to an MCP server | ``mcp_server/tool_name`` |
|
||||
| ``agent_skill`` | Agent Skills Standard folder | ``agent_skill_path`` |
|
||||
| ``builtin`` | Provided by the runtime | (none) |
|
||||
| ``custom`` | Inline Python code | ``code`` |
|
||||
| ``wrapped`` | Validation-only; wraps a tool | (set via Validation) |
|
||||
| Source | Description | Required Fields |
|
||||
|--------|-------------|-----------------|
|
||||
| ``mcp`` | Delegates to MCP server | ``mcp_server``, ``mcp_tool_name`` |
|
||||
| ``agent_skill`` | Agent Skills folder | ``agent_skill_path`` |
|
||||
| ``builtin`` | Provided by runtime | (none) |
|
||||
| ``custom`` | Inline Python code | ``code`` |
|
||||
| ``wrapped`` | Validation-only wrapper | (set via Validation) |
|
||||
|
||||
## Validation Modes
|
||||
|
||||
|
||||
@@ -5,20 +5,20 @@ Alembic migrations.
|
||||
|
||||
## Tables
|
||||
|
||||
| Table | Model | Description |
|
||||
|------------------------|----------------------------|------------------------|
|
||||
| ``actions`` | ``ActionModel`` | Action templates |
|
||||
| ``action_invariants`` | ``ActionInvariantModel`` | Invariant rules |
|
||||
| ``action_arguments`` | ``ActionArgumentModel`` | Typed arguments |
|
||||
| ``v3_plans`` | ``V3PlanModel`` | Plan lifecycle |
|
||||
| ``plan_projects`` | ``PlanProjectModel`` | Plan-project links |
|
||||
| ``plan_arguments`` | ``PlanArgumentModel`` | Plan argument values |
|
||||
| ``plan_invariants`` | ``PlanInvariantModel`` | Plan invariant rules |
|
||||
| ``resource_types`` | ``ResourceTypeModel`` | Resource type defs |
|
||||
| ``resources`` | ``ResourceModel`` | Resource instances |
|
||||
| ``resource_edges`` | ``ResourceEdgeModel`` | Resource DAG edges |
|
||||
| ``ns_projects`` | ``NamespacedProjectModel`` | Namespaced projects |
|
||||
| ``project_resource_links`` | ``ProjectResourceLinkModel`` | Project-resource |
|
||||
| Table | Model | Description |
|
||||
|-------|-------|-------------|
|
||||
| ``actions`` | ``ActionModel`` | Action templates |
|
||||
| ``action_invariants`` | ``ActionInvariantModel`` | Invariant rules |
|
||||
| ``action_arguments`` | ``ActionArgumentModel`` | Typed arguments |
|
||||
| ``v3_plans`` | ``V3PlanModel`` | Plan lifecycle |
|
||||
| ``plan_projects`` | ``PlanProjectModel`` | Plan-project links |
|
||||
| ``plan_arguments`` | ``PlanArgumentModel`` | Plan argument values |
|
||||
| ``plan_invariants`` | ``PlanInvariantModel`` | Plan invariant rules |
|
||||
| ``resource_types`` | ``ResourceTypeModel`` | Resource type defs |
|
||||
| ``resources`` | ``ResourceModel`` | Resource instances |
|
||||
| ``resource_edges`` | ``ResourceEdgeModel`` | Resource DAG edges |
|
||||
| ``ns_projects`` | ``NamespacedProjectModel`` | Namespaced projects |
|
||||
| ``project_resource_links`` | ``ProjectResourceLinkModel`` | Project-resource links |
|
||||
|
||||
Based on ADR-007 (Repository Pattern) and Phase 0 discovery.
|
||||
Includes spec-aligned lifecycle models per Stage A5
|
||||
|
||||
@@ -27,10 +27,10 @@ ToolRuntime
|
||||
|
||||
## Capability Enforcement
|
||||
|
||||
| Constraint | Condition | Error |
|
||||
|--------------------|----------------------------|-----------------------------|
|
||||
| Read-only plan | ``writes=True`` | ``ToolAccessDeniedError`` |
|
||||
| Checkpoint needed | ``checkpointable=False`` | ``ToolCheckpointRequired`` |
|
||||
| Constraint | Condition | Error |
|
||||
|------------|-----------|-------|
|
||||
| Read-only plan | ``writes=True`` | ``ToolAccessDeniedError`` |
|
||||
| Checkpoint required | ``checkpointable=False`` | ``ToolCheckpointRequiredError`` |
|
||||
|
||||
## Error Hierarchy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user