Commit Graph
40 Commits
Author SHA1 Message Date
AIOSAI 6ec992c97f update 2026-03-06 08:43:40 +00:00
AIOSAI f816f7200d update 2026-03-06 08:24:28 +00:00
AIOSAI 84cde96c3a docker.md add 2026-03-06 07:46:50 +00:00
AIOSAI 6829b3ed0e update 2026-03-06 07:28:01 +00:00
AIOSAI 751be2d30b ♻️ refactor(json_handler): update trigger root path calculation
- change trigger root to use resolved path parents for consistency
- improve path resolution to avoid reliance on home directory expansion
2026-03-05 22:46:04 -08:00
AIOSAI 430b5ecbac branch rewiring after math 2026-03-05 22:10:29 -08:00
AIOSAI 2140d4bc50 testing delete 2026-03-05 20:09:10 -08:00
AIOSAI 61b06aafba feat: create testing 2026-03-05 20:04:13 -08:00
AIOSAI ca993630d4 update 2026-03-06 03:47:17 +00:00
AIOSAIandClaude Opus 4.6 edc43ace3e Fix seedgo standard checkers for pip environment
- Replace hardcoded Path(__file__).parents[8] with walk-up registry finder
- Update prax import detection from Dev-Pass pattern to aipass.* namespace
- Fix BRANCH_REGISTRY_PATH undefined error in encapsulation_check
- Add .seed/ and tools/ to gitignore (runtime artifacts)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 19:46:05 -08:00
AIOSAIandClaude Opus 4.6 f6341c5f50 Fix seedgo README and silent failure in verify
- README: add real content (commands, architecture, pack docs,
  Last Updated date, seedgo_verify module mention)
- seedgo_verify: replace silent except:pass with error reporting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 19:23:26 -08:00
AIOSAIandClaude Opus 4.6 63627c1e81 Fix spawn/seedgo for pip environment: registry + discovery
- spawn: BRANCH_REGISTRY → AIPASS_REGISTRY, place at project root
  (finds pyproject.toml/.git instead of hardcoded paths)
- discovery: replace fragile parents[8] with walk-up search,
  resolve relative paths, support branch.py entry points,
  remove Dev-Pass fallback paths
- Ship pre-populated AIPASS_REGISTRY.json with 9 core modules
- Un-ignore registry from .gitignore (framework config, not state)

Tested: full spawn→registry→seedgo audit pipeline works in clean
Docker container with no Dev-Pass environment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 19:16:27 -08:00
AIOSAIandClaude Opus 4.6 d46f1a5006 🧹 chore: remove operational artifacts from tracking
Strip 230 spawn/runtime files from git tracking. These are generated
post-install (memories, dashboards, birth certs, agent metadata,
runtime JSON) — not source code. Updated .gitignore to prevent
re-tracking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 18:39:45 -08:00
AIOSAI dd383130f6 ♻️ refactor(meta): add consistent META headers across all files
- add standardized META block with name, description, version, created, modified dates
- unify metadata formatting for better maintainability and traceability
- introduce new meta_check standard handler for library-profile META validation
- update json_structure_check to support library-profile branch detection and path rules
- improve imports_check to enforce pip package import standards (no AIPASS_ROOT/sys.path hacks)
- refine documentation_check to remove META block validation (now in meta_check)
- clean up legacy code and comments related to META and import checks
- add meta standard to aipass standards list and pack manifest
2026-03-05 18:22:56 -08:00
AIOSAI dc83a85362 📦 build(pack_aipass): add new aipass standards pack with entry point
- add aipass pack manifest describing standards and metadata
- implement pack entry point for command routing and module discovery
- enable modular standard checks via auto-discovered modules
2026-03-05 17:48:13 -08:00
AIOSAI 019a69141e update 1 file, create 421 files and delete 4 files 2026-03-05 15:22:59 -08:00
AIOSAI 291331b3c3 ✨ feat(spawn): implement agent spawning from templates
- add spawn_agent function to create new agents with placeholders replaced
- support role, traits, purpose, profile overrides in spawning
- copy template files recursively, replacing placeholders in content and paths
- rename any remaining placeholder paths after copy
- regenerate .template_registry.json with fresh file hashes
- register new branch in BRANCH_REGISTRY.json with metadata
- validate no unreplaced placeholders remain in spawned files

