#!/usr/bin/env bash
set -euo pipefail

ROOT_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$ROOT_DIR"

cat <<'EOF'
git-branch-pr live scenario

This is the live version of the two-account GitHub flow.

It should eventually perform the same branch handoff as
tests/e2e/git-branch-pr-fixture.sh, but replace cached agent outputs with:

1. user2 Pi generates analysis code from mock data
2. user2 Pi writes an encrypted/signed request message
3. user2 Pi calls request_controlled_action with repo-portable paths
4. user1 fetches the branch and decrypts only selected messages locally
5. user1 Pi reads the decrypted request/status and queues publish_results
6. rho run executes protected real-data code in Gondolin
7. user1 signs/encrypts the release notification and pushes a release branch

This script intentionally does not run yet. The required foundation is:

- rho repo init
- rho id init/export/import/trust
- rho crypto sign/verify/encrypt/decrypt
- repo-portable paths in run request/action manifests
- middleware approval around action grants

Use tests/e2e/git-branch-pr-fixture.sh --plan for the fast scenario shape.
Use RHO_GIT_BRANCH_PR_BOOTSTRAP=1 tests/e2e/git-branch-pr-fixture.sh
to create the local bare repo and placeholder branches.
EOF
