Commit Graph

704 Commits

Author SHA1 Message Date
HAL9000 6dee8a6bdf docs(spec): add v3.8.0 Server Implementation milestone plan section
- Add detailed v3.8.0 milestone plan with 15 deliverables, architectural constraints, and definition of done
- Update milestone status table with current issue counts (as of 2026-04-13)
- Add v3.9.0 Documentation & Maintenance to status table
- Update plan coverage from v3.7.0 to v3.8.0

Closes #8195 (supersedes the navigation-only approach with full section)

[AUTO-ARCH-3]
2026-04-28 09:25:56 +00:00
HAL9000 e6b14def5d docs: add troubleshooting guide, FAQ, and config reference [AUTO-DOCS-6]
- Create docs/guides/troubleshooting.md: comprehensive troubleshooting
  guide covering installation, LLM provider, database, plan execution,
  TUI, and test suite issues with step-by-step remediation
- Create docs/guides/faq.md: practical FAQ covering setup, actors,
  tools/skills, plans, testing, and contributing
- Create docs/guides/index.md: guides landing page with navigation table
- Expand docs/api/config.md: add complete CLEVERAGENTS_* env var
  reference, config file TOML format, actor YAML format, and action
  YAML format
- Update mkdocs.yml: add Guides section to site navigation
2026-04-28 09:25:55 +00:00
HAL9000 9cca148ed1 docs(tracking): clarify mandatory vs optional label requirements (#7664)
ISSUES CLOSED: #7664
2026-04-28 09:25:55 +00:00
HAL9000 d00abaee2f docs: add contributor guide and documentation index to README [AUTO-DOCS-5]
Created docs/development/contributor-guide.md with comprehensive practical workflow guidance covering prerequisites, fork/clone workflow, branch naming, commit format, pre-commit hooks, test suite, BDD test writing, code style, type checking, ADR process, PR checklist, and review process.

Extended README.md Documentation section with a Documentation Index table linking all major documentation resources. All existing README content preserved intact.
2026-04-28 09:25:54 +00:00
HAL9000 688de43aa8 docs(plan-cli): ensure plan tree ULID examples match full length
ISSUES CLOSED: #7674
2026-04-28 09:25:54 +00:00
HAL9000 005b13ccba docs(spec): clarify sandbox path containment, datetime comparison, and plugin validation contracts
Three implementation contracts clarified in response to security/correctness
bugs surfaced by the bug hunt pool:

1. Path containment: Sandbox path validation MUST use Path.is_relative_to()
   not string prefix comparison. String prefix allows /tmp/sandboxmalicious
   to pass a /tmp/sandbox root check. Canonical implementation provided.

2. Datetime handling: All stored ISO timestamp comparisons MUST parse back
   to timezone-aware datetime objects before comparing. String comparison
   of ISO timestamps is incorrect when timezone offsets differ in format.
   Canonical parse_utc_ts() pattern provided.

3. Plugin protocol validation: Protocol compliance MUST be checked
   structurally via issubclass() — never by instantiating the plugin class.
   Instantiation runs __init__ side effects before the plugin is approved.

These are minor clarifications (implementation contracts, not architectural
changes) added to the existing Security and Extensibility sections.
Updated CHANGELOG.md with entry for this documentation change.

Refs: BUG-HUNT issues #7336 (path traversal), #7341 (datetime comparison),
      #7331 (plugin instantiation)

ISSUES CLOSED: #7680
2026-04-28 09:25:54 +00:00
Repo Isolator 523bed0576 docs: organize CHANGELOG [Unreleased] section and update observability docs [AUTO-DOCS-4] 2026-04-28 09:25:54 +00:00
HAL9000 ab4ab3b152 docs: add getting-started guide and architecture overview [AUTO-DOCS-3] 2026-04-28 09:25:53 +00:00
HAL9000 acaea2ba1c docs: add API documentation (CLI reference, Python API, protocols) [AUTO-DOCS-2] 2026-04-28 09:25:53 +00:00
HAL9000 f414fd5666 docs(adr): add ADR-053 database repositories decomposition 2026-04-28 09:25:53 +00:00
HAL9000 472b6bce4d docs: add release notes for v3.0.0 and v3.1.0 milestones [AUTO-DOCS-1]
Created comprehensive formal release notes for the v3.0.0 (Minimal Local
Source-Code Workflow) and v3.1.0 (Actor Compiler + Full LLM Integration)
milestones, along with a release notes index.

New files:
- docs/release-notes/index.md: Index of all release notes with release
  series overview and guidance on how to read release notes
- docs/release-notes/v3.0.0.md: Full release notes for v3.0.0 covering
  plan lifecycle (Action→Strategize→Execute→Apply), git worktree sandbox,
  SQLite persistence, actor-based LLM path, ChangeSet tracking, Pydantic
  v2 domain models, CLI commands, and ADR references
- docs/release-notes/v3.1.0.md: Full release notes for v3.1.0 covering
  Actor YAML→LangGraph compilation, MCP adapter, validation runner,
  multi-file generation, skill registry, Agent Skills standard, LSP
  integration, breaking changes, and migration guide

Updated CHANGELOG.md:
- Expanded [3.0.0] section with detailed bullet points for each major
  feature, ADR references, and a link to the full release notes
- Expanded [3.1.0] section with detailed bullet points for each major
  feature, ADR references, breaking changes, and a link to the full
  release notes
2026-04-28 09:25:53 +00:00
HAL9000 276c210043 docs(timeline): [AUTO-TIME-1] Day 103 cycle 4 refresh — cumulative scope +108 issues, M6 progress 2026-04-28 09:25:53 +00:00
HAL9000 37246e4c11 docs(timeline): [AUTO-TIME-1] Day 103 cycle 3 refresh — cumulative scope +81 issues 2026-04-28 09:25:53 +00:00
HAL9000 408dc65664 docs(timeline): [AUTO-TIME-1] Day 103 cycle 2 refresh — scope expansion +66 issues, +22 PRs 2026-04-28 09:25:53 +00:00
HAL9000 5b44412d5f docs(timeline): [AUTO-TIME-1] update schedule adherence Day 103 (2026-04-13) — Session 5 active 2026-04-28 09:25:53 +00:00
HAL9000 68e0ae8dba docs(timeline): [AUTO-TIME-1] update schedule adherence Day 103 (2026-04-13) — Session 5 active 2026-04-28 09:25:52 +00:00
HAL9000 a259d92472 docs(spec): update validation attach synopsis and project delete output
- Update validation attach synopsis from [<ARGS>...] to [--<key> <value>]...
- Update arguments description to document named option format
- Update inline references to use named option format
- Update management table to reflect named option format
- Add deleted_at field to project delete JSON and YAML output examples

These changes document the behavior implemented in PR #3837 (validation attach
named options) and PR #6639 (project delete deleted_at field).

