Repository navigation
Closed
Labels
Description
Problem
A repository's ProPR behavior lives almost entirely in instance Settings: prompt additions, validation expectations, preview instructions, concurrency and lifecycle scripts. The only repo-owned file ProPR reads is .propr/setup.sh, plus preview assets.
As a result, workflow policy isn't versioned with the code, isn't reviewed in PRs, and doesn't travel when a repository moves to another instance. It also can't differ between branches.
OpenAI's Symphony keeps policy in a repo-owned WORKFLOW.md that teams version and review like any other code:
- YAML front matter holds the typed settings;
- the body is a strict template prompt;
- lifecycle hooks cover
after_create,before_run,after_runandbefore_remove, with a timeout; - changes apply to the next run without a restart.
Proposal
Add an optional .propr/workflow.yml, read from the task's base branch at run time:
hooks: # run inside the agent container, like setup.sh today
after_create: .propr/setup.sh # default; existing repos keep working unchanged
before_run: npm run build --if-present
after_run: ./scripts/collect-artifacts.sh
timeout_ms: 600000
instructions: .propr/instructions.md # appended to implementation/follow-up prompts
validation: # commands the agent must run and report before finishing
- npm test
- npm run lint
previews:
types: [image]
instructions: "Capture the settings page at 1280px"
limits:
max_parallel_tasks: 3- Precedence: instance Settings define the defaults and hard limits, and the repo file refines within them. Nothing in the repo can raise limits past the instance's, change credentials, grant network access, or add mounts.
- Validation: invalid files fail the run early with a clear error on the issue or PR. A JSON schema is published in the docs for editor support.
- Hook safety: hooks run inside the sandboxed agent container, never on the worker or host. Repository content is untrusted input.
- Visibility: the task page shows which workflow file revision a run used.
- Migration: repositories without the file behave exactly as today, and
setup.shstays the implicitafter_create.propr initscaffolds a commentedworkflow.yml.
Acceptance criteria
- A repo with only
.propr/setup.shbehaves as before. - Hooks run at their documented points with the timeout enforced.
before_runfailing fails the attempt, whileafter_runandbefore_removefailures are logged and ignored. instructionsandvalidationshow up in the agent prompt, and the completion comment reports the validation results.- Settings limits can't be exceeded from the file, enforced by a test.
- Branch-specific files work: a run uses the file on its base branch.
- Documented in
repository-best-practices.mdand a new "Repository workflow file" reference page.
Open questions
- Is
workflow.ymlthe right shape, or is a Markdown file with front matter (Symphony-style) better for prompt-heavy policy? - Should MCP and the Settings UI surface the effective merged config per repository and branch?
Activity
propr-dev commentedon Sep 30, 2026
🤖 AI processing has started for this issue using codex agent with gpt-6-astra model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
codexgpt-6-astra2660/gpt-6-astra-repo-owned-workflow-file--20260930-2351-vrdmainissue-2660-20260930-2351-gpt-6-astra-vrd🔍 Track Task Execution
fix(ai): Resolve issue #2660 - Repo-owned workflow file with lifecycl…