✨ feat(spawn/file_ops): add template copy and rename utilities

- implement copy_template to recursively copy templates with placeholder replacements
- skip undesired files and directories during copy (e.g. __pycache__, .git)
- implement rename_placeholder_paths to rename files/directories containing branch placeholders

✨ feat(spawn/placeholders): add placeholder replacement engine

- implement replace_placeholders to substitute {{PLACEHOLDER}} patterns in strings
- build_replacements_dict generates full placeholder map including date, branch names, role, traits, purpose
- validate_no_placeholders scans spawned files to detect unreplaced placeholders

✨ feat(spawn/metadata): add branch name extraction and profile detection

- get_branch_name extracts branch folder name from target path
- normalize_branch_name converts branch name to uppercase or lowercase with underscores
- detect_profile determines AIPass profile from folder path heuristics

✨ feat(spawn/registry): implement BRANCH_REGISTRY.json CRUD

- find_registry locates registry file by walking up directories or defaults
- load_registry loads or initializes registry JSON with metadata and branches list
- save_registry writes registry JSON with updated timestamp and sorted branches
- add_to_registry adds a new branch entry, avoiding duplicates

✨ feat(spawn/__init__): expose spawn_agent API

- add docstring usage example for spawn_agent import and usage
- import spawn_agent from spawn module and export in __all__

✨ style(spawn/templates): update agent.template files for placeholder integration

- replace hardcoded branch names and dates with placeholders like {{BRANCHNAME}} and {{DATE}}
- clean up dashboard and flow local JSON files to use placeholders
- remove deprecated artifact_7_cortex_birth_certificate.json file
- add birth_certificate.json artifact template with placeholders

✅ test(spawn): add comprehensive tests for spawn module

- test metadata functions for branch name extraction and normalization
- test placeholder replacement dict building and validation
- test registry loading, adding entries, and duplicate prevention
- test full spawn_agent workflow including file creation, registry update, and placeholder validation
- test error handling for existing target directory
- test regeneration of .template_registry.json after spawn
2026-03-05 14:21:45 -08:00
AIOSAI 5aa8db5d0b 🐛 chore(spawn/templates/agent_mock_branch): remove deprecated modules and tests
- delete all deprecated aipass modules: api, assistant, citizenship, devpulse,
  drone, flow, mail, seedgo, skills, trigger, templates, and tests
- remove seedgo config and coverage files no longer used
- cleanup tests for drone CLI, compliance, core, integration, modules, phase2,
  seedgo CLI, core, plugins, silent failure detection, file module size, paths,
  and version to reduce maintenance burden
- add new agent_mock_branch spawn template with scaffold files, config, and
  verification tool for branch consistency checks
- add comprehensive .registry_ignore.json and .backup_ignore.json to exclude
  unwanted files from branch updates and backups
- include branch README, artifacts, docs, logs, pytest setup, tools, tests, and
  standard bypass configs for new agent mock branch template
- rename and reorganize template files from branch_template to spawn/templates
  agent.template for consistent naming and usage
2026-03-05 13:03:38 -08:00
AIOSAI e13fd4c5c3 ♻️ refactor(aipass): rename memory module to citizenship module
- rename directories and files from memory to citizenship for clarity
- update related template hidden folders from .cotrex to .agents
2026-03-05 02:47:00 -08:00
AIOSAI 5c145e73b0 ♻️ refactor(templates): rename cortex branch_template to agents branch_template
- move all files and folders from cortex branch_template to agents branch_template
- keep file structure and contents unchanged during rename
- add new empty files for docs, logs, and json placeholders in agents branch_template
2026-03-05 02:32:57 -08:00
AIOSAI d43ff41978 🔧 chore(.claude): add initial claude config, hooks, and settings
- add .claude/.gitignore to exclude local claude files and caches
- add .claude/commands/memo.md with memory update instructions
- add notification, stop, tool_use, and branch_prompt_loader hooks scripts
- add .claude/settings.json configuring permissions and hooks integration
- add .gitattributes for text normalization and binary file handling

✨ feat(src/aipass): introduce multi-agent orchestration framework structure

