vigilact-protocol 0.4.0a3__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.
Files changed (155) hide show
  1. vigilact_protocol-0.4.0a3/.github/CODEOWNERS +6 -0
  2. vigilact_protocol-0.4.0a3/.github/ISSUE_TEMPLATE/bug_report.md +17 -0
  3. vigilact_protocol-0.4.0a3/.github/ISSUE_TEMPLATE/config.yml +8 -0
  4. vigilact_protocol-0.4.0a3/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  5. vigilact_protocol-0.4.0a3/.github/ISSUE_TEMPLATE/protocol_proposal.md +23 -0
  6. vigilact_protocol-0.4.0a3/.github/PULL_REQUEST_TEMPLATE.md +11 -0
  7. vigilact_protocol-0.4.0a3/.github/dependabot.yml +12 -0
  8. vigilact_protocol-0.4.0a3/.github/workflows/ci.yml +194 -0
  9. vigilact_protocol-0.4.0a3/.github/workflows/docs.yml +99 -0
  10. vigilact_protocol-0.4.0a3/.github/workflows/poetry-lock.yml +33 -0
  11. vigilact_protocol-0.4.0a3/CHANGELOG.md +86 -0
  12. vigilact_protocol-0.4.0a3/CONTRIBUTING.md +48 -0
  13. vigilact_protocol-0.4.0a3/LICENSE +202 -0
  14. vigilact_protocol-0.4.0a3/Makefile +58 -0
  15. vigilact_protocol-0.4.0a3/NOTICE +8 -0
  16. vigilact_protocol-0.4.0a3/PKG-INFO +371 -0
  17. vigilact_protocol-0.4.0a3/README.md +340 -0
  18. vigilact_protocol-0.4.0a3/SECURITY.md +64 -0
  19. vigilact_protocol-0.4.0a3/api/openapi.json +1463 -0
  20. vigilact_protocol-0.4.0a3/docs/.nojekyll +0 -0
  21. vigilact_protocol-0.4.0a3/docs/CNAME +1 -0
  22. vigilact_protocol-0.4.0a3/docs/assets/architecture.svg +27 -0
  23. vigilact_protocol-0.4.0a3/docs/assets/favicon.ico +0 -0
  24. vigilact_protocol-0.4.0a3/docs/assets/favicon.png +0 -0
  25. vigilact_protocol-0.4.0a3/docs/assets/styles.css +44 -0
  26. vigilact_protocol-0.4.0a3/docs/assets/vigilact-16.png +0 -0
  27. vigilact_protocol-0.4.0a3/docs/assets/vigilact-180.png +0 -0
  28. vigilact_protocol-0.4.0a3/docs/assets/vigilact-192.png +0 -0
  29. vigilact_protocol-0.4.0a3/docs/assets/vigilact-32.png +0 -0
  30. vigilact_protocol-0.4.0a3/docs/assets/vigilact-48.png +0 -0
  31. vigilact_protocol-0.4.0a3/docs/assets/vigilact-512.png +0 -0
  32. vigilact_protocol-0.4.0a3/docs/assets/vigilact-logo.svg +8 -0
  33. vigilact_protocol-0.4.0a3/docs/assets/vigilact-original-artwork.png +0 -0
  34. vigilact_protocol-0.4.0a3/docs/assets/vigilact-readme-banner.png +0 -0
  35. vigilact_protocol-0.4.0a3/docs/concepts/architecture.md +51 -0
  36. vigilact_protocol-0.4.0a3/docs/concepts/contracts.md +57 -0
  37. vigilact_protocol-0.4.0a3/docs/concepts/core-profile.md +26 -0
  38. vigilact_protocol-0.4.0a3/docs/concepts/evaluation-semantics.md +53 -0
  39. vigilact_protocol-0.4.0a3/docs/concepts/failure-semantics.md +33 -0
  40. vigilact_protocol-0.4.0a3/docs/concepts/mental-model.md +42 -0
  41. vigilact_protocol-0.4.0a3/docs/concepts/trust.md +40 -0
  42. vigilact_protocol-0.4.0a3/docs/concepts/wire-timestamps.md +35 -0
  43. vigilact_protocol-0.4.0a3/docs/getting-started/first-contract.md +64 -0
  44. vigilact_protocol-0.4.0a3/docs/getting-started/five-minute-demo.md +53 -0
  45. vigilact_protocol-0.4.0a3/docs/getting-started/install.md +58 -0
  46. vigilact_protocol-0.4.0a3/docs/guides/backup-integration.md +60 -0
  47. vigilact_protocol-0.4.0a3/docs/guides/go-observer.md +34 -0
  48. vigilact_protocol-0.4.0a3/docs/guides/javascript.md +38 -0
  49. vigilact_protocol-0.4.0a3/docs/guides/observe-and-act.md +32 -0
  50. vigilact_protocol-0.4.0a3/docs/guides/outbox.md +50 -0
  51. vigilact_protocol-0.4.0a3/docs/guides/python.md +68 -0
  52. vigilact_protocol-0.4.0a3/docs/img/favicon.ico +0 -0
  53. vigilact_protocol-0.4.0a3/docs/index.md +67 -0
  54. vigilact_protocol-0.4.0a3/docs/maintainers/docs-workflow.md +52 -0
  55. vigilact_protocol-0.4.0a3/docs/maintainers/github-pages.md +81 -0
  56. vigilact_protocol-0.4.0a3/docs/maintainers/poetry-workflow.md +47 -0
  57. vigilact_protocol-0.4.0a3/docs/maintainers/storage-backup.md +35 -0
  58. vigilact_protocol-0.4.0a3/docs/project-and-maintainer.md +27 -0
  59. vigilact_protocol-0.4.0a3/docs/protocol/capabilities.md +32 -0
  60. vigilact_protocol-0.4.0a3/docs/protocol/command-lifecycle.md +66 -0
  61. vigilact_protocol-0.4.0a3/docs/protocol/commands.md +55 -0
  62. vigilact_protocol-0.4.0a3/docs/protocol/events.md +46 -0
  63. vigilact_protocol-0.4.0a3/docs/protocol/http-api.md +60 -0
  64. vigilact_protocol-0.4.0a3/docs/reference/compatibility.md +40 -0
  65. vigilact_protocol-0.4.0a3/docs/reference/configuration.md +41 -0
  66. vigilact_protocol-0.4.0a3/docs/reference/conformance.md +44 -0
  67. vigilact_protocol-0.4.0a3/docs/reference/contributing.md +39 -0
  68. vigilact_protocol-0.4.0a3/docs/reference/engineering-evidence.md +62 -0
  69. vigilact_protocol-0.4.0a3/docs/reference/error-catalog.md +42 -0
  70. vigilact_protocol-0.4.0a3/docs/reference/faq.md +37 -0
  71. vigilact_protocol-0.4.0a3/docs/reference/glossary.md +26 -0
  72. vigilact_protocol-0.4.0a3/docs/reference/publication-gates.md +34 -0
  73. vigilact_protocol-0.4.0a3/docs/reference/release-evidence.md +40 -0
  74. vigilact_protocol-0.4.0a3/docs/reference/security.md +40 -0
  75. vigilact_protocol-0.4.0a3/docs/reference/semantic-vectors.md +33 -0
  76. vigilact_protocol-0.4.0a3/docs/reference/threat-model.md +41 -0
  77. vigilact_protocol-0.4.0a3/docs/reference/troubleshooting.md +38 -0
  78. vigilact_protocol-0.4.0a3/examples/http_contract_demo.py +107 -0
  79. vigilact_protocol-0.4.0a3/examples/node_client.mjs +42 -0
  80. vigilact_protocol-0.4.0a3/examples/observe_and_act.py +85 -0
  81. vigilact_protocol-0.4.0a3/examples/quickstart.py +96 -0
  82. vigilact_protocol-0.4.0a3/implementations/go-observer/README.md +39 -0
  83. vigilact_protocol-0.4.0a3/implementations/go-observer/go.mod +3 -0
  84. vigilact_protocol-0.4.0a3/implementations/go-observer/main.go +559 -0
  85. vigilact_protocol-0.4.0a3/implementations/go-observer/main_test.go +194 -0
  86. vigilact_protocol-0.4.0a3/implementations/go-vector-evaluator/main.go +135 -0
  87. vigilact_protocol-0.4.0a3/mkdocs.yml +70 -0
  88. vigilact_protocol-0.4.0a3/outreach/HOMEPAGE_IT.md +33 -0
  89. vigilact_protocol-0.4.0a3/outreach/LINKEDIN_IT.md +27 -0
  90. vigilact_protocol-0.4.0a3/outreach/PYTHON_COMMUNITY_EN.md +23 -0
  91. vigilact_protocol-0.4.0a3/outreach/PYTHON_COMMUNITY_IT.md +16 -0
  92. vigilact_protocol-0.4.0a3/pyproject.toml +100 -0
  93. vigilact_protocol-0.4.0a3/research/ADOPTION_EXPERIMENT.md +44 -0
  94. vigilact_protocol-0.4.0a3/research/CONFORMANCE_LOCAL_2026-11-23.json +216 -0
  95. vigilact_protocol-0.4.0a3/research/ECOSYSTEM_2026-11.md +60 -0
  96. vigilact_protocol-0.4.0a3/research/ENGINEERING_SPRINTS_2026-11-23.md +110 -0
  97. vigilact_protocol-0.4.0a3/research/LAUNCH_KIT.md +59 -0
  98. vigilact_protocol-0.4.0a3/research/PUBLIC_RELEASE_NOTES_v0.3.0a1.md +37 -0
  99. vigilact_protocol-0.4.0a3/research/PUBLIC_RELEASE_NOTES_v0.4.0a1.md +38 -0
  100. vigilact_protocol-0.4.0a3/research/PUBLIC_RELEASE_NOTES_v0.4.0a3.md +10 -0
  101. vigilact_protocol-0.4.0a3/research/SPRINTS_EVIDENCE_2026-11-23.md +60 -0
  102. vigilact_protocol-0.4.0a3/research/SPRINT_REPORT_2026-11-23.md +73 -0
  103. vigilact_protocol-0.4.0a3/schemas/capability-manifest.schema.json +55 -0
  104. vigilact_protocol-0.4.0a3/schemas/capability-view.schema.json +59 -0
  105. vigilact_protocol-0.4.0a3/schemas/cloudevent-subset.schema.json +68 -0
  106. vigilact_protocol-0.4.0a3/schemas/command-list.schema.json +119 -0
  107. vigilact_protocol-0.4.0a3/schemas/command-request.schema.json +39 -0
  108. vigilact_protocol-0.4.0a3/schemas/command-result.schema.json +23 -0
  109. vigilact_protocol-0.4.0a3/schemas/command-view.schema.json +100 -0
  110. vigilact_protocol-0.4.0a3/schemas/contract-proposal.schema.json +56 -0
  111. vigilact_protocol-0.4.0a3/schemas/contract-view.schema.json +98 -0
  112. vigilact_protocol-0.4.0a3/schemas/event-receipt.schema.json +26 -0
  113. vigilact_protocol-0.4.0a3/schemas/expected-event-vectors.schema.json +152 -0
  114. vigilact_protocol-0.4.0a3/schemas/outbox-page.schema.json +110 -0
  115. vigilact_protocol-0.4.0a3/scripts/backup_sqlite.py +48 -0
  116. vigilact_protocol-0.4.0a3/scripts/check_branding.py +69 -0
  117. vigilact_protocol-0.4.0a3/scripts/check_docs.py +130 -0
  118. vigilact_protocol-0.4.0a3/scripts/check_pages_config.py +26 -0
  119. vigilact_protocol-0.4.0a3/scripts/conformance_http.py +135 -0
  120. vigilact_protocol-0.4.0a3/scripts/differential_core.py +131 -0
  121. vigilact_protocol-0.4.0a3/scripts/expected_event_vectors.py +79 -0
  122. vigilact_protocol-0.4.0a3/scripts/export_specs.py +54 -0
  123. vigilact_protocol-0.4.0a3/scripts/load_smoke.py +115 -0
  124. vigilact_protocol-0.4.0a3/scripts/render_evidence.py +88 -0
  125. vigilact_protocol-0.4.0a3/scripts/test_observers.py +190 -0
  126. vigilact_protocol-0.4.0a3/spec/ARCHITECTURE.md +63 -0
  127. vigilact_protocol-0.4.0a3/spec/COMPATIBILITY.md +38 -0
  128. vigilact_protocol-0.4.0a3/spec/CONFORMANCE.md +80 -0
  129. vigilact_protocol-0.4.0a3/spec/CORE_EXPECTED_EVENT.md +105 -0
  130. vigilact_protocol-0.4.0a3/spec/ERRORS.md +26 -0
  131. vigilact_protocol-0.4.0a3/spec/LAUNCH.md +62 -0
  132. vigilact_protocol-0.4.0a3/spec/PROTOCOL.md +157 -0
  133. vigilact_protocol-0.4.0a3/spec/vectors/README.md +37 -0
  134. vigilact_protocol-0.4.0a3/spec/vectors/expected-event.json +336 -0
  135. vigilact_protocol-0.4.0a3/src/vigilact/__init__.py +6 -0
  136. vigilact_protocol-0.4.0a3/src/vigilact/client.py +64 -0
  137. vigilact_protocol-0.4.0a3/src/vigilact/http_limits.py +81 -0
  138. vigilact_protocol-0.4.0a3/src/vigilact/models.py +164 -0
  139. vigilact_protocol-0.4.0a3/src/vigilact/server.py +239 -0
  140. vigilact_protocol-0.4.0a3/src/vigilact/service.py +373 -0
  141. vigilact_protocol-0.4.0a3/tests/conftest.py +55 -0
  142. vigilact_protocol-0.4.0a3/tests/test_command_expiry.py +138 -0
  143. vigilact_protocol-0.4.0a3/tests/test_concurrency_invariants.py +28 -0
  144. vigilact_protocol-0.4.0a3/tests/test_contracts.py +93 -0
  145. vigilact_protocol-0.4.0a3/tests/test_documentation_walkthrough.py +40 -0
  146. vigilact_protocol-0.4.0a3/tests/test_fault_injection_transactions.py +101 -0
  147. vigilact_protocol-0.4.0a3/tests/test_hardening.py +159 -0
  148. vigilact_protocol-0.4.0a3/tests/test_observe_and_act_demo.py +11 -0
  149. vigilact_protocol-0.4.0a3/tests/test_poetry_packaging.py +62 -0
  150. vigilact_protocol-0.4.0a3/tests/test_render_evidence.py +46 -0
  151. vigilact_protocol-0.4.0a3/tests/test_sdk.py +32 -0
  152. vigilact_protocol-0.4.0a3/tests/test_security_and_commands.py +87 -0
  153. vigilact_protocol-0.4.0a3/tests/test_semantic_vectors.py +29 -0
  154. vigilact_protocol-0.4.0a3/tests/test_storage_backup.py +47 -0
  155. vigilact_protocol-0.4.0a3/tests/test_timestamp_wire.py +31 -0
