Skip to content

Antctl+zen#3

Merged
ambled merged 3 commits into
mainfrom
antctl+zen
Dec 31, 2025
Merged

Antctl+zen#3
ambled merged 3 commits into
mainfrom
antctl+zen

Conversation

@ambled

@ambled ambled commented Dec 31, 2025

Copy link
Copy Markdown
Contributor

Create a new process manager to debug antctl failing to start a random node.

ambled and others added 3 commits December 30, 2025 22:46
Create new antctl+zen process manager that uses antctl defaults for paths.

Key features:
- Only specifies ports (node/metrics/rpc) and rewards address
- Lets antctl choose its own defaults for data, log, and binary paths
- Parses antctl add command output to extract actual paths
- Updates database with configuration from antctl
- Simplifies integration with antctl's native behavior

This approach provides better compatibility with antctl while maintaining
control over port assignments for router forwarding requirements.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit completes the integration of the AntctlZenManager into the
process manager factory and configuration system.

Changes:
- Factory integration: Added AntctlZenManager import and special routing
  for "antctl+zen" manager type in get_process_manager()
- Configuration support: Added "antctl+zen" to --process_manager choices
  with automatic user mode routing (zen only supports user mode)
- Mode detection: Updated _detect_process_manager_mode() to recognize
  "+zen" suffix as user mode for proper platform-specific path selection
- CHANGELOG: Added v0.4.0 release notes documenting the new zen manager

The zen manager provides a minimal command specification approach that
lets antctl choose its own defaults for binary, data, and log paths
while maintaining explicit control over ports for router forwarding.

Integration verified with factory instantiation tests.
Fixed SQLAlchemy session error when creating nodes with antctl+zen
process manager. The error "Instance is not bound to a Session"
occurred because the node object was created in one session (executor)
then passed to the manager which tried to add it to a new session.

Changed antctl_zen_manager.py to use session.merge() instead of
session.add() to properly handle detached node instances.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ambled
ambled merged commit 3579451 into main Dec 31, 2025
6 checks passed
@ambled
ambled deleted the antctl+zen branch December 31, 2025 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant