riseproject-dev/porting-agent is the trusted control plane for AI-assisted RISC-V porting work. It helps upstream projects of any language build, test, and release for Linux riscv64 through their own build, test, and release processes; Python wheels are one case among others.
- Root Python modules own trusted control behavior; there is no package wrapper or
src/tree. .state/is lifecycle authority. Only schema-valid state files may be published in a plain fast-forward commit onmain.- Authored gh-aw workflows and generated lock workflows move together.
- Pull-request validation is read-only and receives no App private key, destination token, package credential, or state-publisher environment.
- The controller mints control App tokens only, never a destination credential: after deterministic reconciliation for state and issue projection, plus one issues-scoped token that adds an acknowledgement reaction to an
/upstreamingcomment, and onecontents: read,actions: writetoken that launches workflows, the planner and worker runs among them. - The planner receives only scoped read access, returns one verified artifact Result, and cannot push or mutate upstream resources.
- The worker model receives no destination credential. Its operator-approved unsandboxed process reaches host Docker/QEMU through a custom engine boundary that preserves only captured Anthropic provider authentication while stripping and verifying repository, App, destination, Actions, cloud, and SSH credentials before tools run. The worker commits in its checkout and delivers its commits as a git bundle; a separate job of the same run, on a fresh runner after the agent job ended, mints a token for exactly that one fork (
contents: write, plusworkflows: writeonly when the commits touch workflow files), pushes the exact commits with a lease on the expected head, and checks the pushed commits afterwards. A prompt-injected worker can therefore push arbitrary content to its one fork, including the head of a live upstream pull request in upstream review; this is an accepted risk, bounded by the one-fork token the model never holds and by a forks' organization that holds no secrets fork CI can read. - The worker reviews its own patch with fresh reviewers it launches as foreground children of its process (a review loop on the
subagenttool ofpi-subagents, at most 3 rounds, with read, grep, find and ls only), before it delivers the patch. Trusted code checks the shape of the loop it reports on the pushed commits, and the controller accepts no pushed head while a P0 finding is open. The dispatcher is the one locked-down agent: no shell, no file writes, no web access and no extension. - Public status is generated at https://riseproject-dev.github.io/porting-agent/status/ from committed state. The documentation site at https://riseproject-dev.github.io/porting-agent/ renders
docs/. - The control repository is
riseproject-dev/porting-agent; destination forks remain inriseproject-upstreaming.
uv run python -m unittest discover -s tests -t . -v
uv run python scripts/dependencies/sync.py
uv run python -m lifecycle check
uv run python -m state validate
uv run ruff check .
uv run python scripts/audit_repository_settings.py --snapshot tests/fixtures/repository-settings.json
scripts/check_gh_aw.sh /path/to/pinned-gh-awThe final command checks that the planner and worker locks are current for the pinned gh-aw v1.2.2.
Local and read-only entry points are owned by their root modules:
python -m state validate
python -m state check-diff BASE CANDIDATE
python -m lifecycle check
python -m triggers audit
python -m commands parse FILE
python -m capacity observe
python -m reconcile --offlineThe documentation is published at https://riseproject-dev.github.io/porting-agent/.
- Pipeline: requests, planning, development with its review loop, and submission
- Operations: repository setup, workflows, recovery, and the website
- Security Model: credentials, agent isolation, state publication, and untrusted input
- State Machine, its Lifecycle Table, the Transition Engine, and the Known Gaps
The control implementation is available under the MIT License.