@@ -0,0 +1,6 @@
1
+ # Initial single-maintainer ownership; GitHub review enforcement must be enabled manually.
2
+ * @atellaluca
3
+ /.github/ @atellaluca
4
+ /src/vigilact/server.py @atellaluca
5
+ /src/vigilact/service.py @atellaluca
6
+ /spec/ @atellaluca
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: Bug report
3
+ description: Report a reproducible problem in the experimental implementation
4
+ labels: [bug]
5
+ ---
6
+
7
+ ## Version and environment
8
+
9
+ ## Steps to reproduce
10
+
11
+ ## Expected behavior
12
+
13
+ ## Actual behavior
14
+
15
+ ## Sanitized logs
16
+
17
+ Do not attach credentials, production contracts, or private event payloads.
@@ -0,0 +1,8 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Security vulnerability
4
+ url: https://github.com/atellaluca/vigilact/security/advisories/new
5
+ about: Report vulnerabilities privately, never in public issues.
6
+ - name: Usage support
7
+ url: https://github.com/atellaluca/vigilact/discussions
8
+ about: Ask for help and propose use cases in GitHub Discussions (after it has been enabled).
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ description: Suggest a focused improvement with a reproducible use case
4
+ labels: [enhancement]
5
+ ---
6
+
7
+ ## Problem
8
+ What concrete problem does this solve? Include one real workflow.
9
+
10
+ ## Proposed behavior
11
+ Describe the expected API or semantics, not just an implementation.
12
+
13
+ ## Workarounds / alternatives
14
+ What can users do today?
15
+
16
+ ## Compatibility and security
17
+ Does this affect previously accepted contracts, error codes, or trust boundaries?
18
+
19
+ ## Acceptance criteria
20
+ How would a maintainer verify this works?
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: Protocol proposal
3
+ description: Discuss a versioned protocol extension before implementing it
4
+ labels: [protocol, proposal]
5
+ ---
6
+
7
+ ## Interoperability gap
8
+ Provide an example involving two independently implemented systems.
9
+
10
+ ## Normative semantics
11
+ Define inputs, outputs, state transitions, authorization, and edge cases.
12
+
13
+ ## Example wire exchange
14
+ Use sanitized JSON. No credentials or sensitive operational data.
15
+
16
+ ## Compatibility plan
17
+ What would older clients and observers do with this message?
18
+
19
+ ## Negative cases
20
+ Duplicates, late evidence, clock changes, authentication and failures.
21
+
22
+ ## Conformance tests
23
+ List independent implementation test vectors that prove the behavior.
@@ -0,0 +1,11 @@
1
+ ## What does this change?
2
+
3
+ ## Why is it needed for interoperability?
4
+
5
+ ## How was it tested?
6
+
7
+ ## Backward compatibility / security considerations
8
+
9
+ - [ ] I ran `poetry run pytest -q` and the quickstart.
10
+ - [ ] I updated protocol documentation if wire semantics changed.
11
+ - [ ] No secrets, credentials or private telemetry were added.
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ open-pull-requests-limit: 5
8
+ - package-ecosystem: "pip"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "weekly"
12
+ open-pull-requests-limit: 5
@@ -0,0 +1,194 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ tags: ['v*']
7
+ pull_request:
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ concurrency:
14
+ group: ci-${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress: true
16
+
17
+ jobs:
18
+ test:
19
+ name: Tests / Python ${{ matrix.python-version }}
20
+ runs-on: ubuntu-latest
21
+ timeout-minutes: 15
22
+ strategy:
23
+ fail-fast: false
24
+ matrix:
25
+ python-version: ['3.11', '3.12', '3.13']
26
+ steps:
27
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
+ with:
29
+ persist-credentials: false
30
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
31
+ with:
32
+ python-version: ${{ matrix.python-version }}
33
+ - name: Install Poetry 2.5.2
34
+ run: pipx install poetry==2.5.2
35
+ - name: Check committed dependency lock
36
+ run: poetry check --lock
37
+ - name: Recreate environment from lock
38
+ run: poetry sync --all-groups --all-extras
39
+ - name: Run automated tests and enforce coverage
40
+ run: poetry run python -m pytest -q --cov=vigilact --cov-report=term-missing --cov-fail-under=90
41
+ - name: Run deterministic demonstration
42
+ run: poetry run python examples/quickstart.py
43
+ # Schema-generator versions are pinned in pyproject.toml and poetry.lock.
44
+ - name: Check generated protocol artifacts are committed
45
+ if: matrix.python-version == '3.13'
46
+ run: |
47
+ poetry run python scripts/export_specs.py
48
+ git diff --exit-code -- api/ schemas/
49
+ - name: Syntax validation
50
+ run: poetry run python -m compileall -q src scripts examples
51
+
52
+
53
+ semantic-interoperability:
54
+ name: Experimental semantics / Python vs independent Go
55
+ runs-on: ubuntu-latest
56
+ timeout-minutes: 12
57
+ steps:
58
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
59
+ with:
60
+ persist-credentials: false
61
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
62
+ with:
63
+ python-version: '3.13'
64
+ - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
65
+ with:
66
+ go-version: '1.24'
67
+ cache: false
68
+ - name: Install Poetry 2.5.2
69
+ run: pipx install poetry==2.5.2
70
+ - name: Check lock and sync
71
+ run: |
72
+ poetry check --lock
73
+ poetry sync --all-groups --all-extras
74
+ - name: Validate vectors against the real Python service
75
+ run: poetry run python scripts/expected_event_vectors.py --check
76
+ - name: Validate vectors against the independent Go evaluator
77
+ run: go run ./implementations/go-vector-evaluator/main.go --check
78
+ - name: Compare cross-language traces
79
+ run: |
80
+ poetry run python scripts/expected_event_vectors.py > "$RUNNER_TEMP/python-trace.json"
81
+ go run ./implementations/go-vector-evaluator/main.go > "$RUNNER_TEMP/go-trace.json"
82
+ poetry run python -c 'import json,os,pathlib; p=pathlib.Path(os.environ["RUNNER_TEMP"]); assert json.loads((p/"python-trace.json").read_text()) == json.loads((p/"go-trace.json").read_text()); print("Cross-language traces identical")'
83
+
84
+ independent-core-servers:
85
+ name: Two independent HTTP observers / same Core profile
86
+ runs-on: ubuntu-latest
87
+ timeout-minutes: 15
88
+ steps:
89
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
90
+ with:
91
+ persist-credentials: false
92
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
93
+ with:
94
+ python-version: '3.13'
95
+ - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
96
+ with:
97
+ go-version: '1.24'
98
+ cache: false
99
+ - name: Install Poetry 2.5.2
100
+ run: pipx install poetry==2.5.2
101
+ - name: Check lock and sync
102
+ run: |
103
+ poetry check --lock
104
+ poetry sync --all-groups --all-extras
105
+ - name: Go race and static checks
106
+ working-directory: implementations/go-observer
107
+ run: |
108
+ go vet ./...
109
+ go test -race ./...
110
+ - name: Execute identical HTTP and restart checks on both observers
111
+ run: >-
112
+ poetry run python scripts/test_observers.py --load 25 --differential-cases 12
113
+ --seed 20261123 --report "$RUNNER_TEMP/vigilact-core-evidence.json"
114
+ - name: Render public, bounded verification summary
115
+ run: >-
116
+ poetry run python scripts/render_evidence.py "$RUNNER_TEMP/vigilact-core-evidence.json"
117
+ --output "$RUNNER_TEMP/vigilact-CORE_PROOF.md"
118
+ - name: Publish Core evidence artifact for inspection
119
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
120
+ with:
121
+ name: vigilact-core-evidence
122
+ path: |
123
+ ${{ runner.temp }}/vigilact-core-evidence.json
124
+ ${{ runner.temp }}/vigilact-CORE_PROOF.md
125
+ if-no-files-found: error
126
+ retention-days: 14
127
+
128
+ lint-and-build:
129
+ name: Lint and package validation
130
+ runs-on: ubuntu-latest
131
+ timeout-minutes: 15
132
+ steps:
133
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
134
+ with:
135
+ persist-credentials: false
136
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
137
+ with:
138
+ python-version: '3.13'
139
+ - name: Install Poetry 2.5.2
140
+ run: pipx install poetry==2.5.2
141
+ - name: Check lock and sync
142
+ run: |
143
+ poetry check --lock
144
+ poetry sync --all-groups --all-extras
145
+ - name: Ruff static analysis
146
+ run: poetry run ruff check .
147
+ - name: Build source and wheel archives
148
+ run: poetry build
149
+ - name: Validate distribution metadata
150
+ run: poetry run twine check dist/*
151
+ - name: Upload build artifacts (not published)
152
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
153
+ with:
154
+ name: vigilact-python-dist
155
+ path: dist/*
156
+ if-no-files-found: error
157
+ retention-days: 14
158
+
159
+ http-conformance-smoke:
160
+ name: External HTTP protocol smoke checks
161
+ runs-on: ubuntu-latest
162
+ timeout-minutes: 10
163
+ env:
164
+ VIGILACT_CREDENTIALS_JSON: '{"ci-agent":{"role":"agent","key":"ci-ephemeral-agent-test-key-123456789"},"ci-operator":{"role":"operator","key":"ci-ephemeral-ops-test-key-123456789"}}'
165
+ VIGILACT_CONFORMANCE_AGENT_KEY: 'ci-ephemeral-agent-test-key-123456789'
166
+ VIGILACT_CONFORMANCE_OPERATOR_KEY: 'ci-ephemeral-ops-test-key-123456789'
167
+ VIGILACT_DB_PATH: '${{ runner.temp }}/vigilact-conformance.sqlite3'
168
+ steps:
169
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
170
+ with:
171
+ persist-credentials: false
172
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
173
+ with:
174
+ python-version: '3.13'
175
+ - name: Install Poetry 2.5.2
176
+ run: pipx install poetry==2.5.2
177
+ - name: Check lock and sync
178
+ run: |
179
+ poetry check --lock
180
+ poetry sync --all-groups --all-extras
181
+ - name: Start local reference observer
182
+ run: |
183
+ poetry run uvicorn 'vigilact.server:create_app' --factory --host 127.0.0.1 --port 18948 > /tmp/vigilact-smoke.log 2>&1 &
184
+ for i in {1..50}; do
185
+ if curl -fsS http://127.0.0.1:18948/healthz >/dev/null; then exit 0; fi
186
+ sleep 0.2
187
+ done
188
+ cat /tmp/vigilact-smoke.log
189
+ exit 1
190
+ - name: Test observer through the documented HTTP API
191
+ run: |
192
+ poetry run python scripts/conformance_http.py \
193
+ --url http://127.0.0.1:18948 \
194
+ --agent ci-agent --operator ci-operator
@@ -0,0 +1,99 @@
1
+ name: Docs
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - 'docs/**'
7
+ - 'mkdocs.yml'
8
+ - 'pyproject.toml'
9
+ - 'poetry.lock'
10
+ - 'scripts/check_docs.py'
11
+ - 'scripts/check_pages_config.py'
12
+ - 'scripts/check_branding.py'
13
+ - '.github/workflows/docs.yml'
14
+ - 'README.md'
15
+ - 'docs/assets/vigilact-readme-banner.png'
16
+ - 'api/**'
17
+ - 'src/**'
18
+ - 'examples/http_contract_demo.py'
19
+ - 'tests/test_documentation_walkthrough.py'
20
+ - 'spec/**'
21
+ - 'implementations/go-observer/**'
22
+ push:
23
+ branches: [main]
24
+ paths:
25
+ - 'docs/**'
26
+ - 'mkdocs.yml'
27
+ - 'pyproject.toml'
28
+ - 'poetry.lock'
29
+ - 'scripts/check_docs.py'
30
+ - 'scripts/check_pages_config.py'
31
+ - 'scripts/check_branding.py'
32
+ - '.github/workflows/docs.yml'
33
+ - 'README.md'
34
+ - 'docs/assets/vigilact-readme-banner.png'
35
+ - 'api/**'
36
+ - 'src/**'
37
+ - 'examples/http_contract_demo.py'
38
+ - 'tests/test_documentation_walkthrough.py'
39
+ - 'spec/**'
40
+ - 'implementations/go-observer/**'
41
+ workflow_dispatch:
42
+
43
+ permissions:
44
+ contents: read
45
+
46
+ concurrency:
47
+ group: docs-${{ github.ref }}
48
+ cancel-in-progress: true
49
+
50
+ jobs:
51
+ build:
52
+ name: Verify and build documentation
53
+ runs-on: ubuntu-latest
54
+ timeout-minutes: 10
55
+ steps:
56
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
57
+ with:
58
+ persist-credentials: false
59
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
60
+ with:
61
+ python-version: '3.13'
62
+ - name: Install Poetry 2.5.2
63
+ run: pipx install poetry==2.5.2
64
+ - name: Check lock and install documentation group
65
+ run: |
66
+ poetry check --lock
67
+ poetry sync --all-groups --all-extras
68
+ - name: Check navigation, links and endpoint coverage
69
+ run: poetry run python scripts/check_docs.py
70
+ - name: Check custom domain configuration
71
+ run: poetry run python scripts/check_pages_config.py
72
+ - name: Check project branding and maintainer links
73
+ run: poetry run python scripts/check_branding.py
74
+ - name: Test published HTTP walkthrough
75
+ run: poetry run python -m pytest -q tests/test_documentation_walkthrough.py
76
+ - name: Build strict MkDocs site
77
+ run: poetry run mkdocs build --strict
78
+ - name: Upload GitHub Pages artifact
79
+ if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
80
+ uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
81
+ with:
82
+ path: site/
83
+
84
+ deploy:
85
+ name: Publish to GitHub Pages
86
+ if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
87
+ needs: build
88
+ runs-on: ubuntu-latest
89
+ timeout-minutes: 10
90
+ permissions:
91
+ pages: write
92
+ id-token: write
93
+ environment:
94
+ name: github-pages
95
+ url: ${{ steps.deployment.outputs.page_url }}
96
+ steps:
97
+ - name: Deploy documentation
98
+ id: deployment
99
+ uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
@@ -0,0 +1,33 @@
1
+ name: Generate Poetry lock (maintainer)
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ permissions:
7
+ contents: read
8
+
9
+ jobs:
10
+ lock:
11
+ name: Generate verifiable poetry.lock
12
+ runs-on: ubuntu-latest
13
+ timeout-minutes: 15
14
+ steps:
15
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16
+ with:
17
+ persist-credentials: false
18
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
19
+ with:
20
+ python-version: '3.13'
21
+ - name: Install Poetry 2.5.2
22
+ run: pipx install poetry==2.5.2
23
+ - name: Generate and validate the real lockfile
24
+ run: |
25
+ poetry lock
26
+ poetry check --lock
27
+ - name: Upload lockfile for review and commit
28
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
29
+ with:
30
+ name: vigilact-poetry-lock
31
+ path: poetry.lock
32
+ if-no-files-found: error
33
+ retention-days: 14
@@ -0,0 +1,86 @@
1
+ ## 0.4.0a3 — Poetry packaging and README identity (2026-11-23)
2
+
3
+ - Migrated the Python package build to `poetry-core` with single-source dev/docs dependency groups.
4
+ - Updated Makefile, GitHub Actions, docs and release instructions to run through Poetry.
5
+ - Added branded README banner and footer logo. No experimental wire-protocol changes.
6
+ - A genuine `poetry.lock` must be generated in an online Poetry environment and committed before declaring locked environment reproducibility.
7
+
8
+ ## 0.4.0a2 — reproducible engineering evidence (2026-11-23)
9
+
10
+ - Added seeded, two-agent differential HTTP scenarios against independent Python and Go Core observers.
11
+ - Added transaction failure injection at evaluation-outbox boundaries, verifying rollback and safe retry.
12
+ - Extended the publication gate with machine-readable local evidence and canonical trace comparison.
13
+ - Added technical evidence documentation, boundaries, and outreach drafts for public review.
14
+ - **No wire-protocol changes:** `vigilact/0.1-experimental` and `core.expected_event/0.1` remain unchanged.
15
+
16
+ ## 0.4.0a1 — command safety, reproducibility and custom-domain docs (2026-11-23)
17
+
18
+ - Added Python command TTL, lease timeout -> `UNKNOWN`, safe no-retry semantics, late agent results, and operator command lookup.
19
+ - Added in-place fail-closed migration for older SQLite command tables and online backup/restore helper.
20
+ - Enforced RFC 3339 timestamps with at most microsecond precision across Python and Go Core observers.
21
+ - Expanded shared black-box HTTP conformance to 22 checks per observer and added bounded concurrent load smoke.
22
+ - Added explicit threat model, release evidence, command lifecycle and documentation hosted at the intended custom domain.
23
+ - Prepared GitHub Pages workflow, DNS guide, canonical URL and docs/CNAME declaration; deployment requires owner configuration.
24
+ - Preserved `vigilact/0.1-experimental` and the narrow `core.expected_event/0.1` profile; no production guarantees.
25
+
26
+ ## 0.3.0a1 — Independent Core observer and publication gates (2026-11-23)
27
+
28
+ - Introduced an independent Go HTTP observer (`core.expected_event/0.1`) with file-backed local persistence, startup reconciliation and race-tested concurrent ingest.
29
+ - Added black-box 15-check HTTP + restart publication gate for **both** reference servers.
30
+ - Documented Core profile requirements, implementation boundaries, public release checks, and explicit Go scaling limitations.
31
+ - Preserved protocol identifier `vigilact/0.1-experimental`; no stable 1.0 claim.
32
+
33
+ # Changelog
34
+
35
+ All notable changes are documented here. Versions refer to the reference
36
+ implementation; the experimental wire protocol has a separate version.
37
+
38
+ ## Unreleased — semantic conformance and research sprints (no protocol change)
39
+
40
+ - Added 14 public expected-event golden vectors and their JSON Schema, checked against the real Python service and an independent standard-library Go evaluator.
41
+ - Added CI cross-language comparison, documentation of vector limitations, and a repeatable observe-to-authorized-diagnostic demo.
42
+ - Added an ecosystem/prior-art review and adoption hypothesis document.
43
+ - No change to `vigilact/0.1-experimental` wire protocol; Go is not yet a full independent server.
44
+
45
+ ## Unreleased — documentation (no protocol change)
46
+
47
+ - Added a searchable MkDocs documentation site with expanded guides, examples,
48
+ API reference, security guidance and troubleshooting.
49
+ - Added docs validation in CI and optional GitHub Pages deployment.
50
+ - Added a tested end-to-end HTTP walkthrough, detailed evaluation/failure semantics,
51
+ versioning, glossary, error catalog, FAQ and contributor docs workflow.
52
+ - Expanded documentation verification to include HTTP methods and broken links.
53
+ - Kept the documentation builder out of server runtime dependencies.
54
+
55
+ ## 0.2.0a1 — Open source hardening (prepared, not yet released)
56
+
57
+ ### Added
58
+
59
+ - Default-off remote command endpoints, with explicit server-side opt-in.
60
+ - Separate liveness (`/healthz`) and SQLite-backed readiness (`/readyz`) endpoints.
61
+ - Request body cap for declared-length and streaming HTTP requests.
62
+ - Problem Details-style error payloads without reflecting untrusted input.
63
+ - Independent HTTP conformance smoke runner against any accessible observer.
64
+ - Regression tests for deadline boundaries, disabled commands, malicious inputs,
65
+ oversized bodies and idempotent references.
66
+ - GitHub Actions CI matrix, coverage gate, package builds and SHA-pinned actions.
67
+ - Dependabot, governance, release policy, contribution and protocol issue templates,
68
+ citation metadata, compatibility rules and a maintainer checklist.
69
+
70
+ ### Compatibility notes
71
+
72
+ - **Breaking runtime default:** command endpoints were usable when an operator
73
+ and agent opted in; they now additionally require explicit server enablement.
74
+ - Error HTTP media type changed to `application/problem+json` while preserving
75
+ the existing `error` extension field.
76
+ - **Protocol profile remains experimental 0.1**; the implementation version
77
+ bump does not assert protocol stabilization.
78
+
79
+ ## 0.1.0a1 — Initial experimental reference implementation
80
+
81
+ - Single expected-event contracts, SQLite observer, limited CloudEvents JSON
82
+ evidence, opt-in capability advertisement, remote command queue and demo.
83
+
84
+ Earlier versions were provided as source archives; no GitHub or PyPI publication
85
+ is implied by this changelog.
86
+
@@ -0,0 +1,48 @@
1
+ # Contributing
2
+
3
+ Thank you for helping build Vigilact. The project is alpha: **avoid breaking the core wire format without a proposal**.
4
+
5
+ 1. Open an issue describing the interoperability problem and an example with at least two different applications.
6
+ 2. For changes to protocol semantics, submit a short design note under `spec/` before a major implementation change.
7
+ 3. Keep the wire representation language-neutral; prefer existing standards to proprietary types.
8
+ 4. Add tests for success, failure, duplicate/replayed messages, authorization, and time boundaries.
9
+ 5. Run `poetry sync --all-groups --all-extras`, `pytest -q` and `poetry run python examples/quickstart.py`.
10
+ 6. Never commit credentials or production telemetry.
11
+
12
+ By submitting a contribution, you agree to license it under Apache-2.0. This repository currently has no CLA requirement.
13
+
14
+ All discussion should follow the [Code of Conduct](CODE_OF_CONDUCT.md).
15
+
16
+ ## Development environment
17
+
18
+ - CPython 3.11–3.13 and Poetry 2.5.2; Poetry manages the isolated environment.
19
+ - On the first migration checkout, generate `poetry.lock` using `poetry lock` and commit it.
20
+ - Then run `make install && make coverage && make demo && make lint`.
21
+ - For API changes: `make specs`, then review the generated schemas/OpenAPI diff.
22
+ - For release candidates: `make build`.
23
+ - Include a regression test with each behavioral change; do not update snapshots
24
+ merely to silence an unexpected difference.
25
+
26
+ ## Review readiness
27
+
28
+ Small, single-purpose PRs are easier to review. Explain the reproducible failure,
29
+ wire-format impact, trade-off and tests. For new protocol behavior, attach an ADR
30
+ and a transport-independent test scenario. Keep types and examples independent
31
+ of the Python reference implementation.
32
+
33
+ See [GOVERNANCE.md](GOVERNANCE.md) for how decisions are made. Vulnerabilities
34
+ should be reported privately, not in public PRs or issues.
35
+
36
+ ## Documentation contributions
37
+
38
+ Documentation is source-controlled in `docs/` and configured through `mkdocs.yml`.
39
+ Before proposing documentation changes, run:
40
+
41
+ ```bash
42
+ poetry sync --all-groups --all-extras
43
+ poetry run python scripts/check_docs.py
44
+ poetry run mkdocs build --strict
45
+ ```
46
+
47
+ For API changes, update the protocol draft, generated OpenAPI and schemas,
48
+ and relevant documentation pages together. See `docs/reference/contributing.md`.