Repository navigation
[2660 by GPT-6 Astra] Repo-owned workflow file with lifecycle hooks (.propr/workflow.yml) - #2663
Conversation
…e hooks (.pr Implemented by ProPR AI using gpt-6-astra model. Implementation completed successfully.
Full Test Suite ResultsValidation failed during: Test shard (shard 1), Test shard (shard 2), Test shard (shard 3).
View shard 1/4 outputView shard 2/4 outputView shard 3/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 7a93689 Summary of ChangesFixed all five failing test files by updating workflow mocks, PR fixtures, scaffold expectations, and lease-test clock handling. Validation: all 97 tests across the five files pass. No previews were needed; changes affect tests only. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…s, PR fixtures, scaffold expectations, and lease-test clock handling. Fixed all five failing test files by updating workflow mocks, PR fixtures, scaffold expectations, and lease-test clock handling. Validation: all 97 tests across the five files pass. `git diff --check` passes. The full suite was not rerun. No previews were needed; changes affect tests only. PR: #2663 Comment by: @github-actions[bot] (ID: 5922157034) Model: gpt-6-astra
|
✅ Applied the requested follow-up changes in commit 7d00cc0 Processed 2 comments:
Summary of ChangesFixed both lint failures:
Core and UI lint pass with zero warnings. Both typechecks and Behavior and appearance are unchanged; no visual previews were needed. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed both lint failures: - Consolidated imports to meet the job file’s 400-line limit. - Removed an identical-branch conditional to meet the UI complexity limit. Core and UI lint pass with zero warnings. Both typechecks and `git diff --check` pass. Behavior and appearance are unchanged; no visual previews were needed. PR: #2663 Comment by: @propr-dev[bot] (ID: 5922158447) Comment by: @github-actions[bot] (ID: 5922158880) Model: gpt-6-astra
|
/review opus astra |
|
✅ AI Code Review Complete requested by @integry Posted 2 reviews: |
🔍 AI Code Review — opusOverall EvaluationThis PR adds an optional
Repositories without the file get the legacy wrapper. The CLI scaffold, JSON schema, docs and UI timeline were updated to match. All current-head checks pass. The failures in the comment history are from earlier runs. The design is sound and well tested. However, one PR-changed path does not deliver the feature: PR follow-ups silently drop the validation report. This needs a small fix before merge. ✅ Revision pinning — ✅ Strict, consistent validation —
A test cross-checks runtime acceptance against the published JSON schema with Ajv, so editor validation and runtime agree. ✅ Hooks are tested by actually running them — the wrapper tests execute the generated Bash. They verify:
They also check that the Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 PR follow-up completion comments drop the validation report
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Agent no longer receives SIGTERM directlyThe workflow wrapper runs S2: 🟢 Validation markers can be forged from inside the containerThe marker UUID is embedded in the wrapper argv, which the agent process can read from S3: 🟢 Post-agent validation can change the committed worktreeValidation commands run in the read-write workspace after the agent exits and before worker post-processing commits. Commands with side effects (lint S4: 🟢 Result detection depends on stderr being in
|
🔍 AI Code Review — astraOverall EvaluationThe PR adds repository-owned workflow policy with pinned configuration, container hooks, validation reporting, concurrency limits, scaffolding, and documentation. It needs a localized correction before merge: PR follow-ups lose their observed validation report. ✅ Pinned policy reads — Workflow configuration and instruction text are loaded from the same immutable base commit. ✅ Bounded configuration — Parsing rejects unsupported fields, and repository settings cannot raise the configured concurrency or hook-timeout ceilings. ✅ Lifecycle coverage — Added tests cover hook ordering, timeout behavior, cleanup failures, and preservation of agent stdin. Current-head checks show 41 passed, no failures, and nine neutral/skipped checks. This review uses static analysis of the supplied code; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F2: 🔴 Preserve validation reports in PR follow-ups
SuggestionsThese are optional follow-ups and are not sent to S7: 🟢 Reconcile validation documentationThe opening paragraphs of S8: 🟢 Exercise capacity lease loss
ScoreThe implementation has substantial focused coverage and passing current-head checks, but the missing follow-up conversion breaks a core reporting requirement. The required correction is localized. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
/fix |
|
✅ Applied the requested follow-up changes in commit 59aa3b7
Summary of ChangesAddressed F1 and F2: PR follow-ups now preserve validation reports through conversion into completion comments. Added regressions for committed and no-change comments, including absent validation reports. All 35 focused tests, type checking, and targeted lint passed. Captured previews of both completion paths. No additional occurrences of the defect were found. Visual previewPR follow-up validation (committed)Completion comment generated through the corrected converter and rendered with the project MarkdownRenderer. Shows passed, failed, timed-out and not-run validation results. Original unavailable: managed storage is unavailable or the upload has expired. PR follow-up validation (no-changes)Completion comment generated through the corrected converter and rendered with the project MarkdownRenderer. Shows passed, failed, timed-out and not-run validation results. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…reports through conversion into completion comments. Addressed F1 and F2: PR follow-ups now preserve validation reports through conversion into completion comments. Added regressions for committed and no-change comments, including absent validation reports. All 35 focused tests, type checking, and targeted lint passed. Captured previews of both completion paths. No additional occurrences of the defect were found. PR: #2663 Comment by: @integry (ID: 5928684305) Model: gpt-6-astra
|
/review opus astra |
|
✅ AI Code Review Complete requested by @integry Posted 2 reviews: |
🔍 AI Code Review — opus🤖 Review Details
🤖 Review by ProPR |
🔍 AI Code Review — astraOverall EvaluationThe PR implements versioned repository policy with strict parsing, container lifecycle hooks, validation reporting, and task-history visibility. It needs changes before merge because the concurrency limiter can lose track of an execution that is still running. ✅ Pinned policy reads — Workflow and instruction files are loaded from the same resolved base commit. ✅ Preserved instance restrictions — Repository concurrency and timeout values are clamped, and preview types cannot expand instance settings. ✅ Observed validation reporting — Container results are carried separately from agent prose into issue and PR completion comments. The supplied current-head status reports 36 passed checks and no blocking failures. Historical failures do not affect this evaluation. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F3: 🔴 Stop execution when capacity ownership expires
SuggestionsThese are optional follow-ups and are not sent to S9: 🟢 Reconcile the validation documentationThe opening paragraphs of ScoreThe implementation has substantial focused coverage and passing current checks, but lease recovery can violate a central concurrency guarantee. That requires correction before merge. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
/fix |
|
✅ Applied the requested follow-up changes in commit c66695a
Summary of ChangesImplemented F3 only in the shared path for issue runs and PR follow-ups.
Validation: 40 tests passed; core/root typechecks and targeted lint passed. One Redis integration test skipped because No visual changes or previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…R follow-ups. Implemented F3 only in the shared path for issue runs and PR follow-ups. - Lease deadlines now trigger execution cancellation before expiry. - Missing or expired renewals lose ownership; late replies cannot restore it. - Capacity release waits for execution teardown. Validation: 40 tests passed; core/root typechecks and targeted lint passed. One Redis integration test skipped because `redis-server` is unavailable. No visual changes or previews. PR: #2663 Comment by: @integry (ID: 5930396317) Model: gpt-6-astra
|
/review opus astra |
|
✅ AI Code Review Complete requested by @integry Posted 2 reviews: |
🔍 AI Code Review — opusOverall EvaluationThis PR adds an optional, repo-owned
The PR also adds CLI scaffolding, a JSON schema, docs and a timeline display of the pinned revision. Parsing is strict and well tested, and the shell wrapper is careful. Test coverage is broad, and all current-head checks pass. One design problem in the concurrency cap needs fixing before merge. A capped repository can occupy worker capacity that other repositories need. ✅ Strict, schema-aligned policy parsing —
A test cross-checks runtime acceptance against the published JSON schema with Ajv. ✅ Safe, ordered container wrapper —
Read-only analysis calls skip hooks via ✅ Careful lease ownership —
Each of these behaviors has a deterministic fake-timer test. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F4: 🔴 Repository cap blocks shared worker slots across repositories
SuggestionsThese are optional follow-ups and are not sent to S10: 🟢 Default cap applies when limits are omitted
S11: 🟢 Validation markers can be forged by the agentThe validation report is described as "container-observed … independent of agent prose", but the agent can forge it. The random marker is passed as part of the wrapper's argv. The agent, running in the same container, can read it (e.g., from
S12: 🟢 Audit other
|
🔍 AI Code Review — astraOverall EvaluationThe PR adds versioned workflow loading, container lifecycle hooks, validation reporting, and repository concurrency limits. It needs a localized correction before merge for an accepted-input execution failure. ✅ Pinned policy snapshot — Workflow and instruction files are read from the same immutable base commit. ✅ Lease-loss handling — Execution receives an abort signal before capacity expires, and capacity release waits for execution teardown. ✅ Validation reporting — Observed validation results survive result conversion and both PR completion-comment branches. The supplied current-head checks show 36 passed and no blocking failures. This review is based on static inspection; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F5: 🔴 Bound the expanded wrapper argument
SuggestionsThese are optional follow-ups and are not sent to S16: 🟢 Reconcile validation documentationThe opening paragraphs of ScoreThe implementation has substantial focused coverage and passing current-head checks, but the accepted-input wrapper failure should be corrected before merge. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
✅ AI Code Review Complete requested by @integry Posted 2 reviews: |
🔍 AI Code Review — fableOverall EvaluationThis PR implements the optional, repo-owned The implementation is unusually careful about the security boundary of repo-controlled shell and about not blocking shared worker processors. I could not drive any candidate defect in the changed code to an observable incorrect outcome; the remaining items are hardening and follow-ups. ✅ Validation reports cannot be forged by repository output — ✅ Capacity refusal never parks a worker processor — ✅ Earlier review concerns are closed in code — The PR is ready to merge within scope. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S63: 🟢 Wrapper trusts any non-root wrapper uid
S64: 🟢 Audit other adapters for anchored stderr parsingThe wrapper now prefixes the agent's stderr with S65: 🟢 Deferred attempts reuse a stale policy snapshot
S66: 🟢 Deferral history entries accumulate on long waits
S67: 🟢 Instance
|
🔍 AI Code Review — astraOverall EvaluationThe PR implements repository-owned workflow policy with substantial coverage and clear documentation. It needs a localized correction before merge: policy loading now prevents implementation tasks from initializing empty repositories. ✅ Pinned policy — Workflow configuration and instructions are read from the same immutable base commit. ✅ Consistent preview restrictions — Issue and PR execution pass the effective preview settings through both prompt generation and publication. ✅ Capacity handling — Refused tasks retain their identity and policy, release worker capacity, and expose their retry information in task history. The supplied current-head status shows 41 passed checks and no failures or pending checks. This review used static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F14: 🔴 Preserve empty-repository initialization
SuggestionsThese are optional follow-ups and are not sent to S70: 🟢 Test the actual privilege boundaryThe wrapper tests simulate user identity and exercise output-prefix protection, but they do not demonstrate isolation between a real root wrapper and an unprivileged agent. A container integration test attempting direct writes through the wrapper’s ScoreThe implementation has extensive focused coverage and passing current checks, but the newly introduced empty-repository regression requires correction before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/fix all |
|
✅ Applied the requested follow-up changes in commit 2f124e4
Summary of ChangesI've applied F14 and all the selected suggestions. Each code change has a focused regression test, typecheck and lint (with Three things weren't fully exercised here:
F14 – empty repositories: a 409 "Git Repository is empty" from GitHub now means "no workflow", so the existing seeding in Wrapper (in the container)
Admission and policy
Tests, docs and cleanup
Already done before this run: S2/S11, S6/S15/S24, S7/S9/S16/S17/S33, S10, S12, S13, S20/S28, S21/S31, S22/S49, S27 and S47. I didn't add S49's optional cap on the number of deferrals. I didn't create preview images, because no UI code changed. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…e change has a focused regression test, typecheck and lint (with `--max-warnings 0`) are clean for root and core, and all affected suites pass, including the Redis Lua and BullMQ tests run against a `redis-server` built in `/tmp`. I've applied F14 and all the selected suggestions. Each code change has a focused regression test, typecheck and lint (with `--max-warnings 0`) are clean for root and core, and all affected suites pass, including the Redis Lua and BullMQ tests run against a `redis-server` built in `/tmp`. Three things weren't fully exercised here: - **Container smoke test (S36/S37/S70):** this environment has no Docker or agent image, so the new test is skipped. It needs Docker plus `PROPR_TEST_AGENT_IMAGE` set to a supported agent image, which no CI job sets today; until one does, it never runs. - **Docs site:** I didn't build it. The edits are prose; the schema JSON is checked by a test. - **Redis tests in CI:** they still skip wherever `redis-server` isn't installed. **F14 – empty repositories:** a 409 "Git Repository is empty" from GitHub now means "no workflow", so the existing seeding in `ensureRepoCloned` runs again. Other 409s and auth errors still fail the task. A processor test runs an implementation task against a repository with no commits. **Wrapper (in the container)** - **Stop during a hook (S68):** hooks and validation commands now run in the background, so a stop ends the current command within about 5 seconds and cleanup hooks still run. S1/S19/S26/S46 (forwarding the stop to the agent) were already done. - **Timeout vs killed (S50):** a command is reported "Timed out" only if it actually reached its limit. An early exit 137 now shows "Killed (exit 137)", and an early exit 124 shows "Failed (exit 124)". - **Non-root wrapper (S29/S51/S63):** if the wrapper isn't running as root, every validation result is marked unverified. - **S35 found a real forgery gap, now fixed:** a line longer than 4096 bytes could be split by a report, leaving the rest of the line unlabelled at the start of a fresh line, where a forged report would be accepted. Output is now labelled in pieces small enough to write in one go (confirmed via `/proc/<pid>/io`), and the new test fails on the old labelling every time. - **Uncaptured reports (S4):** all five implementation agents already go through the Docker executor, which captures reports. If a wrapper runs on a transport that doesn't capture them, results now read "Not observed" instead of "Not run". **Admission and policy** - **Uncapped runs (S25/S18):** with no cap active, a Redis stall or lost key no longer stops the run; the lease takes the slot back instead. Capped runs still stop as before. S8's real-Redis test shows a capped run with failing renewals stops before another worker gets its slot. - **Stale policy after a wait (S65):** an attempt admitted after waiting reads the policy again, at most once per attempt. - **Worktree start (S14):** issue worktrees now start from the commit the policy was read from, falling back to the branch head if that commit isn't on the branch. - **Retries (S5):** GitHub reads of the policy retry transient errors. - **Instance setting (S23/S67):** a bad `worker_concurrency` falls back to `WORKER_CONCURRENCY` or 5, and no longer blames the workflow file. - **Invalid workflow file (S69):** the job fails once with BullMQ's `UnrecoverableError` instead of retrying and reposting the same error. - **Waiting rows (S66):** repeated refusals update one "Waiting for Repository Capacity" entry instead of adding a row each time. **Tests, docs and cleanup** - **S30/S48:** a re-entry test now uses the real recovery, task-state and pending-comment helpers. It shows the picked-up comment reaches the agent and the task isn't treated as crashed or a duplicate. - **S52:** the schema's path checks now handle embedded newlines the same way the runtime does. - **S3:** the docs now say validation commands must not modify files. - **S30:** the docs now say a later comment job on the same PR can be admitted ahead of a waiting one. - **S32:** `mcpPublishPlan.test.ts` is back to main's version. - **S64:** no other adapter parses stderr with `^`-anchored patterns, so nothing else needed changing. **Already done before this run:** S2/S11, S6/S15/S24, S7/S9/S16/S17/S33, S10, S12, S13, S20/S28, S21/S31, S22/S49, S27 and S47. I didn't add S49's optional cap on the number of deferrals. I didn't create preview images, because no UI code changed. PR: #2663 Comment by: @integry (ID: 5994668945) Model: claude-opus-5-5
|
/ultrafix |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
Full Test Suite ResultsValidation failed during: Test shard (shard 2), Test shard (shard 3).
View shard 2/4 outputView shard 3/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
|
✅ Applied the requested follow-up changes in commit 7ba0c97 Summary of ChangesI fixed both CI failures. Both test files now pass locally, along with the other suites that exercise the workflow wrapper (
Typecheck and lint are clean for core. Root 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… along with the other suites that exercise the workflow wrapper (`prPublicationJob`, `repositoryWorkflowAdmission`, `workflowContainerSmoke`).
I fixed both CI failures. Both test files now pass locally, along with the other suites that exercise the workflow wrapper (`prPublicationJob`, `repositoryWorkflowAdmission`, `workflowContainerSmoke`).
**`packages/core/test/repositoryWorkflow.test.ts` (shard 2).** Test 30, "oversized concurrent output cannot splice…", hit its 60s timeout on CI; locally it took 53s. The cause was in the wrapper, not the test. The labeller in `label_output` (`packages/core/src/workflow/workflowExecution.ts`) splits lines with the sed pattern `s/.\{4000\}/&\n/g`, and GNU sed gets much slower as that repeat count grows: 1000 takes about 1s, 2000 about 4.6s and 4000 about 17s on 850 KB of long lines. That also slows real hooks or validation commands that print long lines, such as minified output.
- **Change:** sed now cuts lines into 1000-byte chunks and joins every four back into one 4000-byte segment. Each segment still fits in one atomic pipe write.
- **Same output:** I compared the old and new labeller on the flood data, 3 MB of random bytes, and lengths around every chunk and segment boundary (0, 1, 999–1001, 3999–4001, 8000, 16000, 17003). The output was byte-identical in every case.
- **Speed:** the 850 KB sample takes about 2.3s instead of 17s. About 0.85s of that is `sed -u` reading one byte at a time, which the old version also paid. Test 30 now takes 6.2s and the whole file 11.6s (CI previously reported 72.9s).
**`test/worktreeStartRevision.test.ts` (shard 3).** Creating a worktree runs `sudo chown -R 1000:1000` on it. GitHub runners allow passwordless sudo, so the runner user then couldn't delete the worktree, and the cleanup hook failed with `EACCES … unlink …/.git`. The test now puts a no-op `sudo` at the front of `PATH`. The tests themselves already passed; only cleanup failed.
Typecheck and lint are clean for core. Root `tsc` reports one error: it can't find `@propr/local-setup`, a package I didn't build in this environment. I didn't run the full CI suite. This change has nothing visual, so there are no previews.
PR: #2663
Comment by: @github-actions[bot] (ID: 5995375719)
Model: claude-opus-5-5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements repository-owned policy with substantial coverage, but capacity enforcement needs correction before merge. The supplied current-head status is clean: 41 passed, none failed or pending. ✅ Pinned policy reads — Workflow and instruction files are loaded from the same immutable base commit, with strict field and size validation. ✅ Consistent preview restrictions — Implementation prompts and publication receive the same effective preview settings, preventing publication from reloading unrestricted defaults. ✅ Durable capacity deferrals — Refused jobs preserve their identity and claimed comments, release worker capacity, and expose the wait in task history. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F15: 🔴 Refreshed policies retain stale capacity limits
F16: 🔴 Expired uncapped runs bypass newly active caps
SuggestionsThese are optional follow-ups and are not sent to S71: 🟢 Expand real-image transport coverageThe container smoke test exercises the Claude entrypoint, while wrapper unit tests cover argument construction for five adapters. Extending real-image coverage to the other transports would strengthen confidence in privilege dropping and report capture. This is optional additional coverage, not evidence of another verified defect. ScoreStrong validation, documentation, and regression coverage support the implementation, but two demonstrated concurrency failures remain despite the passing checks. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit b89589c
Summary of ChangesI fixed F15 and F16. Each fix has focused regression tests, and I checked that the new tests fail without the fix. Typecheck and lint ( F15: refreshed policies now enforce their own cap
F16: uncapped runs now stop before their reservation can be reclaimed
Other notes
🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… and I checked that the new tests fail without the fix. Typecheck and lint (`--max-warnings 0`) are clean for root and core. The affected suites all pass, including the Redis Lua integration tests, which I ran against a `redis-server` built in `/tmp` outside the repo. I fixed F15 and F16. Each fix has focused regression tests, and I checked that the new tests fail without the fix. Typecheck and lint (`--max-warnings 0`) are clean for root and core. The affected suites all pass, including the Redis Lua integration tests, which I ran against a `redis-server` built in `/tmp` outside the repo. ### F15: refreshed policies now enforce their own cap - **New check in `workflowConcurrency.ts`:** a Redis script, `RECONCILE_WORKFLOW_SLOT`, and an exported `reconcileRepositoryWorkflowSlot(limit)`. It re-checks the admitted run against the refreshed cap. The run's own old cap no longer counts, but other runs' caps still do. - **Cap still admits the run:** the refreshed cap replaces the old one, and heartbeats advertise it from then on. - **Cap is now full:** in the same Redis step, the run's reservation is removed and it joins the waiting list. It then throws `RepositoryWorkflowCapacityError` without a second release. - **Reservation already lost:** execution stops with a lease-lost error. - **Both processors** now call this right after re-reading the policy and before any work starts (issue: `prepareIssueRepositoryWorkflow`; PR: `policy.admitted(job)`). The refreshed policy is saved first, so a refused task waits under the new snapshot. In the issue processor, that refusal now bypasses the generic error handler so it isn't recorded as a failure. - **Tests:** each processor gets a scenario where the cap is lowered from 3 to 1 with 2 runs active. The task is admitted on the old cap, then refused after the refresh and deferred with the new policy, without starting the agent or being marked processing. The Redis integration test covers the script itself, including two runs checking against the same lowered cap. ### F16: uncapped runs now stop before their reservation can be reclaimed - I removed the exemption for runs without a cap. Every run now has the same local stop deadline (about 89s after its last confirmed renewal). That is before another worker can reclaim its Redis entry at 120s, even if this worker can't reach Redis. - **Tests:** the two old tests asserting that an uncapped run survives a Redis stall now assert it stops at the deadline. The Redis integration test now also covers an uncapped worker A losing Redis: B's capped request is refused while A runs, and B is only admitted after A has stopped. - I updated the matching paragraph in `docs/docs/features/repository-workflow.md`, which still described the old exemption. ### Other notes - After a post-admission refusal, the deferral count restarts at 1, because admission had already cleared the earlier count. Backoff restarts from 10 seconds under the new policy. - An uncapped run cut off from Redis for more than about 89 seconds is now stopped, as F16 requires. Previously it kept running. - To run tests, I installed dependencies with `npm ci` and `npm run test:prepare`; nothing in the repo setup changed. - There's no visual change, so I didn't create previews. PR: #2663 Comment by: @propr-ultrafix (ID: 0) Model: claude-opus-5-5
Full Test Suite ResultsValidation failed during: Test shard (shard 4).
View shard 4/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
|
✅ Applied the requested follow-up changes in commit 16acc9d Summary of ChangesI fixed the shard 4 failure in Cause: the test replaces the job's Fix: I added that function to the stand-in in Three other test files use that module without the new function: 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ob.test.ts`, and the file now passes locally (39/39). I fixed the shard 4 failure in `test/prPublicationRecoveryJob.test.ts`, and the file now passes locally (39/39). **Cause:** the test replaces the job's `./repositoryWorkflow.js` module with a stand-in that has a fixed list of exports. The last commit made `processPullRequestCommentJob.ts` import a new function, `reconcileRepositoryWorkflowAdmission`, which the stand-in didn't include. So the test file crashed while loading, before any test ran. **Fix:** I added that function to the stand-in in `test/prPublicationRecoveryJob.test.ts:235`, returning the workflow it receives unchanged. That matches the real function, which updates the concurrency slot and returns the same workflow. Three other test files use that module without the new function: `processMergeConflictJob`, `prPublicationJob` and `repositoryWorkflowAdmission`. I ran all three and they pass. To run tests locally I installed dependencies, rebuilt the workspace packages and rebuilt the `better-sqlite3` native module. No product code changed, and there's nothing visual to preview. PR: #2663 Comment by: @github-actions[bot] (ID: 5996561573) Model: claude-opus-5-5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements repository-owned workflow policy across loading, container execution, admission, reporting, and documentation. It needs one localized correctness fix before merge. ✅ Consistent preview restrictions — Issue and PR paths pass the same refined settings to prompts and publication. ✅ Durable capacity deferrals — Refused jobs retain policy and claimed comments before releasing locks, without consuming ordinary failure retries. The supplied current-head status is healthy: 41 passed, 9 neutral/skipped, and no failed or pending checks. This review used static analysis only. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F17: 🔴 Preserve policy and checkout alignment
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation has substantial focused coverage and passing current-head checks, but the checkout fallback can violate the policy snapshot contract. A localized correction should resolve the blocker. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit a322f64
Summary of ChangesI fixed F17. When a workflow policy pins a start commit, the issue worktree now either starts at that exact commit or stops preparation. It no longer silently switches to a different branch or commit. The change (
The error is an ordinary retryable one, not an A related bug I found and fixed: the existing check using Tests (
Against the previous code, all five "must stop" cases fail. With the fix, all 9 tests pass. The wrapper and worktree suites pass too ( To run the tests I had to install dependencies with the existing Separate observation, not changed: the epic-branch check only works if the local clone already knows about the new branch. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…e issue worktree now either starts at that exact commit or stops preparation. It no longer silently switches to a different branch or commit. I fixed F17. When a workflow policy pins a start commit, the issue worktree now either starts at that exact commit or stops preparation. It no longer silently switches to a different branch or commit. **The change** (`packages/core/src/git/repoManager.ts`, new `resolveIssueStartPoint`). Preparation stops with a clear error in four cases: - The resolved base branch isn't the branch the policy was read from. This covers an epic branch that appears after the policy fell back to the default branch. - The pinned revision isn't a commit id. - The pinned revision can't be resolved. - The pinned revision isn't in the history of the base branch that was just fetched (for example, after a force-push). The error is an ordinary retryable one, not an `UnrecoverableError`. Admission already clears the saved policy snapshot, so a retry reads the policy again from the current base and reconciles its capacity limit. A run with no workflow behaves as before. **A related bug I found and fixed:** the existing check using `git merge-base --is-ancestor` never actually rejected anything. That command answers "no" only through its exit code, and simple-git doesn't treat that as an error when there's no stderr output. So a force-pushed base whose history still had the pinned commit locally passed the check. The new code compares `git merge-base <rev> origin/<base>` against the resolved commit instead. **Tests** (`test/worktreeStartRevision.test.ts`): I replaced the old fallback test, which expected a silent switch to the branch head. The new tests cover: - **Must start at the pinned commit:** a branch that moved forward, and a base that falls back to the default branch while it's missing. - **Must stop:** a force-pushed base, a base that appears after the fallback, a policy read from a different branch, an unknown commit and a malformed revision. Against the previous code, all five "must stop" cases fail. With the fix, all 9 tests pass. The wrapper and worktree suites pass too (`workflowPreviewPublication`, `repositoryWorkflowAdmission`, `processTaskImportJobRetry`, `repoManager.modelSpecific`, `worker.modelSpecific`). Typecheck and lint (`--max-warnings 0`) are clean for root and core. To run the tests I had to install dependencies with the existing `.propr/setup.sh`; no setup files changed. Nothing here is visual, so there are no previews. **Separate observation, not changed:** the epic-branch check only works if the local clone already knows about the new branch. `ensureRepoCloned` fetches all branches, so this holds in practice. PR: #2663 Comment by: @propr-ultrafix (ID: 0) Model: claude-opus-5-5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within the supplied review scope. The PR implements repository-owned workflow policy with careful handling of execution, capacity deferral, and reporting. Review was static; no commands were run. Authoritative head checks show 41 passed, none failed or pending. ✅ Consistent policy snapshots — Workflow and instruction files are read from one immutable base commit, and issue worktrees are pinned to that revision. ✅ Capacity-aware scheduling — Refused jobs retain their identity and policy, release processors through queue delays, and reconcile refreshed limits before execution. ✅ Independent validation evidence — Container stderr supplies validation observations independently of agent summaries, and reports survive both changed-code and no-change completion paths. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S72: 🟢 Exercise supported images in CIThe real-container smoke test requires ScoreThe implementation has substantial targeted coverage and passing current-head checks. Static tracing identified no verified PR-introduced blocker. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |


AI Implementation Summary
Closes #2660
Branch:
2660/gpt-6-astra-repo-owned-workflow-file--20260930-2351-vrdCommits: ✅ Changes committed (56867aa)
AI Processing Completed
Execution Details:
Summary:
Implemented
.propr/workflow.ymlfor issue implementations and PR follow-ups, including:Focused tests, Redis integration, browser checks, type checks, and builds passed. Captured preview evidence of the task-history change.
Detailed Logs:
01a0f4bc-6bf7-7f51-a07d-966119ce8e26Log files stored at:
/tmp/claude-logs/issue-2660-2026-10-01T00-11-41-459Z-conversation.json/tmp/claude-logs/issue-2660-2026-10-01T00-11-41-459Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2660.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Repository workflow revision
Task history shows the workflow path, base branch, and pinned commit revision.
Original unavailable: managed storage is unavailable or the upload has expired.