- add core aipass package with version 2.0.0 and repo link
- add submodules for api, assistant, devpulse, drone, flow, mail, memory, prax, seedgo, skills, templates, trigger
- provide base module docstrings describing purpose and architecture
- add branch template for cortex branch with scaffolded files and verification tool
- remove legacy cortex module and seedgo standalone package to consolidate into aipass

✨ feat(src/aipass/drone): simplify drone module interface and routing system

- refactor drone module to expose main routing and resolution functionality
- remove CLI, registry, executor, resolver, router, modules, discovery, exceptions, and handlers files
- replace with minimal drone package exposing core routing and resolution API

✨ feat(src/aipass/templates/cortex/branch_template): add default branch template files

- add .backup_ignore.json to exclude large and unnecessary files from backups
- add .migrations.json for template structural migrations
- add .registry_ignore.json to exclude internal template files during updates
- add .template_registry.json tracking template files and directories with placeholders
- add default trinity memory files: local.json, observations.json, passport.json
- add DASHBOARD.local.json with autogenerated branch status
- add README.md describing branch purpose, architecture, commands, and integrations
- add apps/ package and branch.py entry point with auto-discovery routing
- add empty handlers/, modules/, plugins/ packages
- add artifacts/ with a birth certificate JSON
- add docs/, flow.local.md, logs/, pytest.ini, tests/ with conftest.py
- add tools/verify_branch.py for verifying branch consistency against template

🔧 chore(src/aipass/): remove deprecated packages and modules

- delete legacy cortex, paths, seedgo packages and their modules/plugins
- remove seedgo CLI and plugins from repo to focus on aipass core

✨ feat(src/aipass/templates/flow): add placeholder for planning and workflow management

✨ feat(src/aipass/templates/memory): add placeholder for memory scaffolding

✨ feat(src/aipass/templates/system): add placeholder for system files

✨ feat(src/aipass/trigger): add error detection and auto-dispatch module

- scaffold trigger package with handlers, modules, plugins for error matching and escalation

✨ feat(src/aipass/mail): add inter-branch messaging module with handlers, modules, plugins

✨ feat(src/aipass/memory): add unified memory system with trinity, agents, and bank submodules

✨ feat(src/aipass/prax): add monitoring and observability framework with handlers, modules, plugins

✨ feat(src/aipass/seedgo): add code standards framework skeleton

✨ feat(src/aipass/skills): add user-built add-ons infrastructure module