ISSUES CLOSED: #7533
2026-04-28 09:25:52 +00:00
HAL9000 49722ca38b docs(adr): add ADR-049 through ADR-052 resolving architecture violations
Document four architecture decisions that resolve violations detected by
the automated guard scan:

- ADR-049: Introduce SandboxGateway protocol in the domain layer to
  eliminate resource handler imports from infrastructure (issue #8058)
- ADR-050: Canonicalize plan identifiers to ULID strings across all
  application-layer services, removing integer surrogate ID leakage
  (issue #8059)
- ADR-051: Decompose PlanLifecycleService (2,649 lines) into eight
  focused modules each ≤500 lines, compliant with CONTRIBUTING.md
  (issue #8061)
- ADR-052: Replace placeholder assert-True BDD steps with real
  lifecycle assertions that verify observable behavior (issue #8062)

ISSUES CLOSED: #8058, #8059, #8061, #8062
2026-04-28 09:25:50 +00:00
HAL9000 3f7f80a61c docs(timeline): [AUTO-TIME-1] update schedule adherence Day 103 cycle-1 2026-04-28 09:25:50 +00:00
HAL9000 cdbd0845ed docs(timeline): update schedule adherence Day 103 (2026-04-13) 2026-04-28 09:25:50 +00:00
HAL9000 0c8193458e docs(spec): clarify resource event types — add RESOURCE_CREATED, RESOURCE_DELETED, RESOURCE_MOVED 2026-04-28 09:25:50 +00:00
CleverAgents Bot b570abe504 docs(reference): document empty-run guard for ApplyValidationSummary (PR #7786)
- Add empty-run guard section to ApplyValidationSummary explaining that
  all_required_passed now returns False when is_empty is True
- Add required_total property to the properties list
- Add is_empty column to ValidationSummary model table
- Include behaviour table showing all three gate outcomes
- Document why the guard matters (silent bypass of apply gate)

Closes #7508 documentation gap.
2026-04-28 09:25:49 +00:00
HAL9000 701ffb5cf9 docs(spec): document ReconciliationBlockedError and invariant reconciliation failure behavior
The spec described invariant reconciliation as happening 'during Strategize'
only. The implementation (PR #5614) runs reconciliation at all three phase
transitions: Strategize, Execute, and Apply.

Added §Reconciliation Failure Behavior documenting:
- Reconciliation runs at start_strategize(), execute_plan(), apply_plan()
- ReconciliationBlockedError is raised when reconciliation fails
- INVARIANT_VIOLATED event is emitted on the event bus
- Resolution path: plan correct + retry
- Post-correction reconciliation via CORRECTION_APPLIED event subscription
- Built-in actor: builtin/invariant-reconciliation

Closes #5942
2026-04-28 09:25:48 +00:00
HAL9000 82b4401e44 docs(timeline): update schedule adherence Day 102 (2026-04-12)
Refresh Day 102 entries using Forgejo telemetry to capture scope expansion,
milestone progress, and active session data.

- Update today marker to 2026-04-12 in both Gantt charts
- Update Gantt update log for Day 102 (cycle 1)
- Update footer date and open PR count (225→257)
- Update Current Status Summary for Day 102
- Append Day 102 schedule adherence tables for milestones and tracks
- Note key merges: dual-account PR review arch, curl-only reviewer,
  spec Section 22, ATM centralization, supervisor fresh-launch fix
- Milestone scope growth: M3 770→948, M4 220→233, M5 313→345,
  M6 1085→1181, M7 400→433, M8 944→956, M9 475→489

ISSUES CLOSED: #7912
2026-04-28 09:25:48 +00:00
HAL9000 a182233f6a docs(modules): add git worktree sandbox module documentation
Comprehensive module reference for GitWorktreeSandbox (v3.5.0, PR #5998):
- Lifecycle state machine diagram with complete state transitions
- Key classes: GitWorktreeSandbox, SandboxContext, CommitResult, SandboxStatus
- Branch naming convention with sanitisation examples
- Error handling table including ValueError for git_timeout <= 0
- Rollback behaviour (pre-commit vs post-commit)
- Integration with PlanLifecycleService pseudocode
- Apply Summary output format
- Testing guidance referencing actual BDD feature files:
  features/git_worktree_sandbox.feature
  features/git_worktree_apply.feature
  features/git_worktree_coverage_boost.feature
- Updated CHANGELOG.md with entry under [Unreleased] ### Added
- Updated CONTRIBUTORS.md with documentation contribution record

ISSUES CLOSED: #8051
2026-04-28 09:25:47 +00:00
HAL9000 fd3ac9b8f6 docs(spec): update plan tree to show full 26-char ULIDs for child plans
PR #6571 (merged) updated agents plan tree to display full 26-character
ULIDs for all child plan IDs instead of truncated 8-char prefixes. This
enables copy-paste usability for plan correct and plan tree commands.

Updated the spec to:
- Show full 26-char ULIDs in tree body for subplan_spawn entries
- Show full 26-char ULIDs in Child Plans table
- Show full 26-char ULIDs in JSON/YAML output plan_id fields
- Add a note documenting the full ULID display behavior and per-type
  ordinal labels in the Decision IDs panel

Closes #7898
2026-04-28 09:25:46 +00:00
HAL9000 de5ce29a9c docs(spec): align project delete JSON/YAML output with implementation
The implementation (PR #6639, merged 2026-04-10) produces a simpler
output for agents project delete than what the spec described:

  {"deleted": "local/docs", "success": true, "deleted_at": "..."}

The spec previously showed a rich deletion_summary/index_cleanup/backups
structure that does not match the actual implementation. Updated to
reflect the actual output including the deleted_at timestamp field.

Closes #7872
2026-04-28 09:25:45 +00:00
HAL9000 ac69cd2379 docs(spec): add Provider Registry and TUI Materializer sections; fix anchor mismatches
Added two missing specification sections required for v3.6.0 and v3.7.0 milestones:

1. Provider Registry (§Architecture → Extensibility): Full specification of
   ProviderRegistry class, AIProviderInterface protocol, auto-discovery mechanism
   via langchain-* package scanning, registration flow, error handling, and
   custom provider example. Resolves v3.6.0 Deliverable #11 spec gap.

2. TUI Materializer (§TUI): Full specification of TuiMaterializer class,
   ElementHandle→Textual widget mapping table, A2A event subscription table,
   CLI/TUI parity model, and session binding. Resolves v3.7.0 Deliverable #7
   spec gap.

Also fixed 9 anchor-name mismatches that caused broken in-page links in
rendered MkDocs documentation:
- #decision-tree-and-correction → The Plan Decision Tree and Visualization
- #invariant-system → Layer 3: Invariant Enforcement
- #validation-abstraction → Validation
- #subplan-architecture → Plan Hierarchy and Parallelism
- #checkpoint-and-rollback → Checkpointing in Execute
- #merge-strategies → Child Plan Result Merging
- #correction-model → Correcting Plans (Core Feature)
- #guard-enforcement → Automation Guard Sub-Model
- #event-queue → Event System

Updated milestone status counts to reflect current Forgejo state (2026-04-12).
2026-04-28 09:25:44 +00:00
HAL9000 71b5002814 docs: align guard spec with lifecycle states 2026-04-28 09:25:43 +00:00
HAL9000 4839aaca95 docs(spec): fill critical gaps for milestones v3.2.0–v3.7.0
Add missing spec sections identified during architecture review:

Critical gaps resolved:
- Add `agents plan guard` CLI command to synopsis and command reference
  (v3.5.0 Deliverable 12 — was referenced but had no spec)
- Add `agents tui` and `agents tui web` CLI commands to synopsis and
  command reference (v3.7.0 Deliverables 1, 18 — absent from CLI index)
- Add `### Merge Strategies` section with git three-way merge algorithm,
  MergeWorkflow component, MergeResult/MergeConflict data models, and
  conflict resolution UX (v3.3.0 Deliverables 5, 6)
- Add `### Autonomy Acceptance` section with formal acceptance criteria,
  reference task specification, and Robot Framework acceptance test
  (v3.5.0 Deliverable 10)

Moderate gaps resolved:
- Add `### Guard Enforcement` section with GuardEnforcer component,
  guard evaluation order, guard sources, and violation behavior table
  (v3.5.0 Deliverable 3)
- Add `### Event Queue` section with event types, event schema,
  publish/subscribe API, and local vs. server mode behavior
  (v3.5.0 Deliverable 2)
- Add `### TUI Materializer` section with ElementHandle→widget mapping,
  TuiMaterializer interface, A2A integration, and thread safety
  (v3.7.0 Deliverable 7)
- Add `### Provider Registry` section with built-in providers, custom
  provider YAML, auto-discovery, and ProviderRegistry API
  (v3.6.0 Deliverable 11)
- Add `### Testing Strategy — E2E` section with Robot Framework test
  structure, required E2E coverage table, and shared keywords
  (v3.6.0 Deliverable 15)

Minor fixes:
- Fix broken anchor links in milestone spec coverage references
- Update v3.2.0 spec coverage to point to actual section headings
- Update v3.4.0 context storage tiers anchor to match actual heading
- Add `agents tui` commands to `#### agents tui` command reference section
2026-04-28 09:25:40 +00:00
HAL9000 ab0ea084d3 docs(timeline): update schedule adherence Day 102 (2026-04-12) 2026-04-28 09:25:39 +00:00
HAL9000 d28b9ba07a docs(timeline): update schedule adherence Day 101 (2026-04-11) 2026-04-28 09:25:39 +00:00
HAL9000 d44e41649d docs(spec): update validation attach synopsis and project delete output
- Change validation attach synopsis from positional [<ARGS>...] to named
  option [--<key> <value>]... format, matching PR #3837 implementation
  (Typer Context with allow_extra_args=True; positional key=value rejected)
- Update argument description to document hyphen-to-underscore normalization
- Update all inline references in Validation Attachment Scopes section and
  Validation Abstraction section to use named option format
- Add deleted_at timestamp field to project delete JSON/YAML output examples,
  matching PR #6639 implementation

Closes #7533
2026-04-28 09:25:38 +00:00
HAL9000 8ca039134c docs(timeline): refresh day 100 metrics
ISSUES CLOSED: #7977

# Conflicts:
#	docs/timeline.md
2026-04-28 09:25:38 +00:00
HAL9000 31ec3e7134 docs(timeline): update schedule adherence Day 100 (2026-04-10)
# Conflicts:
#	docs/timeline.md
2026-04-28 09:25:37 +00:00
HAL9000 fe74864082 docs(spec): clarify invariant CLI — add --non-overridable flag and --effective --action support
Two spec gaps were causing UAT failures (#7461, #7462):

1. agents invariant add: Add --non-overridable flag to CLI synopsis and
   argument list. The flag was documented in the conceptual section
   (Layer 3: Invariant Enforcement) but absent from the CLI command
   definition, causing implementers to omit it entirely.

2. agents invariant list: Clarify that --effective is valid with both
   --plan and --action (not only --plan). The synopsis already showed
   --effective without restriction, but the argument description said
   'Only with --plan', causing the implementation to reject
   --effective --action. Add example output for the --action --effective
   combination.

3. InvariantEnforcer code snippet: Fix precedence list to include
   'action' tier (plan > action > project > global), matching the
   four-tier precedence defined in the Invariant glossary entry.

Fixes: #7461, #7462 (spec gaps — implementation work tracked separately)
2026-04-28 09:25:37 +00:00
HAL9000 e53e3a5229 docs: dual-account PR review arch, ATM interval centralization, reviewer rename (Cycle 13 rebased) 2026-04-28 09:25:37 +00:00
HAL9000 6e5e28544a docs(spec): clarify invariant CLI completeness requirements
UAT findings #7461 and #7462 identified two spec-implementation gaps in
the invariant system:

1. Missing --non-overridable CLI flag (#7461):
   The spec defines 'agents invariant add --global --non-overridable'
   but the CLI raises 'No such option: --non-overridable'. System
   administrators cannot create non-overridable global safety constraints.

2. Action-scope omitted from --effective output (#7462):
   The spec defines four-tier precedence (plan > action > project > global)
   but InvariantService.get_effective_invariants() only merges plan/project/
   global, omitting action scope entirely. The --effective output also
   ignores non_overridable semantics.

Added 'CLI completeness requirements for invariants' section clarifying:
- --non-overridable flag MUST be implemented (global scope only)
- Action-scope MUST be included in --effective output
- non_overridable semantics MUST be correctly applied in --effective

Refs: UAT #7461, UAT #7462
2026-04-28 09:25:37 +00:00
HAL9000 b71ae9f7fb docs(timeline): update schedule adherence Day 99-100 (2026-04-09 to 2026-04-10) 2026-04-28 09:25:37 +00:00
HAL9000 a776f70337 docs(spec): clarify sandbox cleanup must re-discover directories on each scan
Bug #7443 found that CleanupService._get_sandbox_dirs() permanently caches
the list of sandbox directories from the first scan. Since the cleanup service
is a long-running singleton, sandboxes created after the first scan are never
discovered and never cleaned up.

Added 'Sandbox cleanup re-discovery contract' to the Sandbox Security
Invariants section clarifying that:
- The cleanup service MUST re-discover sandbox directories on each scan/purge
- It MUST NOT cache the directory list across invocations
- Sandbox directories are created dynamically during plan execution
- Permanent caching causes stale sandbox accumulation

Refs: bug #7443 (CleanupService stale sandbox directory cache)
2026-04-28 09:25:37 +00:00
HAL9000 0774a2f8d2 docs: document full ULID display in plan tree, add CHANGELOG entry for PR #6571
- docs/reference/plan_cli.md: add Full ULID Display section to agents plan tree
  documenting the change from truncated 8-char IDs to full 26-char ULIDs (PR #6571),
  including the new Decision IDs for correction section and updated examples showing
  direct use of tree output IDs in follow-up commands
- CHANGELOG.md: add Fixed entry for agents plan tree full ULID display (PR #6571)

ISSUES CLOSED: #7674
2026-04-28 09:25:36 +00:00
HAL9000 ea654997ec docs(spec): clarify fail_fast cancel semantics and A2A facade idempotency
Two spec gaps identified from UAT and bug hunt findings:

1. fail_fast cancel semantics (UAT #7394):
   The spec defined fail_fast as a SubplanConfig option but did not specify
   what state unstarted subplans should transition to when fail_fast triggers.
   UAT found that unstarted subplans end up in 'complete' state instead of
   'cancelled', which is a spec violation.

   Clarification: When fail_fast=true and a parallel subplan errors, all
   queued (not yet started) subplans MUST transition to 'cancelled' state.
   'cancelled' is semantically distinct from 'complete' — it means the
   subplan was never started due to a sibling failure.

2. A2A facade idempotency contract (bug #7389):
   The spec described A2A extension methods but did not specify that they
   must be idempotent. Bug found that _handle_plan_apply() raises
   InvalidPhaseTransitionError when called on an already-applied plan,
   breaking idempotency.

   Clarification: All _cleveragents/plan/* methods MUST be idempotent.
   Before invoking the underlying service, check the current plan phase.
   If already at or past the target phase, return current state without
   re-invoking. Raising InvalidPhaseTransitionError to the A2A caller
   is a spec violation.

Refs: UAT #7394, bug #7389
2026-04-28 09:25:36 +00:00
HAL9000 8330bdc97d docs(spec): clarify security mode must be cached at initialization time
Bug #7373 found that PermissionService.is_local_mode() reads the
CLEVERAGENTS_SERVER_MODE environment variable on every permission check
call. This creates a TOCTOU vulnerability: if any code path can modify
os.environ during a session, the security mode can be changed mid-session,
bypassing permission enforcement.

Added a 'Security mode initialization contract' to the Security section
clarifying that:
- Deployment mode (local vs. server) MUST be determined once at service
  initialization time and cached
- Never re-read from environment variables on each permission check
- PermissionService and any other mode-gating service must cache at init

Refs: bug #7373 (PermissionService.is_local_mode() TOCTOU vulnerability)
2026-04-28 09:25:36 +00:00
HAL9000 e7e7eedc4f docs: add git worktree sandbox guide, extend sandbox/plan-apply/context-tiers refs
- docs/modules/git-worktree-sandbox.md: new module guide for GitWorktreeSandbox
  (PR #5998) covering execute/apply phases, non-git fallback, conflict handling,
  and context hydration integration
- docs/reference/sandbox.md: add Strategy Selection section and Git Worktree
  Sandbox section documenting execute/apply phases and non-git fallback
- docs/reference/plan_apply.md: add Git Worktree Merge-Based Apply section with
  CLI output panels and fallback behaviour; update intro to reference PR #5998
- docs/reference/context_tiers.md: add Context Tier Hydration section documenting
  ContextTierHydrator (PR #4219), hydration algorithm, exclusion rules,
  configuration parameters, and LLMExecuteActor integration
- mkdocs.yml: add Git Worktree Sandbox to Modules nav
2026-04-28 09:25:34 +00:00
HAL9000 1876ecb3a3 docs(spec): clarify ACMS context tier hydration vs full indexing
The spec's 'Critical Design Decision' stated 'no on-demand indexing during
agent execution', but PR #4219 introduced context_tier_hydrator.py which
does exactly that — populating the in-memory ContextTierService from linked
project resources at the start of each plan execution.

This is a spec-implementation divergence that needed clarification:

- Context tier hydration is a lightweight file-read bridge (not full ACMS
  indexing). It populates the HOT tier with raw file content so the LLM
  has file context during plan execution.
- Full ACMS indexing (UKO ontology graphs, embeddings, persistent index)
  is what the 'no on-demand' principle applies to.
- When the full ACMS pipeline is implemented with persistent index state,
  hydration will be replaced by reading from the persisted index.

Added a note block under the Critical Design Decision explaining the
distinction, the hydration algorithm, and the relationship to the principle.

Refs: issue #7365 (spec update proposal from spec-updater agent),
      PR #4219 (fix(acms): wire ACMS indexing pipeline into CLI)
2026-04-28 09:25:33 +00:00
HAL9000 1477435e55 docs(spec): document GitWorktreeSandbox, ContextTierHydrator, and idempotent execute dispatch
Minor clarifications documenting implementation details discovered from merged PRs.

Changes:
1. GitWorktreeSandbox implementation details (Issue #6958, PR #5998):
   - Added 'Implementation class: GitWorktreeSandbox' note to §Sandbox Implementation Strategies
   - Documents worktree path (.worktrees/plan-<plan_id>) and branch naming (cleveragents/plan-<plan_id>)
   - Documents non-git fallback: filesystem_copy strategy using shutil.copy2

2. Idempotent execute dispatch (Issue #6958, PR #5998):
   - Added idempotency note to _cleveragents/plan/execute in §Complete Method Routing
   - Prevents duplicate dispatch errors in multi-agent scenarios

3. ContextTierHydrator (Issue #6953, PR #4219):
   - Added new §Context Tier Hydration subsection after §Three Storage Tiers
   - Documents ContextTierHydrator component: file discovery, fragment creation, injection point
   - Documents constructor injection pattern (no get_container() calls)
   - Documents sandbox root path (.cleveragents/sandbox/)
   - Added ContextFragment metadata type constraint warning (strings required in metadata dict)

All changes are minor clarifications — no new architectural decisions, no interface changes.

Closes #6953 (ContextTierHydrator documentation)
Closes #6958 (GitWorktreeSandbox documentation)

ISSUES CLOSED: #6953, #6958

---
Automated by CleverAgents Bot
Supervisor: Architecture Designer | Agent: AUTO-ARCH | Cycle: 2
2026-04-28 09:25:32 +00:00
HAL9000 f1fb3d5b53 docs(spec): add v3.8.0 Server Implementation milestone plan
ISSUES CLOSED: #7229
2026-04-28 09:25:30 +00:00
HAL9000 01c53f0249 docs: update documentation for v3.9.0 features and recent merges
- CHANGELOG.md: add entries for plan use UNIQUE constraint fix (#4197),
  validation attach named option format (#3837), container resource stop
  fix (#3250), agent system reorganization (18 supervisors, *-pool-supervisor
  naming), and PR review policy update (1 approval required)
- README.md: add git worktree sandbox and ACMS context hydration highlights
- docs/architecture.md: add Git Worktree Sandbox and ACMS Context Hydration
  sections with diagrams and cross-references
- docs/modules/git-worktree-sandbox.md: new module guide for the git worktree
  sandbox execute/apply lifecycle (PR #5998)
- docs/modules/context-tier-hydrator.md: new module guide for context tier
  hydration from project resources (PR #4219, fixes #1028)
- docs/development/automation-tracking.md: add pr-fix-pool-supervisor and
  pr-merge-pool-supervisor to agent prefix table
- mkdocs.yml: add git-worktree-sandbox and context-tier-hydrator to Modules nav

ISSUES CLOSED: #6933
2026-04-28 09:25:28 +00:00
HAL9000 c721d3a85c docs(spec): architecture cycle 25 — model_tier, autonomous shell blocking, in-actor compaction, uncertainty band escalation
Add spec coverage for four new architectural features:

1. Actor node model_tier field: Optional per-node model tier override (cheap/default/frontier)
   in graph route nodes. Tier-to-model mapping via new model.tiers.* config keys.
   Enables cost-optimised actor graphs without hardcoding model names.

2. Autonomous shell blocking: Safety Profile integration with ShellSafetyService.
   When allow_unsafe_tools=false and profile is headless (ci/full-auto), CRITICAL+HIGH
   shell patterns are hard-blocked rather than advisory. TUI remains advisory-only.

3. In-actor conversation history compaction: LangGraph actor runner hook that monitors
   accumulated message history and summarises old turns when threshold exceeded.
   Distinct from ACMS (which handles retrieval); this handles within-session accumulation.
   New actor.compaction.* config keys.

4. Uncertainty band LLM escalation: Optional two-stage AutonomyController augmentation.
   Stage 1 heuristic runs always (zero LLM cost). Stage 2 cheap LLM evaluator activates
   only when score falls within uncertainty band around threshold. Result caching and
   circuit breaker included. New escalation.classifier.* config keys.

Closes: #6765, #6763, #6761, #6760
ISSUES CLOSED: #6765, #6763, #6761, #6760
2026-04-28 09:25:28 +00:00
HAL9000 d7d3984af7 docs: drop context-tier hydrator overlap 2026-04-28 09:25:26 +00:00