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
34 changes: 34 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# LF everywhere, checked out and committed.
#
# This is not tidiness. Two things in this repository break on CRLF, and both
# break in ways that mislead:
#
# docker/entrypoint.sh A shell script with CRLF line endings fails in the
# container as "no such file or directory" — naming
# the interpreter, not the script — because the \r
# becomes part of the shebang path. An operator on
# Windows would clone, build, and get an error that
# points nowhere near the cause.
#
# product/*.json scripts/verify_core_pin.py LF-normalizes text
# artifacts before hashing so a Windows checkout and
# a Linux one agree. Committing CRLF works, but it
# means the bytes on disk are never the bytes that
# were hashed, and every future person reasoning
# about the pin has to know that.

* text=auto eol=lf

*.sh text eol=lf
*.sql text eol=lf
*.json text eol=lf
*.py text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.md text eol=lf
Dockerfile text eol=lf
*.Dockerfile text eol=lf

*.whl binary
*.png binary
*.zip binary
81 changes: 61 additions & 20 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
name: PR — pinned-core compatibility
name: PR — pinned core, contract, and the running vertical

# The product's dependency direction only holds if the pin is verified on
# every change. This job fetches the pinned REMORA release, refuses on any
# hash mismatch, installs the SDK from that exact wheel, and proves the
# surface this product depends on is present — plus that no product source
# imports a REMORA internal namespace.
# Two jobs, and the split is deliberate.
#
# The contract job needs no Docker and runs in seconds: it verifies the pin,
# checks the hand-written lock against the release-generated manifest, and
# proves the SDK surface this product depends on is really there. That is the
# fast gate, and it fails before anything is built.
#
# The vertical job brings the whole product up the way the README says to and
# runs the four decisions against it. Everything interesting this product got
# wrong was found by running it, not by unit testing it: an approver token
# that could also execute, a refusal that arrives as an outcome rather than an
# exception, a CRLF entrypoint, a hardcoded port, a runner module shadowing
# the package it was meant to run.

on:
pull_request:
Expand All @@ -15,34 +23,67 @@ permissions:
contents: read

jobs:
pinned-core-contract:
contract:
name: Pinned core artifacts and SDK contract
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4

- name: Setup Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"

- name: Verify the pinned core artifacts
# Exit 1 = the artifacts are not what we pinned (fail loudly).
# Exit 2 = we could not reach the release (also a failure, but a
# different one; the script keeps them distinct on purpose).
# Exit 1 = the artifacts are not what we pinned. Exit 2 = we could not
# reach the release. Kept distinct so a network outage never reads as
# a tampered artifact.
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python scripts/verify_core_pin.py --out dist

- name: Install the SDK from the pinned wheel
# From the wheel we just hash-verified — never from source, never
# from REMORA master.
run: |
python -m pip install --upgrade pip
pip install pytest "$(ls dist/remora-*.whl)[sdk]"
pip install pytest "psycopg[binary]" "$(ls dist/remora-*.whl)[sdk]"
pip install -e .

- name: SDK contract and import-boundary tests
- name: Contract, manifest agreement and import boundary
run: python -m pytest tests/compatibility -q

vertical:
name: The product, running
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"

- name: Bring the whole product up
# The same command the README gives a new developer. If this step
# breaks, the install instructions are broken, which is the point of
# running it here rather than a bespoke CI-only path.
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python run.py up

- name: The four decisions
run: python run.py scenarios

- name: End-to-end, security and fault tests
run: python run.py e2e

- name: The signed ToolSpec bundle still verifies
run: python run.py check-sign

- name: Diagnostics on failure
if: failure()
run: |
docker compose ps -a
docker compose logs --tail 120 control-plane
docker compose logs --tail 40 workorder-migrate

- name: Tear down
if: always()
run: python run.py down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ dist/
__pycache__/
*.pyc
.pytest_cache/
.env
*.egg-info/
evidence/
66 changes: 66 additions & 0 deletions COMMERCIAL_LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Assured Agent Execution — Commercial Licensing

AAE is publicly available under the Business Source License 1.1.
Organizations whose intended use is not covered by that license may
obtain a separate AAE Commercial License from the Licensor,
Stian Skogbrott. No commercial use is permitted without compensation
agreed with the Licensor.

AAE runs on a pinned REMORA core, which is a separate Licensed Work under
the same Licensor. A commercial agreement can cover both, and normally
should — but the rights granted are only those the signed agreement
names. See [`LICENSING.md`](LICENSING.md).

## Commercial license categories

### Commercial Internal

For production use within one named legal entity or an expressly defined
corporate group — governing that organization's own agent actions
against its own systems.

### Embedded / OEM

For incorporating AAE into a product, platform, appliance or
customer-delivered solution.

### Managed Service

For providing AAE or AAE-based governed execution as SaaS, an API,
hosted service, managed service, outsourced operation or service bureau.

### Strategic / Enterprise

For larger deployments requiring custom deployment rights, support,
security commitments, roadmap cooperation or negotiated service levels.

## Commercial rights may include

Depending on the signed agreement:

- production use;
- proprietary modification and integration;
- redistribution;
- sublicensing;
- OEM and white-label rights;
- hosted-service rights;
- support and maintenance;
- security advisories and update channels;
- defined service levels;
- warranties or limited indemnification.

## Maturity disclosure

AAE is pre-1.0. No external security review has been completed, Gate B
is not closed, and the pinned core release is marked prerelease
deliberately. Any commercial agreement executed before those close
states so explicitly; the Licensor will not represent this product as
production-hardened while it is not.

## No automatic commercial grant

This document is informational and is not itself a commercial software
license. Commercial rights are granted only by a separate written
agreement signed by the Licensor.

