systems-manager 2.2.5__tar.gz → 2.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {systems_manager-2.2.5 → systems_manager-2.2.7}/.pre-commit-config.yaml +11 -23
- {systems_manager-2.2.5 → systems_manager-2.2.7}/AGENTS.md +11 -11
- {systems_manager-2.2.5 → systems_manager-2.2.7}/PKG-INFO +14 -15
- {systems_manager-2.2.5 → systems_manager-2.2.7}/README.md +9 -10
- {systems_manager-2.2.5 → systems_manager-2.2.7}/mkdocs.yml +2 -2
- systems_manager-2.2.7/pyproject.toml +108 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/release-readiness.json +1181 -2255
- {systems_manager-2.2.5 → systems_manager-2.2.7}/requirements.txt +1 -1
- systems_manager-2.2.7/systems_manager/__init__.py +16 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/bmc_credentials.py +1 -1
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/connector_sources.py +1 -21
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/kg_ingest.py +3 -3
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/mcp_server.py +22 -20
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/ontology/__init__.py +2 -2
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/ontology/certification.json +5 -5
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/os_provider_tools.py +25 -7
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/skills/nic-bond-provisioner/SKILL.md +1 -1
- systems_manager-2.2.7/systems_manager/skills/systems-manager-development/SKILL.md +146 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/storage_tools.py +1 -1
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/systems_manager.py +3 -4
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager.egg-info/PKG-INFO +14 -15
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager.egg-info/SOURCES.txt +1 -1
- systems_manager-2.2.7/systems_manager.egg-info/entry_points.txt +7 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager.egg-info/requires.txt +3 -3
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_default_content_surfaces.py +3 -7
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_fleet_name.py +3 -3
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_kg_ingest.py +5 -3
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_mcp_routing.py +5 -1
- systems_manager-2.2.7/tests/test_mcp_server.py +28 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_tools_classified.py +1 -1
- systems_manager-2.2.5/pyproject.toml +0 -80
- systems_manager-2.2.5/scripts/security_sanitizer.py +0 -246
- systems_manager-2.2.5/systems_manager/__init__.py +0 -5
- systems_manager-2.2.5/systems_manager.egg-info/entry_points.txt +0 -13
- systems_manager-2.2.5/tests/test_mcp_server.py +0 -36
- {systems_manager-2.2.5 → systems_manager-2.2.7}/CHANGELOG.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/CLAUDE.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/LICENSE +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/MANIFEST.in +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/mcp_config.json +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/opencode.json +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/scripts/check_release_artifacts.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/setup.cfg +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/__main__.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/agent_data/CRON.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/agent_data/HEARTBEAT.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/agent_data/IDENTITY.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/agent_data/NODE_AGENTS.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/agent_data/icon.png +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/connectors/__init__.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/k8s_detect.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/mcp/__init__.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/models.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/ontology/fixtures/records.json +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/ontology/mappings/source.yaml +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/ontology/migrations/manifest.json +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/ontology/shapes/connector.shacl.ttl +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/ontology/systems.ttl +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/os_provider.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/prompts/__init__.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/skills/__init__.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/skills/ipmi-bmc-manager/SKILL.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/skills/ipmi-bmc-manager/references/cheatsheet.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/skills/nic-bond-provisioner/references/recovery.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/skills/nic-bond-provisioner/scripts/apply-bond.sh +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/skills/nic-bond-provisioner/scripts/gen-bond-config.sh +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/skills/systems-manager-operations/SKILL.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/skills/systems-manager-operations/agents/openai.yaml +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/skills/systems-manager-operations/references/catalog.md +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/storage_health.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager/sudo_helper.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager.egg-info/dependency_links.txt +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/systems_manager.egg-info/top_level.txt +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/__init__.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/conftest.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/health_check2.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_file_manager.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_init.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_init_dynamics.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_k8s_detect.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_k8s_lifecycle_guard.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_linux_managers.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_main.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_mcp_security_policy.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_os_provider.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_os_provider_tools.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_platform_managers.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_security_boundaries.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_storage_health.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_sudo_helper.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_systems_manager_base.py +0 -0
- {systems_manager-2.2.5 → systems_manager-2.2.7}/tests/test_windows_manager.py +0 -0
|
@@ -64,15 +64,18 @@ repos:
|
|
|
64
64
|
rev: f96ec7f3b26a32619435686eb5813235f7e3327e # frozen: 1.9.1
|
|
65
65
|
hooks:
|
|
66
66
|
- id: nbqa-ruff
|
|
67
|
-
- repo:
|
|
67
|
+
- repo: https://github.com/Knuckles-Team/pipelines
|
|
68
|
+
rev: main
|
|
68
69
|
hooks:
|
|
70
|
+
- id: connector-standard
|
|
71
|
+
- id: secrets
|
|
72
|
+
- id: spec
|
|
73
|
+
stages: [pre-push]
|
|
74
|
+
- id: tests-fast
|
|
75
|
+
stages: [pre-push]
|
|
69
76
|
- id: dependency-readiness
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
language: system
|
|
73
|
-
pass_filenames: false
|
|
74
|
-
always_run: true
|
|
75
|
-
stages: [manual, pre-push]
|
|
77
|
+
- repo: local
|
|
78
|
+
hooks:
|
|
76
79
|
- id: mermaid-validate
|
|
77
80
|
name: mermaid-validate
|
|
78
81
|
entry: mermaid-validate
|
|
@@ -89,7 +92,7 @@ repos:
|
|
|
89
92
|
always_run: true
|
|
90
93
|
- id: env-var-drift
|
|
91
94
|
name: check env-var/config drift
|
|
92
|
-
entry: bash -c 'if [ -f uv.lock ]; then uv run python -m
|
|
95
|
+
entry: bash -c 'if [ -f uv.lock ]; then uv run python -m scion_sdk.mcp.env_drift --check; else python -m scion_sdk.mcp.env_drift --check; fi'
|
|
93
96
|
language: system
|
|
94
97
|
pass_filenames: false
|
|
95
98
|
files: ^(README\.md|\.env\.example|mcp_config.*\.json|.*/mcp_config.*\.json|docker/.*compose.*\.ya?ml|.*/auth\.py|.*/mcp_server\.py)$
|
|
@@ -100,13 +103,6 @@ repos:
|
|
|
100
103
|
language: system
|
|
101
104
|
pass_filenames: false
|
|
102
105
|
always_run: true
|
|
103
|
-
- id: check-bumpversion
|
|
104
|
-
name: validate bumpversion config
|
|
105
|
-
entry: |-
|
|
106
|
-
bash -c 'if [ -f ".bumpversion.cfg" ]; then bump2version patch --dry-run --allow-dirty; fi'
|
|
107
|
-
language: system
|
|
108
|
-
pass_filenames: false
|
|
109
|
-
always_run: true
|
|
110
106
|
- repo: https://github.com/AleksaC/hadolint-py
|
|
111
107
|
rev: 6e7504451511eaeb62a3e7f14d63b0296cbf86eb # frozen: v2.15.1
|
|
112
108
|
hooks:
|
|
@@ -121,11 +117,3 @@ repos:
|
|
|
121
117
|
rev: f626253b23de45412865c07fd076ff95d4cd77a7 # v3.0.1
|
|
122
118
|
hooks:
|
|
123
119
|
- id: docker-compose-check
|
|
124
|
-
- repo: local
|
|
125
|
-
hooks:
|
|
126
|
-
- id: security-sanitizer
|
|
127
|
-
name: Security and Garbage Sanitizer
|
|
128
|
-
entry: python scripts/security_sanitizer.py
|
|
129
|
-
language: python
|
|
130
|
-
pass_filenames: false
|
|
131
|
-
always_run: true
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Tool-neutral rules for any AI agent or human working in this repository. This block is maintained by the fleet standard; edit outside the markers.
|
|
7
7
|
|
|
8
8
|
- **Owner boundary:** this repository owns one external system's calls, mappings and MCP tools (spec prefix `CONN-SYSTEMS-MANAGER-`); it depends on the connector SDK only. Feature routing across repositories: [ecosystem boundaries](https://github.com/Knuckles-Team/pipelines/blob/main/reference/ecosystem-boundaries.md).
|
|
9
|
-
- **Setup:** run `
|
|
9
|
+
- **Setup:** run `uv sync --locked`, then `pre-commit install`. This installs the locked environment and git hooks; run `pre-commit run --all-files` for the gate command.
|
|
10
10
|
- **Gates:** `uvx pre-commit run --all-files` must pass before you push. Do not bypass hooks to get green.
|
|
11
11
|
- **Commits:** one logical change per commit with a `Spec: <ID>` trailer (or `Spec: none (<reason>)`), plus a `Co-Authored-By:` trailer naming the assisting agent. Stage explicit paths only; never `git add -A` or `git add .`. Use your own configured Git identity, never a tool or bot name.
|
|
12
12
|
- **Org rules:** [organization AGENTS.md](https://github.com/Knuckles-Team/.github/blob/main/AGENTS.md).
|
|
@@ -17,7 +17,7 @@ Tool-neutral rules for any AI agent or human working in this repository. This bl
|
|
|
17
17
|
|
|
18
18
|
## Tech Stack & Architecture
|
|
19
19
|
- Language/Version: Python 3.11–3.14
|
|
20
|
-
- Core Libraries: `
|
|
20
|
+
- Core Libraries: `scion-sdk`, `fastmcp`, `pydantic-ai`, `psutil`, `distro`
|
|
21
21
|
- Key principles: Functional patterns, Pydantic for data validation, asynchronous tool execution.
|
|
22
22
|
- Architecture:
|
|
23
23
|
- `mcp_server.py`: Main MCP server entry point and tool registration.
|
|
@@ -104,7 +104,7 @@ python -m systems_manager.agent_server
|
|
|
104
104
|
|
|
105
105
|
## Code Style & Conventions
|
|
106
106
|
**Always:**
|
|
107
|
-
- Use current direct `
|
|
107
|
+
- Use current direct `scion-sdk` modules for shared patterns.
|
|
108
108
|
- Define input/output models using Pydantic.
|
|
109
109
|
- Include descriptive docstrings for all tools (they are used as tool descriptions for LLMs).
|
|
110
110
|
- Check for optional dependencies using `try/except ImportError`.
|
|
@@ -112,7 +112,7 @@ python -m systems_manager.agent_server
|
|
|
112
112
|
|
|
113
113
|
**Good example:**
|
|
114
114
|
```python
|
|
115
|
-
from
|
|
115
|
+
from scion_sdk.mcp.server_factory import create_mcp_server
|
|
116
116
|
from fastmcp import FastMCP
|
|
117
117
|
from pydantic import Field
|
|
118
118
|
|
|
@@ -127,7 +127,7 @@ async def my_tool(param: str = Field(description="Tool parameter")) -> str:
|
|
|
127
127
|
## Dos and Don'ts
|
|
128
128
|
**Do:**
|
|
129
129
|
- Run `pre-commit` before pushing changes.
|
|
130
|
-
- Use existing patterns from `
|
|
130
|
+
- Use existing patterns from `scion-sdk`.
|
|
131
131
|
- Keep tools focused and idempotent where possible.
|
|
132
132
|
- Run pytest with coverage before committing.
|
|
133
133
|
- Mock platform-specific operations in tests for cross-platform compatibility.
|
|
@@ -142,7 +142,7 @@ async def my_tool(param: str = Field(description="Tool parameter")) -> str:
|
|
|
142
142
|
## Safety & Boundaries
|
|
143
143
|
**Always do:**
|
|
144
144
|
- Run lint/test via `pre-commit`.
|
|
145
|
-
- Use `
|
|
145
|
+
- Use `scion-sdk` base classes.
|
|
146
146
|
- Test package manager operations with mocking to avoid accidental system modifications.
|
|
147
147
|
- Validate user inputs before running system commands.
|
|
148
148
|
|
|
@@ -154,7 +154,7 @@ async def my_tool(param: str = Field(description="Tool parameter")) -> str:
|
|
|
154
154
|
|
|
155
155
|
**Never do:**
|
|
156
156
|
- Commit `.env` files or secrets.
|
|
157
|
-
- Modify `
|
|
157
|
+
- Modify `scion-sdk` or `universal-skills` files from within this package.
|
|
158
158
|
- Run destructive operations (package installs, system updates) in tests without proper mocking.
|
|
159
159
|
- Hardcode platform-specific paths; use cross-platform path handling.
|
|
160
160
|
|
|
@@ -174,7 +174,7 @@ async def my_tool(param: str = Field(description="Tool parameter")) -> str:
|
|
|
174
174
|
|
|
175
175
|
## When Stuck
|
|
176
176
|
- Propose a plan first before making large changes.
|
|
177
|
-
- Check `
|
|
177
|
+
- Check `scion-sdk` documentation for existing helpers.
|
|
178
178
|
- Review existing test patterns for platform-specific mocking.
|
|
179
179
|
- Check the `systems_manager.py` implementation for platform-specific patterns.
|
|
180
180
|
|
|
@@ -326,7 +326,7 @@ alone).
|
|
|
326
326
|
Working in parallel with other sessions/worktrees? **Reserve a concept id before you write its `CONCEPT:` marker** so two sessions never collide:
|
|
327
327
|
|
|
328
328
|
```bash
|
|
329
|
-
|
|
329
|
+
scion-sdk --json concept reserve --ns EG-KG.compute.backend # or a package prefix, e.g. KEY
|
|
330
330
|
```
|
|
331
331
|
|
|
332
332
|
Full protocol (ledger, merge=union, reconcile, MCP/REST): <https://knuckles-team.github.io/agent-connector-sdk/concept_coordination/>
|
|
@@ -357,14 +357,14 @@ is what Dependabot flags. Rules:
|
|
|
357
357
|
## Upstream currency edict — target the newest release; a pin is a hypothesis, not a fact (READ BEFORE capping, deferring, or opt-in-gating an upgrade)
|
|
358
358
|
|
|
359
359
|
This governs how this repository treat **other people's** releases, deprecations, and version caps in
|
|
360
|
-
this repo (fleet-wide edict, propagated from `
|
|
360
|
+
this repo (fleet-wide edict, propagated from `scion-sdk/AGENTS.md`).
|
|
361
361
|
|
|
362
362
|
1. **Latest by default.** Target the newest upstream release -- including a pre-release
|
|
363
363
|
where the ecosystem has already moved onto it. Sitting on an old major because the
|
|
364
364
|
upgrade is work is not a reason to defer it.
|
|
365
365
|
2. **A conservative upstream pin is a hypothesis, not a fact -- test it, don't inherit
|
|
366
366
|
it.** Upstream maintainers cap defensively (an unreleased major, an untested surface)
|
|
367
|
-
as often as they cap for a known break. Worked example (from `
|
|
367
|
+
as often as they cap for a known break. Worked example (from `scion-sdk`):
|
|
368
368
|
`pydantic-ai-slim` 2.18.0 declared `fastmcp-slim[client]>=3.3.0` with no upper bound;
|
|
369
369
|
2.19.0 added `<4` purely as a defensive guard while fastmcp 4 was still pre-release --
|
|
370
370
|
not because of an observed incompatibility. Blocking an upgrade on that kind of cap
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: systems-manager
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.7
|
|
4
4
|
Summary: Systems Manager will update your system and install/upgrade applications. Additionally, as allow AI to perform these activities as an MCP Server
|
|
5
|
-
Author-email:
|
|
5
|
+
Author-email: Repository Maintainers <maintainers@knuckles.team>
|
|
6
6
|
License: MIT
|
|
7
7
|
Classifier: Development Status :: 5 - Production/Stable
|
|
8
8
|
Classifier: License :: Public Domain
|
|
@@ -12,15 +12,15 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Requires-Python: <3.15,>=3.12
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist:
|
|
15
|
+
Requires-Dist: scion-sdk[mcp]<0.7.0,>=0.6.3
|
|
16
16
|
Requires-Dist: pydantic>=2.14.1
|
|
17
17
|
Requires-Dist: psutil>=7.2.2
|
|
18
18
|
Requires-Dist: distro>=1.9.0
|
|
19
19
|
Requires-Dist: requests>=2.34.2
|
|
20
20
|
Provides-Extra: mcp
|
|
21
|
-
Requires-Dist:
|
|
21
|
+
Requires-Dist: scion-sdk[mcp]<0.7.0,>=0.6.3; extra == "mcp"
|
|
22
22
|
Provides-Extra: all
|
|
23
|
-
Requires-Dist:
|
|
23
|
+
Requires-Dist: scion-sdk[mcp]<0.7.0,>=0.6.3; extra == "all"
|
|
24
24
|
Provides-Extra: test
|
|
25
25
|
Requires-Dist: pytest>=9.1.1; extra == "test"
|
|
26
26
|
Requires-Dist: pytest-asyncio>=1.4.0; extra == "test"
|
|
@@ -28,15 +28,15 @@ Dynamic: license-file
|
|
|
28
28
|
|
|
29
29
|
# systems-manager
|
|
30
30
|
|
|
31
|
-
Version: 2.2.
|
|
31
|
+
Version: 2.2.6
|
|
32
32
|
|
|
33
|
-
`systems-manager` is the typed host-operations provider for
|
|
33
|
+
`systems-manager` is the typed host-operations provider for Scion SDK and
|
|
34
34
|
Arbora. It exposes cross-platform package, service, process, network, disk,
|
|
35
35
|
managed-file, firewall, physical-storage, Agent OS, and privacy-safe host-ingestion
|
|
36
36
|
capabilities without exposing a raw command tool.
|
|
37
37
|
|
|
38
38
|
The current package requires Python 3.11–3.14 and
|
|
39
|
-
`
|
|
39
|
+
`scion-sdk>=2.0.0,<3.0.0`.
|
|
40
40
|
|
|
41
41
|
## Install and run
|
|
42
42
|
|
|
@@ -71,7 +71,7 @@ belong in AgentConfig or the process launcher.
|
|
|
71
71
|
|
|
72
72
|
- Network MCP listeners require configured authentication. Non-loopback listeners also
|
|
73
73
|
require direct TLS or a trusted TLS-stop proxy, exact allowed hosts, and the
|
|
74
|
-
current
|
|
74
|
+
current Scion SDK transport checks.
|
|
75
75
|
- Host mutations are denied unless `SYSTEMS_MANAGER_ALLOW_HOST_MUTATIONS=true` and the
|
|
76
76
|
individual request receives destructive-operation approval.
|
|
77
77
|
- Managed-file writes also require
|
|
@@ -155,7 +155,7 @@ tool.
|
|
|
155
155
|
## Knowledge-graph ingestion
|
|
156
156
|
|
|
157
157
|
`systems_ingest_host` reads local typed telemetry and submits an allowlisted projection
|
|
158
|
-
through the
|
|
158
|
+
through the Scion SDK native governed ingestion boundary. It emits only:
|
|
159
159
|
|
|
160
160
|
- `HardwareNode`, `NetworkInterface`, and `DiskVolume` nodes;
|
|
161
161
|
- `hasInterface` and `hasVolume` relationships;
|
|
@@ -193,7 +193,7 @@ JWT issuer/JWKS/audience configuration, and debug mode disabled.
|
|
|
193
193
|
## Environment variables
|
|
194
194
|
|
|
195
195
|
The generated table is sourced from the value-free `.env.example` plus the inherited
|
|
196
|
-
|
|
196
|
+
Scion SDK contract.
|
|
197
197
|
|
|
198
198
|
<!-- ENV-VARS-TABLE:START -->
|
|
199
199
|
|
|
@@ -219,7 +219,6 @@ Agent Connector SDK contract.
|
|
|
219
219
|
| `SYSTEMS_MANAGER_NODE_REF` | — | Runtime node alias; only a keyed digest persists |
|
|
220
220
|
| `SYSTEMS_MANAGER_NOTIFY_TLS_PROFILE` | — | Optional inline mandatory-verification notification TLS profile |
|
|
221
221
|
| `SYSTEMS_MANAGER_NOTIFY_TLS_PROFILE_REF` | — | Runtime reference to the notification TLS profile |
|
|
222
|
-
| `SYSTEMS_MANAGER_MCP_IMAGE_DIGEST` | — | Required immutable MCP image digest |
|
|
223
222
|
| `SYSTEMS_MANAGER_REPOSITORY_ALLOWLIST_JSON` | `[]` | Approved credential-free repositories |
|
|
224
223
|
| `SYSTEMS_MANAGER_LOCAL_PACKAGE_SHA256_MAP` | `{}` | Approved package paths and digests |
|
|
225
224
|
| `SYSTEMS_MANAGER_COMMAND_TIMEOUT_SECONDS` | `120` | Default command timeout |
|
|
@@ -236,7 +235,7 @@ Agent Connector SDK contract.
|
|
|
236
235
|
| `PORT` | `8000` | Bind port for HTTP transports |
|
|
237
236
|
| `ENABLE_OTEL` | `false` | Enable only with an approved collector |
|
|
238
237
|
|
|
239
|
-
#### Inherited
|
|
238
|
+
#### Inherited scion-sdk variables (apply to every connector)
|
|
240
239
|
|
|
241
240
|
| Variable | Example | Description |
|
|
242
241
|
|----------|---------|-------------|
|
|
@@ -260,7 +259,7 @@ Agent Connector SDK contract.
|
|
|
260
259
|
| `MODEL_ID` | `gpt-4o` | Model id for the agent |
|
|
261
260
|
| `ENABLE_WEB_UI` | `True` | Serve the AG-UI web interface |
|
|
262
261
|
|
|
263
|
-
_51 package + 19 inherited variable(s). Auto-generated from `.env.example` + the shared
|
|
262
|
+
_51 package + 19 inherited variable(s). Auto-generated from `.env.example` + the shared scion-sdk set — do not edit._
|
|
264
263
|
<!-- ENV-VARS-TABLE:END -->
|
|
265
264
|
|
|
266
265
|
## Development and release gates
|
|
@@ -275,7 +274,7 @@ pre-commit run --all-files
|
|
|
275
274
|
|
|
276
275
|
Run host operations only through mocks during tests. Do not run native builds or live
|
|
277
276
|
host mutations as a validation shortcut. The source dependency floor is intentionally
|
|
278
|
-
`
|
|
277
|
+
`scion-sdk>=2.0.0`; regenerate and commit a neutral lock only after that release
|
|
279
278
|
is available from the configured package index. Never commit an editable local source
|
|
280
279
|
or a stale dependency resolution.
|
|
281
280
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# systems-manager
|
|
2
2
|
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.6
|
|
4
4
|
|
|
5
|
-
`systems-manager` is the typed host-operations provider for
|
|
5
|
+
`systems-manager` is the typed host-operations provider for Scion SDK and
|
|
6
6
|
Arbora. It exposes cross-platform package, service, process, network, disk,
|
|
7
7
|
managed-file, firewall, physical-storage, Agent OS, and privacy-safe host-ingestion
|
|
8
8
|
capabilities without exposing a raw command tool.
|
|
9
9
|
|
|
10
10
|
The current package requires Python 3.11–3.14 and
|
|
11
|
-
`
|
|
11
|
+
`scion-sdk>=2.0.0,<3.0.0`.
|
|
12
12
|
|
|
13
13
|
## Install and run
|
|
14
14
|
|
|
@@ -43,7 +43,7 @@ belong in AgentConfig or the process launcher.
|
|
|
43
43
|
|
|
44
44
|
- Network MCP listeners require configured authentication. Non-loopback listeners also
|
|
45
45
|
require direct TLS or a trusted TLS-stop proxy, exact allowed hosts, and the
|
|
46
|
-
current
|
|
46
|
+
current Scion SDK transport checks.
|
|
47
47
|
- Host mutations are denied unless `SYSTEMS_MANAGER_ALLOW_HOST_MUTATIONS=true` and the
|
|
48
48
|
individual request receives destructive-operation approval.
|
|
49
49
|
- Managed-file writes also require
|
|
@@ -127,7 +127,7 @@ tool.
|
|
|
127
127
|
## Knowledge-graph ingestion
|
|
128
128
|
|
|
129
129
|
`systems_ingest_host` reads local typed telemetry and submits an allowlisted projection
|
|
130
|
-
through the
|
|
130
|
+
through the Scion SDK native governed ingestion boundary. It emits only:
|
|
131
131
|
|
|
132
132
|
- `HardwareNode`, `NetworkInterface`, and `DiskVolume` nodes;
|
|
133
133
|
- `hasInterface` and `hasVolume` relationships;
|
|
@@ -165,7 +165,7 @@ JWT issuer/JWKS/audience configuration, and debug mode disabled.
|
|
|
165
165
|
## Environment variables
|
|
166
166
|
|
|
167
167
|
The generated table is sourced from the value-free `.env.example` plus the inherited
|
|
168
|
-
|
|
168
|
+
Scion SDK contract.
|
|
169
169
|
|
|
170
170
|
<!-- ENV-VARS-TABLE:START -->
|
|
171
171
|
|
|
@@ -191,7 +191,6 @@ Agent Connector SDK contract.
|
|
|
191
191
|
| `SYSTEMS_MANAGER_NODE_REF` | — | Runtime node alias; only a keyed digest persists |
|
|
192
192
|
| `SYSTEMS_MANAGER_NOTIFY_TLS_PROFILE` | — | Optional inline mandatory-verification notification TLS profile |
|
|
193
193
|
| `SYSTEMS_MANAGER_NOTIFY_TLS_PROFILE_REF` | — | Runtime reference to the notification TLS profile |
|
|
194
|
-
| `SYSTEMS_MANAGER_MCP_IMAGE_DIGEST` | — | Required immutable MCP image digest |
|
|
195
194
|
| `SYSTEMS_MANAGER_REPOSITORY_ALLOWLIST_JSON` | `[]` | Approved credential-free repositories |
|
|
196
195
|
| `SYSTEMS_MANAGER_LOCAL_PACKAGE_SHA256_MAP` | `{}` | Approved package paths and digests |
|
|
197
196
|
| `SYSTEMS_MANAGER_COMMAND_TIMEOUT_SECONDS` | `120` | Default command timeout |
|
|
@@ -208,7 +207,7 @@ Agent Connector SDK contract.
|
|
|
208
207
|
| `PORT` | `8000` | Bind port for HTTP transports |
|
|
209
208
|
| `ENABLE_OTEL` | `false` | Enable only with an approved collector |
|
|
210
209
|
|
|
211
|
-
#### Inherited
|
|
210
|
+
#### Inherited scion-sdk variables (apply to every connector)
|
|
212
211
|
|
|
213
212
|
| Variable | Example | Description |
|
|
214
213
|
|----------|---------|-------------|
|
|
@@ -232,7 +231,7 @@ Agent Connector SDK contract.
|
|
|
232
231
|
| `MODEL_ID` | `gpt-4o` | Model id for the agent |
|
|
233
232
|
| `ENABLE_WEB_UI` | `True` | Serve the AG-UI web interface |
|
|
234
233
|
|
|
235
|
-
_51 package + 19 inherited variable(s). Auto-generated from `.env.example` + the shared
|
|
234
|
+
_51 package + 19 inherited variable(s). Auto-generated from `.env.example` + the shared scion-sdk set — do not edit._
|
|
236
235
|
<!-- ENV-VARS-TABLE:END -->
|
|
237
236
|
|
|
238
237
|
## Development and release gates
|
|
@@ -247,7 +246,7 @@ pre-commit run --all-files
|
|
|
247
246
|
|
|
248
247
|
Run host operations only through mocks during tests. Do not run native builds or live
|
|
249
248
|
host mutations as a validation shortcut. The source dependency floor is intentionally
|
|
250
|
-
`
|
|
249
|
+
`scion-sdk>=2.0.0`; regenerate and commit a neutral lock only after that release
|
|
251
250
|
is available from the configured package index. Never commit an editable local source
|
|
252
251
|
or a stale dependency resolution.
|
|
253
252
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
site_name: "systems-manager"
|
|
2
|
-
site_description: "Cross-platform CLI / API / MCP Server / Agent for system maintenance, package management, and zero-script remote host orchestration in the
|
|
2
|
+
site_description: "Cross-platform CLI / API / MCP Server / Agent for system maintenance, package management, and zero-script remote host orchestration in the scion-sdk ecosystem."
|
|
3
3
|
site_url: "https://knuckles-team.github.io/systems-manager/"
|
|
4
4
|
repo_name: "Knuckles-Team/systems-manager"
|
|
5
5
|
repo_url: "https://github.com/Knuckles-Team/systems-manager"
|
|
@@ -96,6 +96,6 @@ nav:
|
|
|
96
96
|
- Multi-Host: multi_host.md
|
|
97
97
|
- Day 0 Installation: day_0_provisioning.md
|
|
98
98
|
- Concepts: concepts.md
|
|
99
|
-
-
|
|
99
|
+
- Scion SDK Integration: scion_sdk_synergy.md
|
|
100
100
|
- Validation: code_coverage.md
|
|
101
101
|
- Agent OS Layer: pillars/1_agent_os_layer.md
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [ "setuptools>=84.0.0", "wheel",]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "systems-manager"
|
|
7
|
+
version = "2.2.7"
|
|
8
|
+
description = "Systems Manager will update your system and install/upgrade applications. Additionally, as allow AI to perform these activities as an MCP Server"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
classifiers = [ "Development Status :: 5 - Production/Stable", "License :: Public Domain", "Environment :: Console", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3",]
|
|
11
|
+
requires-python = ">=3.12,<3.15"
|
|
12
|
+
dependencies = [ "scion-sdk[mcp]>=0.6.3,<0.7.0", "pydantic>=2.14.1", "psutil>=7.2.2", "distro>=1.9.0", "requests>=2.34.2",]
|
|
13
|
+
[[project.authors]]
|
|
14
|
+
name = "Repository Maintainers"
|
|
15
|
+
email = "maintainers@knuckles.team"
|
|
16
|
+
|
|
17
|
+
[project.license]
|
|
18
|
+
text = "MIT"
|
|
19
|
+
|
|
20
|
+
[project.optional-dependencies]
|
|
21
|
+
mcp = [ "scion-sdk[mcp]>=0.6.3,<0.7.0",]
|
|
22
|
+
all = [ "scion-sdk[mcp]>=0.6.3,<0.7.0",]
|
|
23
|
+
test = [ "pytest>=9.1.1", "pytest-asyncio>=1.4.0",]
|
|
24
|
+
|
|
25
|
+
[project.scripts]
|
|
26
|
+
systems-manager = "systems_manager.systems_manager:main"
|
|
27
|
+
systems-manager-mcp = "systems_manager.mcp_server:mcp_server"
|
|
28
|
+
systems-manager-helper = "systems_manager.sudo_helper:main"
|
|
29
|
+
|
|
30
|
+
# The one declared connector identity: the fleet name (SCION-CONNECTOR-CONTROL-R071).
|
|
31
|
+
[project.entry-points."scion_sdk.connector"]
|
|
32
|
+
systems-manager-mcp = "systems_manager:connector"
|
|
33
|
+
|
|
34
|
+
[tool.uv.workspace]
|
|
35
|
+
members = ["."]
|
|
36
|
+
|
|
37
|
+
[tool.setuptools]
|
|
38
|
+
include-package-data = true
|
|
39
|
+
|
|
40
|
+
[tool.codespell]
|
|
41
|
+
ignore-words-list = "fo"
|
|
42
|
+
|
|
43
|
+
[tool.ruff]
|
|
44
|
+
line-length = 88
|
|
45
|
+
target-version = "py311"
|
|
46
|
+
|
|
47
|
+
[tool.mypy]
|
|
48
|
+
python_version = "3.11"
|
|
49
|
+
ignore_missing_imports = true
|
|
50
|
+
check_untyped_defs = true
|
|
51
|
+
|
|
52
|
+
[tool.setuptools.package-data]
|
|
53
|
+
systems_manager = [ "agent_data/**", "prompts/**", "skills/**", "ontology/**", "connectors/**",]
|
|
54
|
+
|
|
55
|
+
[tool.setuptools.exclude-package-data]
|
|
56
|
+
systems_manager = [ "agent_data/*.db", "agent_data/*.sqlite*", "agent_data/chats", "agent_data/CRON_LOG.md", "agent_data/MEMORY.md", "agent_data/USER.md",]
|
|
57
|
+
|
|
58
|
+
[tool.ruff.lint]
|
|
59
|
+
select = [ "E", "F", "I", "UP", "B",]
|
|
60
|
+
ignore = [ "E402", "E501", "B008",]
|
|
61
|
+
|
|
62
|
+
[tool.setuptools.packages.find]
|
|
63
|
+
where = [ ".",]
|
|
64
|
+
|
|
65
|
+
[tool.vulture]
|
|
66
|
+
ignore_names = ["request", "config"]
|
|
67
|
+
|
|
68
|
+
[tool.uv]
|
|
69
|
+
override-dependencies = [
|
|
70
|
+
"fastmcp-slim[client,server]>=4.1.0",
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
[tool.pipelines_hooks.ste]
|
|
74
|
+
exempt = ["specs/*", "specs/**/*"]
|
|
75
|
+
|
|
76
|
+
[tool.pipelines.codespell]
|
|
77
|
+
ignore_words = ["callin"]
|
|
78
|
+
|
|
79
|
+
[tool.pipelines.container]
|
|
80
|
+
image_var = "SYSTEMS_MANAGER_MCP_IMAGE_DIGEST"
|
|
81
|
+
restart = "unless-stopped"
|
|
82
|
+
tmpfs_size = "128m"
|
|
83
|
+
env_file_mode = "none"
|
|
84
|
+
compose_host = {env = "SYSTEMS_MANAGER_MCP_BIND_ADDRESS", default = "127.0.0.1"}
|
|
85
|
+
publish_port = {env = "SYSTEMS_MANAGER_MCP_PORT", default = 8000}
|
|
86
|
+
container_name = false
|
|
87
|
+
hostname = false
|
|
88
|
+
health_timeout = "5s"
|
|
89
|
+
health_command_timeout = 3
|
|
90
|
+
compose_env = [
|
|
91
|
+
"AUTH_TYPE=${AUTH_TYPE:?authenticated MCP transport required}",
|
|
92
|
+
"MCP_TLS_TERMINATED=${MCP_TLS_TERMINATED:?verified TLS boundary required}",
|
|
93
|
+
"MCP_TRUSTED_PROXY_CIDRS=${MCP_TRUSTED_PROXY_CIDRS:?trusted ingress CIDRs required}",
|
|
94
|
+
"MCP_ALLOWED_HOSTS=${MCP_ALLOWED_HOSTS:?MCP Host allowlist required}",
|
|
95
|
+
"FASTMCP_SERVER_AUTH_STATIC_TOKENS_REF=${FASTMCP_SERVER_AUTH_STATIC_TOKENS_REF:-}",
|
|
96
|
+
"FASTMCP_SERVER_AUTH_JWT_JWKS_URI=${FASTMCP_SERVER_AUTH_JWT_JWKS_URI:-}",
|
|
97
|
+
"FASTMCP_SERVER_AUTH_JWT_ISSUER=${FASTMCP_SERVER_AUTH_JWT_ISSUER:-}",
|
|
98
|
+
"FASTMCP_SERVER_AUTH_JWT_AUDIENCE=${FASTMCP_SERVER_AUTH_JWT_AUDIENCE:-}",
|
|
99
|
+
"SYSTEMS_MANAGER_FILESYSTEM_ROOT=/workspace",
|
|
100
|
+
"SYSTEMS_MANAGER_ALLOW_HOST_MUTATIONS=${SYSTEMS_MANAGER_ALLOW_HOST_MUTATIONS:-false}",
|
|
101
|
+
"SYSTEMS_MANAGER_ALLOW_FILESYSTEM_MUTATIONS=${SYSTEMS_MANAGER_ALLOW_FILESYSTEM_MUTATIONS:-false}",
|
|
102
|
+
"SYSTEMS_MANAGER_ALLOW_SENSITIVE_READS=${SYSTEMS_MANAGER_ALLOW_SENSITIVE_READS:-false}",
|
|
103
|
+
"SYSTEMS_MANAGER_ALLOW_NETWORK_PROBES=${SYSTEMS_MANAGER_ALLOW_NETWORK_PROBES:-false}",
|
|
104
|
+
]
|
|
105
|
+
limits = {mcp = {memory_limit_env = "", memory_limit = "1g", cpu_limit_env = "", cpu_limit = "1.0"}}
|
|
106
|
+
[[tool.pipelines.container.state_volumes]]
|
|
107
|
+
name = "systems-manager-mcp-state"
|
|
108
|
+
target = "/workspace"
|