sentinel-openrig 0.4.0__py3-none-any.whl

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.
Files changed (64) hide show
  1. atlas_sentinel/CHANGELOG.md +29 -0
  2. atlas_sentinel/README.pypi.md +58 -0
  3. atlas_sentinel/__init__.py +2 -0
  4. atlas_sentinel/contracts/fleet-registry.schema.json +50 -0
  5. atlas_sentinel/contracts/history.schema.json +181 -0
  6. atlas_sentinel/contracts/mission-registry.schema.json +58 -0
  7. atlas_sentinel/contracts/module-config.schema.json +84 -0
  8. atlas_sentinel/contracts/module-manifest.schema.json +77 -0
  9. atlas_sentinel/contracts/observation.schema.json +200 -0
  10. atlas_sentinel/contracts/openapi.json +244 -0
  11. atlas_sentinel/contracts/project-init.d.ts +6 -0
  12. atlas_sentinel/contracts/project-init.schema.json +237 -0
  13. atlas_sentinel/contracts/recording.schema.json +44 -0
  14. atlas_sentinel/contracts/roster.schema.json +33 -0
  15. atlas_sentinel/contracts/seat-observation.schema.json +81 -0
  16. atlas_sentinel/contracts/simulation-event.schema.json +511 -0
  17. atlas_sentinel/contracts/snapshot.schema.json +286 -0
  18. atlas_sentinel/contracts/status.schema.json +66 -0
  19. atlas_sentinel/contracts/telemetry-event.schema.json +511 -0
  20. atlas_sentinel/contracts/types.d.ts +13 -0
  21. atlas_sentinel/docs/CONTRIBUTING.md +33 -0
  22. atlas_sentinel/docs/INTEGRATION.md +38 -0
  23. atlas_sentinel/docs/SECURITY.md +19 -0
  24. atlas_sentinel/docs/STATUS.md +47 -0
  25. atlas_sentinel/docs/brand/style-guide.md +156 -0
  26. atlas_sentinel/docs/design/product-preview.md +53 -0
  27. atlas_sentinel/docs/design/site-design.md +47 -0
  28. atlas_sentinel/docs/design/verification.md +43 -0
  29. atlas_sentinel/docs/guides/getting-started.md +56 -0
  30. atlas_sentinel/docs/guides/github-pages.md +47 -0
  31. atlas_sentinel/docs/guides/operations.md +77 -0
  32. atlas_sentinel/docs/guides/project-setup.md +52 -0
  33. atlas_sentinel/docs/guides/releasing.md +76 -0
  34. atlas_sentinel/docs/index.md +36 -0
  35. atlas_sentinel/docs/reference/api.md +36 -0
  36. atlas_sentinel/docs/reference/cli.md +29 -0
  37. atlas_sentinel/docs/reference/contracts.md +40 -0
  38. atlas_sentinel/docs/research/DRTW-public-documentation.md +72 -0
  39. atlas_sentinel/docs/wiki/architecture.md +49 -0
  40. atlas_sentinel/docs/wiki/index.md +39 -0
  41. atlas_sentinel/docs/wiki/observation-model.md +35 -0
  42. atlas_sentinel/examples/atlas-roster.json +1026 -0
  43. atlas_sentinel/examples/minimal-roster.json +3 -0
  44. atlas_sentinel/module.json +21 -0
  45. atlas_sentinel/plugin/.claude-plugin/plugin.json +5 -0
  46. atlas_sentinel/plugin/.codex-plugin/plugin.json +6 -0
  47. atlas_sentinel/plugin/plugin.json +6 -0
  48. atlas_sentinel/plugin/skills/sentinel-monitor/SKILL.md +14 -0
  49. atlas_sentinel/tools/__init__.py +0 -0
  50. atlas_sentinel/tools/bootstrap.py +88 -0
  51. atlas_sentinel/tools/build_contracts.py +25 -0
  52. atlas_sentinel/tools/build_product_preview.py +205 -0
  53. atlas_sentinel/tools/build_site.py +183 -0
  54. atlas_sentinel/tools/check_release.py +181 -0
  55. atlas_sentinel/tools/project_skill.py +19 -0
  56. atlas_sentinel/tools/sentinel.py +256 -0
  57. atlas_sentinel/web/live.html +3 -0
  58. atlas_sentinel/web/simulation.html +69 -0
  59. sentinel_openrig-0.4.0.dist-info/METADATA +83 -0
  60. sentinel_openrig-0.4.0.dist-info/RECORD +64 -0
  61. sentinel_openrig-0.4.0.dist-info/WHEEL +5 -0
  62. sentinel_openrig-0.4.0.dist-info/entry_points.txt +3 -0
  63. sentinel_openrig-0.4.0.dist-info/licenses/LICENSE +202 -0
  64. sentinel_openrig-0.4.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,29 @@