Contact: support@luftfiber.no
165 changes: 165 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
Business Source License 1.1

Parameters

Licensor:
Stian Skogbrott

Licensed Work:
Assured Agent Execution (AAE) version 0.1.0 and all later versions that
explicitly reference this license, including the source code, tests,
tool packs, container definitions, deployment manifests, database
migrations, scripts, console source, documentation and other original
material contained in the Assured Agent Execution distribution, except
for files or directories that explicitly state a different license or
contain third-party material governed by separate terms.

The REMORA core artifacts this product pins and consumes
(product/core-artifact-lock.json) are a separate Licensed Work under
their own copy of this license, distributed with the REMORA release.
Nothing here grants rights to REMORA beyond what that license grants.

The Licensed Work is Copyright (C) 2026 Stian Skogbrott.

Additional Use Grant:
You may make Production Use of the Licensed Work without purchasing a
commercial license only when the Production Use is exclusively one of
the following:

1. Personal, non-commercial use by a natural person;
2. Non-commercial teaching or academic research by an accredited
educational institution, or by a non-profit or independent research
organization;
3. Independent, good-faith security research that is not performed as
a paid service for a commercial organization;
4. Internal Production Use by a non-profit community organization,
provided that the organization does not offer the Licensed Work or
substantially similar functionality to third parties for payment or
other commercial consideration;
5. Research Use by any person or organization: use of the Licensed
Work to study, evaluate, benchmark, reproduce, attempt to falsify,
or extend its methods and results, and to create and publish
research artifacts derived from that work (papers, theses,
datasets, benchmark results, reproductions, and modified source
shared for reproducibility), provided the Licensed Work is not
thereby offered to third parties as, or embedded in, a commercial
product or service;
6. Shadow-Mode Research Evaluation by any organization, including a
for-profit organization: operating the Licensed Work in
observer-only (shadow) mode - where its decisions are logged but
are not enforced and do not control any live system - for the
purpose of evaluating or researching the Licensed Work itself, for
up to ninety (90) consecutive days per organization.

Publication is never restricted: publishing results, measurements,
benchmarks, or comparisons involving the Licensed Work - favorable or
not - requires no permission from the Licensor.

For purposes of this Additional Use Grant, "Production Use" means use of
the Licensed Work in a live environment involving real users, systems,
workloads, operational decisions, infrastructure, data or services.
Development, testing, evaluation, demonstration, proof-of-concept and
staging use are non-production uses.

This Additional Use Grant does not grant free Production Use, except
where paragraph 5 or 6 above expressly applies:

a. By or on behalf of a for-profit organization;
b. In an income-generating or business-critical operational process;
c. As part of a paid consulting or professional-services engagement;
d. In a product or service offered for payment;
e. As SaaS, API, hosted service, managed service, service bureau,
outsourced operation, OEM, embedded component or white-label offering;
f. For commercial redistribution, sublicensing or resale;
g. For providing substantially similar Assured Agent Execution
functionality to third parties.

Any use not granted by the Business Source License or this Additional
Use Grant requires a separate Assured Agent Execution Commercial License
from the Licensor. Contact: support@luftfiber.no

Change Date:
2030-08-06

Change License:
GNU General Public License version 2.0 or later

-----------------------------------------------------------------------------

Business Source License 1.1

License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
"Business Source License" is a trademark of MariaDB Corporation Ab.

Terms

The Licensor hereby grants you the right to copy, modify, create derivative
works, redistribute, and make non-production use of the Licensed Work. The
Licensor may make an Additional Use Grant, above, permitting limited
production use.

Effective on the Change Date, or the fourth anniversary of the first publicly
available distribution of a specific version of the Licensed Work under this
License, whichever comes first, the Licensor hereby grants you rights under
the terms of the Change License, and the rights granted in the paragraph
above terminate.

If your use of the Licensed Work does not comply with the requirements
currently in effect as described in this License, you must purchase a
commercial license from the Licensor, its affiliated entities, or authorized
resellers, or you must refrain from using the Licensed Work.

All copies of the original and modified Licensed Work, and derivative works
of the Licensed Work, are subject to this License. This License applies
separately for each version of the Licensed Work and the Change Date may vary
for each version of the Licensed Work released by Licensor.

You must conspicuously display this License on each original or modified copy
of the Licensed Work. If you receive the Licensed Work in original or
modified form from a third party, the terms and conditions set forth in this
License apply to your use of that work.

Any use of the Licensed Work in violation of this License will automatically
terminate your rights under this License for the current and all other
versions of the Licensed Work.

This License does not grant you any right in any trademark or logo of
Licensor or its affiliates (provided that you may use a trademark or logo of
Licensor as expressly required by this License).

TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
TITLE.

MariaDB hereby grants you permission to use this License's text to license
your works, and to refer to it using the trademark "Business Source License",
as long as you comply with the Covenants of Licensor below.

Covenants of Licensor

In consideration of the right to use this License's text and the "Business
Source License" name and trademark, Licensor covenants to MariaDB, and to all
other recipients of the licensed work to be provided by Licensor:

1. To specify as the Change License the GPL Version 2.0 or any later version,
or a license that is compatible with GPL Version 2.0 or a later version,
where "compatible" means that software provided under the Change License
can be included in a program with software provided under GPL Version 2.0
or a later version. Licensor may specify additional Change Licenses
without limitation.

2. To either: (a) specify an additional grant of rights to use that does not
impose any additional restriction on the right granted in this License, as
the Additional Use Grant; or (b) insert the text "None".

3. To specify a Change Date.

4. Not to modify this License in any other way.

Notice

The Business Source License (this document, or the "License") is not an Open
Source license. However, the Licensed Work will eventually be made available
under an Open Source License, as stated in this License.
Loading