✨ feat(src/aipass/templates): add central template storage for plans, memory, and configs
2026-03-05 02:21:30 -08:00
AIPassandClaude b1fe460adf feat(seedgo): add silent-failure-detection and file-module-size plugins (#9)
Implements 2 High-priority Seed compliance checks:

**silent-failure-detection plugin:**
- Detects except: pass patterns that silently swallow exceptions
- Severity: ERROR (dangerous — hides bugs and failures)
- Catches bare except, Exception, and specific exception types with only pass
- Provides actionable fix hints: add logging or meaningful error handling
- 17 comprehensive tests

**file-module-size plugin:**
- Flags files exceeding 400 code lines (Seed threshold)
- Severity: WARNING (code smell, not always immediately fixable)
- Accurate line counting: excludes blanks, comments, and docstrings
- Smart fix hints based on file structure (classes, functions, mixed)
- 17 comprehensive tests

**Implementation details:**
- AST-based pattern matching for accuracy
- Follows existing plugin architecture (CheckResult, Severity)
- 478 total tests pass (34 new tests added)
- Both plugins pass Seed's own standards (80/100 score)

**Session 239** — Autonomous execution: Periodic wake identified High-priority Seed recommendations as highest-value work, deployed agent to implement, tested comprehensively.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-04 07:41:55 -08:00
AIPassandClaude e4622d700e feat(seedgo): enhance drone-compliance and add naming-convention plugin (#8)
Implement three priority improvements from seed review:

1. DRONE_MODULE key validation:
   - Add check for required keys (name, version, description)
   - Fail with ERROR severity if keys are missing
   - Extract helper function _get_missing_drone_module_keys()

2. get_introspective() check:
   - Add WARNING-level check for get_introspective() function
   - Recommended but not required for drone modules
   - Follows introspective pattern for module self-documentation

3. New naming-convention plugin:
   - Enforce PEP 8 naming conventions
   - Check snake_case for functions, variables, module names
   - Check PascalCase for classes
   - Check UPPER_CASE for module-level constants
   - Provide helpful conversion suggestions in fix hints

Test coverage:
- Update existing tests to include new checks
- Add tests for missing DRONE_MODULE keys (ERROR)
- Add tests for missing get_introspective (WARNING)
- All 444 tests pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-04 03:13:43 -08:00
AIPass 09423e8a0a Merge pull request #7 from AIOSAI/feat/rich-cli-formatting
feat(seedgo): add Rich formatting to CLI output
2026-03-02 23:37:50 -08:00
AIOSAIandClaude Opus 4.6 fc6f83b3e1 ✨ feat(seedgo): add Rich formatting to CLI output
Replace raw ANSI escape codes with Rich library for all human-facing
seedgo CLI output. Adds display.py module with styled components:
header panels, plugin result lines, check items with severity markers,
summary sections, and plugin tables.

- seedgo check: branded header, styled verdicts, hint formatting
- seedgo list: Rich table with bordered columns
- seedgo init: styled success message
- drone_adapter: use direct import instead of parsing CLI output
- Add rich>=13.0 as dependency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 23:29:54 -08:00
AIPass 44a4eb3701 Merge pull request #6 from AIOSAI/ai/drone-introspective-pattern
feat(drone): introspective pattern + module routing + drone compliance
2026-03-02 23:07:24 -08:00
AIOSAIandClaude Opus 4.6 b3067ff45a feat(drone): add introspective pattern — no-args discovery vs --help
Implements the internal AIPass navigation pattern:
- `drone @module` (no args) → introspective: shows what's connected
- `drone @module --help` → help: shows usage documentation

Seedgo introspective lists all discovered plugins with descriptions.
Modules that don't implement get_introspective() fall back to help.

442 tests pass. 5 new introspective tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 23:06:28 -08:00
AIOSAI 2435a70c79 ✨ feat(drone): add internal module routing system for drone commands
- introduce drone module registry with metadata and command routing
- add seedgo as a registered internal drone module with adapter
- update drone CLI to route commands to modules or branches by @target
- enhance `drone systems` to list registered modules with descriptions
- provide module help integration alongside branch help

✨ feat(seedgo): create drone adapter for seedgo module commands
- implement handle_command forwarding to seedgo CLI subprocess
- provide get_help function with command-specific help text
- support commands: check, audit, list, init with options and examples

✨ feat(seedgo): add __main__.py to support `python -m seedgo` execution

✨ feat(seedgo plugin): add drone-compliance plugin to verify drone adapter compliance
- checks existence of drone_adapter.py and required interface elements
- validates presence of DRONE_MODULE dict, handle_command(), and get_help()
- reports compliance results with pass/fail and score with detailed checks
- skips non-target packages and handles syntax errors gracefully

✅ test(drone modules): add comprehensive tests for drone module registry and routing
- test listing, info retrieval, command routing, and help retrieval
- test CLI integration for `drone systems` and `drone @seedgo` commands
- verify module priority over branch routing and error handling

✅ test(seedgo drone compliance): add tests for drone-compliance plugin
- test passing cases with proper adapter and interface
- test failures for missing adapter, metadata, or functions
- test warnings for missing get_help function
- test skipping non-target packages and file-not-found cases
- test handling of syntax errors in adapter files
2026-03-02 22:44:41 -08:00
AIPass ea39879faf Merge pull request #5 from AIOSAI/ai/drone-cli-v1.0.0
feat(drone): Rename routing → drone + CLI entry point
2026-03-02 22:15:26 -08:00
AIOSAIandClaude Opus 4.6 866b0596aa feat(drone): rename routing → drone and add CLI entry point
BREAKING: aipass.routing renamed to aipass.drone. Routing IS drone —
the command routing engine IS the CLI command center. No reason to
keep them separate.

Adds `drone` CLI entry point:
  drone systems          — list registered branches
  drone @branch command  — route command to branch
  drone @branch --help   — get branch help
  drone --version        — show version

406 tests pass (20 new CLI tests). All imports updated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 22:14:32 -08:00
AIPass a46c0e150c Merge pull request #3 from AIOSAI/ai/paths-module-v1.0.0
feat(paths): AIPass Paths Root Resolution Module v1.0.0
2026-03-01 22:58:28 -08:00
AIOSAIandClaude Opus 4.6 34247bd373 fix(tests): remove unused imports and variable in test_paths
Fixes ruff F401 (unused os import, unused _get_root_direct alias) and
F841 (unused parent variable) that caused CI lint failure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 22:57:55 -08:00
AIOSAIandClaude Opus 4.6 c5126b300c feat(paths): add aipass-paths root resolution module v1.0.0
Foundation package with zero external dependencies. Implements 3-tier
AIPASS_ROOT resolution: env var → .aipass/ marker walk → ~/.aipass/ default.
Includes derived path helpers (system_logs_dir, branch_registry_path,
branch_path, branch_logs_dir). 32 tests, full coverage.

Also positions placeholder modules (cortex, mail, prax) with documented
intent for upcoming implementation. Version bumped to 1.0.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 22:56:24 -08:00
AIPass 155f57aaf5 Merge pull request #2 from AIOSAI/ai/seedgo-v1.0.0
feat(seedgo): add Seed Go portable standards framework v1.0.0
2026-03-01 20:26:49 -08:00
AIOSAIandClaude Opus 4.6 a295e18b03 fix(seedgo): resolve ruff lint errors in test files
- Remove sys.path.insert() blocks from test files (E402) — package is
  installed via pip install -e . so path manipulation is unnecessary
- Move import importlib.util and import subprocess to top of file (E402)
- Remove unused sys import from test_seedgo_core.py (F401)
- Fix undefined _src_path reference in test_seedgo_cli.py (F821)
- Remove unused result variable assignment in TestCLIInit (F841)
- Remove extraneous f prefix from f-string in cli.py (F541)

All 249 tests pass. Zero ruff violations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 20:25:28 -08:00
AIOSAIandClaude Opus 4.6 ba51e747cf feat(seedgo): add Seed Go portable standards framework v1.0.0
Complete implementation of a plugin-based code standards checker.

Core Framework:
- CheckResult/CheckItem/Severity data models
- Three-source plugin discovery (builtin, entry_points, local)
- Config system (.seedgo/config.json) with profiles and overrides
- Severity-weighted scoring (errors block, warnings degrade, info reports)

CLI:
- seedgo init — create project config
- seedgo check — run all enabled plugins
- seedgo list — show available plugins
- Three output formats: human, json, github (CI annotations)

5 Starter Plugins:
- no-bare-except, type-hints-required, docstring-coverage
- function-length (no linter equivalent)
- file-structure (no linter equivalent)

354 tests, all passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 20:25:28 -08:00
AIPass eebd71780b Merge pull request #1 from AIOSAI/ai/routing-module-v1.0.0
feat(routing): Routing & Discovery module v1.0.0
2026-03-01 20:23:29 -08:00
AIOSAIandClaude Sonnet 4.6 002bcb672f fix(routing): remove unused imports to pass CI lint
Remove unused `pathlib.Path` and `RegistryNotFoundError` from resolver.py
and unused `tempfile` from test_routing_core.py, resolving ruff F401 errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 20:21:03 -08:00
AIOSAIandClaude Opus 4.6 78ae5f63b6 feat(routing): add Routing & Discovery module v1.0.0
Complete implementation of symbolic @branch addressing for multi-agent systems.

Phase 1 — Core Routing:
- Registry management (BRANCH_REGISTRY.json)
- Symbolic resolution (@branch → absolute path)
- Branch lifecycle (register, list, exists, info)
- Configuration (env vars, custom paths)

Phase 2 — Command Routing:
- route_command() — execute commands on remote branches
- Safe subprocess execution (no shell=True)
- Module discovery (--help parsing + filesystem scan)

Phase 3 — Help System & Release Prep:
- HelpResult dataclass (structured help output)
- get_system_help() — aggregate help across all branches
- route_all() — broadcast commands to all active branches
- Complete API documentation (docs/api.md)
- pyproject.toml configured for PyPI (v1.0.0)
- trinity-pattern moved to optional dependency

106 tests, all passing. Ready for PyPI publication.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 12:37:05 -08:00
AIOSAIandClaude Opus 4.6 b564248de2 feat: initial repository scaffold
- README with project overview
- pyproject.toml with trinity-pattern dependency
- src/aipass/ package with version
- Basic CI workflow (Python 3.10-3.13, ruff, pytest)
- MIT license

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 08:04:44 -08:00