1
+ # Changelog
2
+
3
+ Release notes describe shipped behavior and its limits. See GitHub release assets and PyPI metadata for publication records.
4
+
5
+ ## 0.4.0 — 2026-11-24
6
+
7
+ Initial public alpha release of the local observability companion.
8
+
9
+ ### Public documentation and distribution
10
+
11
+ - Added a public README, marketing site, and shared documentation/wiki structure.
12
+ - Declared Apache-2.0 licensing and the designated `OOOffsite/sentinel` repository.
13
+ - Added PyPI-oriented package metadata and a README with absolute documentation links.
14
+ - Excluded local agent instructions and runtime state from new distribution builds.
15
+ - Added artifact checks and an explicitly dispatched build/TestPyPI/PyPI workflow using Trusted Publishing.
16
+
17
+ The release preserves observation contract **1.1.0** and simulation contract **1.0.0**. Release assets are rebuilt from reviewed source; the original development wheel is not a release asset.
18
+
19
+ ### Observation and preparation
20
+
21
+ - Project-independent rosters, explicit identity bindings, and local observation views.
22
+ - OTLP HTTP JSON logs/metrics subset, allowlisted normalized records, and SQLite history.
23
+ - Read-only status, roster, snapshot, and history API.
24
+ - Declarative project validation and plan-first preparation of isolated resources.
25
+ - Optional read-only monitor skill projection for supported agent harnesses.
26
+
27
+ ### Validation and limits
28
+
29
+ The receiver/module fixtures cover schema validation, ingestion/replay, freshness, instance/configuration boundaries, loopback HTTP behavior, and skill projection. Real upstream exporter interoperability, installed OpenRig materialization, live model sessions, remote security, and sustained capacity require separate evidence before production. This alpha release does not make a production-readiness claim.
@@ -0,0 +1,58 @@
1
+ # SENTINEL
2
+
3
+ *monitor the situation*
4
+
5
+ **Local, evidence-driven observability for OpenRig-managed agent fleets.**
6
+
7
+ Sentinel receives a defined OTLP HTTP JSON subset from the existing upstream exporter, retains allowlisted metadata in SQLite, and serves a loopback dashboard and read API. It distinguishes observed activity, declared topology, and simulation. Missing or stale evidence remains unknown.
8
+
9
+ This is a **Python package** for Python 3.11 or newer, with no third-party Python runtime dependencies. Its commands are `sentinel-openrig` and `sentinel-project`.
10
+
11
+ **Actual fleet telemetry requires a separately installed OpenRig system and the pinned upstream exporter running on Node.js 22/24.** These integration prerequisites are not installed by pip. Sentinel can initialize configuration and show an empty monitor without them.
12
+
13
+ ## Capabilities
14
+
15
+ - Inspect sampled presence and activity with explicit freshness rules.
16
+ - Associate immutable exported node IDs with operator-verified logical seats.
17
+ - Read local status, roster, snapshots, and cursor-based history.
18
+ - Retain metadata without prompts, transcripts, or message bodies.
19
+ - Validate project declarations and review plans for isolated worktrees and AgentSpecs.
20
+
21
+ OpenRig remains the agent and queue authority. Sentinel does not launch agents or enqueue work. The separate legacy Atlas simulation never substitutes for real observations, and the current observation API does not establish directed messages between agents.
22
+
23
+ ## Installation
24
+
25
+ Use a project-local environment for the release:
26
+
27
+ ```bash
28
+ python3 -m venv .venv
29
+ . .venv/bin/activate
30
+ python -m pip install sentinel-openrig==0.4.0
31
+ sentinel-openrig --help
32
+ sentinel-project --help
33
+ ```
34
+
35
+ For a source checkout, use `python -m pip install .` from the repository root instead. To use a downloaded release wheel without resolving dependencies, run `python -m pip install --no-deps --no-index /path/to/sentinel_openrig-0.4.0-py3-none-any.whl`.
36
+
37
+ Git is needed for project preparation. No upstream binary or exporter is vendored.
38
+
39
+ ## Documentation
40
+
41
+ Source, issues, release assets, and documentation are maintained in [OOOffsite/sentinel](https://github.com/OOOffsite/sentinel).
42
+
43
+ - [Getting started](https://github.com/OOOffsite/sentinel/blob/main/docs/guides/getting-started.md)
44
+ - [Operations](https://github.com/OOOffsite/sentinel/blob/main/docs/guides/operations.md)
45
+ - [Wiki](https://github.com/OOOffsite/sentinel/tree/main/docs/wiki)
46
+ - [API and contracts](https://github.com/OOOffsite/sentinel/tree/main/docs/reference)
47
+ - [Status and verification limits](https://github.com/OOOffsite/sentinel/blob/main/docs/STATUS.md)
48
+ - [Release notes](https://github.com/OOOffsite/sentinel/blob/main/CHANGELOG.md)
49
+
50
+ ## Compatibility and boundaries
51
+
52
+ Package **0.4.0** is an **alpha release of a local prototype**. Observation contract **1.1.0** and simulation contract **1.0.0** remain separate. OpenRig documentation was reviewed at **0.7.21**; verify the actual installed CLI and exact exporter commit `1beecce96befec880a93f60b11d83b44d7347620` before production use.
53
+
54
+ The receiver binds to loopback and trusts the local OS account. It is not an authenticated remote gateway. A received observation is not proof of source reachability or complete history. The 128-seat implementation ceiling is not a validated capacity claim. Retention, remote security, and sustained throughput remain future work.
55
+
56
+ ## License
57
+
58
+ Sentinel is licensed under **Apache-2.0**. The separately obtained upstream exporter has its own license and is not included in this distribution.
@@ -0,0 +1,2 @@
1
+ """Project-independent Sentinel observability companion."""
2
+ __version__ = "0.4.0"
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "array",
4
+ "items": {
5
+ "type": "object",
6
+ "properties": {
7
+ "team": {
8
+ "type": "string",
9
+ "pattern": "^[a-z][a-z0-9-]{0,62}$"
10
+ },
11
+ "seat": {
12
+ "type": "string",
13
+ "pattern": "^[a-z][a-z0-9-]{0,62}$"
14
+ },
15
+ "runtime": {
16
+ "enum": [
17
+ "codex",
18
+ "claude-code",
19
+ "omp",
20
+ "pi",
21
+ "stub",
22
+ "terminal"
23
+ ]
24
+ },
25
+ "cell": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "scope": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ "role": {
34
+ "type": "string",
35
+ "minLength": 1
36
+ }
37
+ },
38
+ "required": [
39
+ "team",
40
+ "seat",
41
+ "runtime",
42
+ "cell",
43
+ "scope",
44
+ "role"
45
+ ],
46
+ "additionalProperties": false
47
+ },
48
+ "minItems": 1,
49
+ "maxItems": 128
50
+ }
@@ -0,0 +1,181 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "rows": {
7
+ "type": "array",
8
+ "items": {
9
+ "type": "object",
10
+ "additionalProperties": false,
11
+ "properties": {
12
+ "seq": {
13
+ "type": "integer",
14
+ "minimum": 0
15
+ },
16
+ "received_ns": {
17
+ "type": "string",
18
+ "pattern": "^(0|[1-9][0-9]{0,19})$"
19
+ },
20
+ "kind": {
21
+ "enum": [
22
+ "log",
23
+ "metric"
24
+ ]
25
+ },
26
+ "namespace": {
27
+ "type": "string",
28
+ "pattern": "^[A-Za-z0-9._:-]{1,256}$"
29
+ },
30
+ "instance": {
31
+ "type": "string",
32
+ "pattern": "^[A-Za-z0-9._:-]{1,256}$"
33
+ },
34
+ "observed_ns": {
35
+ "type": "string",
36
+ "pattern": "^(0|[1-9][0-9]{0,19})$"
37
+ },
38
+ "name": {
39
+ "type": "string"
40
+ },
41
+ "value": {
42
+ "anyOf": [
43
+ {
44
+ "type": "string",
45
+ "pattern": "^(0|[1-9][0-9]{0,19})$"
46
+ },
47
+ {
48
+ "type": "null"
49
+ }
50
+ ]
51
+ },
52
+ "data": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "node_id": {
57
+ "type": "string",
58
+ "pattern": "^[A-Za-z0-9._:-]{1,256}$"
59
+ },
60
+ "runtime": {
61
+ "enum": [
62
+ "claude-code",
63
+ "codex",
64
+ "omp",
65
+ "pi",
66
+ "stub",
67
+ "terminal"
68
+ ]
69
+ },
70
+ "label": {
71
+ "type": "string"
72
+ },
73
+ "departure_state": {
74
+ "enum": [
75
+ "blocked",
76
+ "canceled",
77
+ "denied",
78
+ "done",
79
+ "failed",
80
+ "handed-off",
81
+ "in-progress",
82
+ "pending"
83
+ ]
84
+ },
85
+ "closure_reason": {
86
+ "enum": [
87
+ "blocked_on",
88
+ "canceled",
89
+ "denied",
90
+ "escalation",
91
+ "handed_off_to",
92
+ "no-follow-on",
93
+ "superseded"
94
+ ]
95
+ },
96
+ "start_ns": {
97
+ "type": "string",
98
+ "pattern": "^(0|[1-9][0-9]{0,19})$"
99
+ },
100
+ "boot_epoch": {
101
+ "type": "string",
102
+ "pattern": "^[A-Za-z0-9._:-]{1,256}$"
103
+ },
104
+ "transition_id": {
105
+ "type": "string",
106
+ "pattern": "^(0|[1-9][0-9]{0,19})$"
107
+ },
108
+ "coverage": {
109
+ "enum": [
110
+ "partial",
111
+ "retained_window",
112
+ "unavailable"
113
+ ]
114
+ },
115
+ "prior_generation": {
116
+ "type": "string",
117
+ "pattern": "^[A-Za-z0-9._:-]{1,256}$"
118
+ },
119
+ "new_generation": {
120
+ "type": "string",
121
+ "pattern": "^[A-Za-z0-9._:-]{1,256}$"
122
+ },
123
+ "continuity": {
124
+ "const": "intermediate_changes_unknown"
125
+ },
126
+ "occurred_ns": {
127
+ "type": "string",
128
+ "pattern": "^(0|[1-9][0-9]{0,19})$"
129
+ },
130
+ "gap_id": {
131
+ "type": "string",
132
+ "pattern": "^(0|[1-9][0-9]{0,19})$"
133
+ },
134
+ "gap_from": {
135
+ "type": "string",
136
+ "pattern": "^(0|[1-9][0-9]{0,19})$"
137
+ },
138
+ "gap_through": {
139
+ "type": "string",
140
+ "pattern": "^(0|[1-9][0-9]{0,19})$"
141
+ },
142
+ "identity_provenance": {
143
+ "enum": [
144
+ "claimed:v1",
145
+ "origin-unknown:v1",
146
+ "principal:v1",
147
+ "relay:v1",
148
+ "transport:v1"
149
+ ]
150
+ }
151
+ },
152
+ "required": []
153
+ }
154
+ },
155
+ "required": [
156
+ "seq",
157
+ "received_ns",
158
+ "kind",
159
+ "namespace",
160
+ "instance",
161
+ "observed_ns",
162
+ "name",
163
+ "value",
164
+ "data"
165
+ ]
166
+ }
167
+ },
168
+ "next_cursor": {
169
+ "type": "integer",
170
+ "minimum": 0
171
+ },
172
+ "has_more": {
173
+ "type": "boolean"
174
+ }
175
+ },
176
+ "required": [
177
+ "rows",
178
+ "next_cursor",
179
+ "has_more"
180
+ ]
181
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "array",
4
+ "items": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "pattern": "^[A-Za-z0-9_-]{1,64}$"
10
+ },
11
+ "owner": {
12
+ "type": "string",
13
+ "pattern": "^[a-z][a-z0-9-]{0,62}\\.[a-z][a-z0-9-]{0,62}$"
14
+ },
15
+ "reviewer": {
16
+ "type": "string",
17
+ "pattern": "^[a-z][a-z0-9-]{0,62}\\.[a-z][a-z0-9-]{0,62}$"
18
+ },
19
+ "depends_on": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ }
25
+ },
26
+ "title": {
27
+ "type": "string",
28
+ "minLength": 1
29
+ },
30
+ "acceptance": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "write_paths": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string",
38
+ "minLength": 1
39
+ },
40
+ "minItems": 1
41
+ },
42
+ "status": {
43
+ "const": "proposed"
44
+ }
45
+ },
46
+ "required": [
47
+ "id",
48
+ "owner",
49
+ "reviewer",
50
+ "depends_on",
51
+ "title",
52
+ "acceptance",
53
+ "write_paths",
54
+ "status"
55
+ ],
56
+ "additionalProperties": false
57
+ }
58
+ }
@@ -0,0 +1,84 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "version": {
7
+ "const": "1.1.0"
8
+ },
9
+ "project_id": {
10
+ "type": "string",
11
+ "pattern": "^[a-z][a-z0-9-]{0,62}$"
12
+ },
13
+ "title": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 160
17
+ },
18
+ "roster": {
19
+ "type": "array",
20
+ "minItems": 1,
21
+ "maxItems": 128,
22
+ "items": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "properties": {
26
+ "seat": {
27
+ "type": "string",
28
+ "pattern": "^[a-z][a-z0-9-]{0,62}\\.[a-z][a-z0-9-]{0,62}$"
29
+ },
30
+ "team": {
31
+ "type": "string",
32
+ "pattern": "^[a-z][a-z0-9-]{0,62}$"
33
+ },
34
+ "runtime": {
35
+ "enum": [
36
+ "claude-code",
37
+ "codex",
38
+ "omp",
39
+ "pi",
40
+ "stub",
41
+ "terminal"
42
+ ]
43
+ }
44
+ },
45
+ "required": [
46
+ "seat",
47
+ "team",
48
+ "runtime"
49
+ ]
50
+ }
51
+ },
52
+ "namespace": {
53
+ "type": "string",
54
+ "pattern": "^[A-Za-z0-9._:-]{1,256}$",
55
+ "maxLength": 128
56
+ },
57
+ "ttl_seconds": {
58
+ "type": "integer",
59
+ "minimum": 10,
60
+ "maximum": 600
61
+ },
62
+ "bindings": {
63
+ "type": "object",
64
+ "propertyNames": {
65
+ "type": "string",
66
+ "pattern": "^[A-Za-z0-9._:-]{1,256}$"
67
+ },
68
+ "additionalProperties": {
69
+ "type": "string",
70
+ "pattern": "^[a-z][a-z0-9-]{0,62}\\.[a-z][a-z0-9-]{0,62}$"
71
+ },
72
+ "maxProperties": 128
73
+ }
74
+ },
75
+ "required": [
76
+ "version",
77
+ "project_id",
78
+ "title",
79
+ "roster",
80
+ "namespace",
81
+ "ttl_seconds",
82
+ "bindings"
83
+ ]
84
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "name": {
7
+ "const": "sentinel-openrig"
8
+ },
9
+ "version": {
10
+ "const": "0.4.0"
11
+ },
12
+ "contract_version": {
13
+ "const": "1.1.0"
14
+ },
15
+ "kind": {
16
+ "const": "openrig-observability-companion"
17
+ },
18
+ "runtime": {
19
+ "const": "python3.11+"
20
+ },
21
+ "source": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "project": {
26
+ "const": "smota/openrig-telemetry"
27
+ },
28
+ "transport": {
29
+ "const": "otlp-http-json"
30
+ },
31
+ "signals": {
32
+ "const": [
33
+ "logs",
34
+ "metrics"
35
+ ]
36
+ },
37
+ "scope_version": {
38
+ "const": "1"
39
+ }
40
+ },
41
+ "required": [
42
+ "project",
43
+ "transport",
44
+ "signals",
45
+ "scope_version"
46
+ ]
47
+ },
48
+ "entrypoint": {
49
+ "const": "tools/sentinel.py"
50
+ },
51
+ "api": {
52
+ "const": "contracts/openapi.json"
53
+ },
54
+ "skill": {
55
+ "const": "plugin/skills/sentinel-monitor"
56
+ },
57
+ "authority": {
58
+ "const": "read-only"
59
+ },
60
+ "local_only": {
61
+ "const": true
62
+ }
63
+ },
64
+ "required": [
65
+ "name",
66
+ "version",
67
+ "contract_version",
68
+ "kind",
69
+ "runtime",
70
+ "source",
71
+ "entrypoint",
72
+ "api",
73
+ "skill",
74
+ "authority",
75
+ "local_only"
76
+ ]
77
+ }