Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -25,6 +26,7 @@ jobs:
- run: python -m ruff check .
- run: python -m mypy policy_engine
- run: python -m pytest --cov=policy_engine --cov-report=term-missing
- run: python -m pip_audit --local --progress-spinner off
- name: Check tag and package versions
if: startsWith(github.ref, 'refs/tags/')
env:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ until the owner publishes a release.
- Self-contained offline schemas and automated wheel/sdist inventories plus installed journeys.
- Optional pyperf benchmark harness with 20 correctness-checked synthetic workloads, source/input
fingerprints, explicit timing boundaries, and cross-platform runner verification.
- Dependency auditing and a bounded job in the non-publishing release-artifact workflow.
- Direct Request construction now validates fields and bounded contexts before freezing; mixed-key
batch errors remain structured; unpaired surrogates and integers over 4,096 bits are rejected.
- A regression-tested agent-tool enforcement example covering explicit allow, explicit deny,
Expand Down
36 changes: 32 additions & 4 deletions docs/PRODUCTIZATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ planned checks as passed.

- [ ] Optional signed-policy verification adapter.
- [ ] Optional policy-set hot reload with atomic last-known-good behavior.
- [ ] Performance benchmark corpus for the 512-rule upper bound.
- [x] Performance benchmark corpus for the 512-rule upper bound.
- [ ] More condition primitives only when validated user demand justifies the complexity.

## Implementation checklist
Expand Down Expand Up @@ -173,7 +173,7 @@ planned checks as passed.
Samsarix LLC.
- **Owner/release:** Reserve `samsarix-policy-engine` on PyPI, configure trusted publishing, and
publish only after license review. Verify installation from the public artifact. The exact PyPI
project endpoint returned 404 during the 2026-07-28 availability check, but that is not a
JSON project endpoint returned 404 again during the 2026-08-31 release-state audit, but that is not a
reservation or guarantee.
- **Owner/portfolio:** Decide whether the old `helix_core` extraction should live in a separate
archival repository. Git history is sufficient for this release candidate.
Expand All @@ -184,6 +184,10 @@ planned checks as passed.
- **Owner/security:** Run an independent security review before a production rollout. The automated
scanner is intentionally skipped per owner direction; the repository receives direct manual
review, adversarial tests, dependency auditing, and bounded-input verification instead.
- **Owner/repository controls:** `main` had no GitHub branch protection during the 2026-08-31 audit.
Before public publication, configure a ruleset or branch protection requiring the meaningful CI
checks and pull-request review, with an owner-documented emergency bypass/rollback path. Verify
the rule against a test pull request rather than assuming the settings page is effective.

## Known risks

Expand Down Expand Up @@ -250,10 +254,11 @@ Completed the remaining local promotion/enforcement workflow:
pip 26.1.2. Upgraded locally to 26.2.1 and re-audited: no known vulnerabilities (unpublished local
package skipped). Runtime dependencies remain empty.

Local verification: formatting, lint and strict mypy passed; 150 tests passed with 93.15%
Local verification: formatting, lint and strict mypy passed; 162 tests passed with 93.27%
branch-aware coverage. Wheel and sdist build/Twine checks and isolated installed journeys passed.
Final distribution checks use `python scripts/verify_distribution.py --dist
dist/candidate-20260831-final`; exact final artifact hashes and CI results belong in the PR record.
dist/candidate-release-audit-20260831`; exact final artifact hashes and CI results belong in the PR
record.

### Remaining owner-controlled release gates

Expand Down Expand Up @@ -297,3 +302,26 @@ but emitted stability warnings on the desktop host. It is evidence that the corp
latency claim or replacement for representative consumer trials. Application-specific performance
budgets, production security review, license confirmation, package publication, and actual adoption
remain owner/external gates.

## 2026-08-31 live release-state audit

- `main` was clean and synchronized at `1c2dfa6`; all seven post-merge CI jobs passed. There were no
open pull requests or issues, no GitHub releases, and no `v*` release tag.
- The GitHub repository description, homepage, and topics were refreshed to identify the Samsarix
product and current website while retaining `Deathcharge/policy-engine` as the temporary home.
- `https://pypi.org/pypi/samsarix-policy-engine/json` returned 404. No ownership or availability is
inferred from that response, and no project reservation or publication was attempted.
- GitHub Actions had no repository secrets or variables and no `pypi` environment. The only listed
environment was `github-pages`. This confirms that trusted publishing is not configured; it does
not prove that no credential exists outside repository Actions settings.
- `main` had no branch protection. Default workflow permissions were read-only and could not approve
pull requests, but the repository allowed all Actions and did not require action SHA pinning. The
committed workflows nevertheless pin every external action to a full commit SHA.
- `https://www.samsarix.com/`, `/help`, and `/pricing` returned HTTP 200; the homepage footer linked
to the current `Deathcharge/samsarix-unified` repository and exposed `contact@samsarix.com`.
Whether the two supplied email inboxes are monitored cannot be verified without sending mail,
which was not authorized or attempted.

The non-publishing release workflow now includes the same local dependency audit required by this
record and the release runbook, plus a ten-minute job bound. It still has read-only contents
permission and cannot publish, create tags/releases, or mutate repository contents.
2 changes: 2 additions & 0 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ performed until the legal and account gates below are complete.
- Confirm that `samsarix-policy-engine` is controlled by Samsarix LLC on PyPI.
- Configure PyPI trusted publishing for the exact GitHub repository and a protected `pypi`
environment. Do not store a long-lived PyPI token in the repository.
- Protect `main` with a ruleset or branch protection requiring the meaningful CI checks and pull
request review; document a controlled owner bypass for emergency rollback.
- Confirm `contact@samsarix.com` and `support@samsarix.com` are monitored.
- Obtain independent security and representative-user review for production adoption.

Expand Down
10 changes: 10 additions & 0 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,13 @@ def test_license_uses_standard_busl_parameters() -> None:
assert "Covenants of Licensor" in license_text
assert "4. Not to modify this License in any other way." in license_text
assert "California" not in license_text


def test_release_workflow_remains_bounded_audited_and_non_publishing() -> None:
workflow = (ROOT / ".github" / "workflows" / "release.yml").read_text(encoding="utf-8")
assert "timeout-minutes: 10" in workflow
assert "python -m pip_audit --local --progress-spinner off" in workflow
assert "permissions:\n contents: read" in workflow
assert "id-token: write" not in workflow
assert "pypa/gh-action-pypi-publish" not in workflow
assert "gh release" not in workflow