Skip to content

docs: use native Preloop App review for gameplay - #24

Open
ajlennon wants to merge 3 commits into
mainfrom
docs/native-preloop-gameplay-acceptance
Open

ajlennon wants to merge 3 commits into
mainfrom
docs/native-preloop-gameplay-acceptance

Conversation

@ajlennon

Copy link
Copy Markdown
Member

Change and user need

Document gameplay's migration to Alex's existing native DD Preloop App review flow. Ready PR events start the shared flow; the controller posts the review and preloop/review status. The retained callback/publisher/finalizer sources are historical, not the active route or a fallback.

Evidence and checks

  • Repository tests: 40 passed; synthetic session structure/reference validation passed. This is not device or hosted review execution proof.
  • Documentation whitespace checks passed.
  • Native preparation helper: 28 offline guard tests passed; preparation review passed with no findings. The signed transition and review records are owner-local; they are not this PR's hosted Preloop review. Final gate transfer remains disabled pending execution-bound delivery evidence.
  • Both existing required CI checks, strict up-to-date branch protection and admin enforcement remain required. The old required gate is retained until an actual native App review and status are independently verified on the current commits.

Untested boundaries and review status

This PR is the substantive live native review/CI/automatic-merge acceptance candidate. Do not call it accepted from an enabled flow, local tests or this description. Verify the complete same-head/current-base result, real native App review/status, absence of blocking findings, required CI and actual protected merge. A failed, incomplete, placeholder or stale review blocks merging. No new provider, callback publisher, token, bootstrap exception or admin bypass is proposed.

Agent assistance

Assisted-by: Briar

@sandchest-com

sandchest-com Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Sandchest

Sandchest reviewed 4fb94d4: nothing exploitable found in this change.

Sandchest reviews every change for vulnerabilities an attacker could use · Review details

@preloop preloop Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preloop review: changes_requested

Reviewed commit 58b40bfb41fb6f1b898369027b488928798278a9. This review covers that commit only.

Summary

#​ Review

- Reviewed HEAD: 58b40bfb41fb6f1b898369027b488928798278a9
- Reviewed base: 974854c0f2db08485df2d3889a741593a98c829c (verified merge base with fetched main)
- Scope: complete three-file documentation diff plus surrounding Preloop documentation, workflows, and review-contract source.
- Method: source reading and Git inspection only. Repository scripts/tests were not executed. git diff --check was clean and changed internal links resolve. External GitHub App configuration, branch-protection state, and the live disabled state of the four workflows are not verifiable from the checkout.

The diff consistently moves the main guidance toward the native Preloop GitHub App route, but the migration is incomplete and leaves current operational documents describing the retired Actions publisher/finalizer path.

#​#​ Findings

🟠 **Medium — The normal acceptance runbook still uses the retired route.** docs/preloop-live-acceptance.md:3,34-42,54-56 calls itself the normal route, requires inspection of publisher/finalizer runs, and requires the Preloop merge gate. This contradicts CONTRIBUTING.md:20 and .github/PRELOOP-TROUBLESHOOTING.md:36-39, which say that publisher/finalizer and the old workflows are no longer active. Update the runbook for native controller publication and preloop/review, or mark it historical.

🟠 **Medium — The troubleshooting guide calls legacy integration documentation applicable.** .github/PRELOOP-TROUBLESHOOTING.md:49-51 says the linked integration documentation remains applicable, but .github/preloop/README.md:1-16 now says it is legacy, not setup instructions, and not an authorised fallback. Relabel the link as historical-only and warn against using its setup/operation instructions.

🟡 **Low — The diagnostic runbook still uses the disabled trigger.** docs/preloop-diagnostic-reproduction.md:8-11 says the existing trigger accepts diagnostic_execution_id, while .github/PRELOOP-TROUBLESHOOTING.md:36-39 says that trigger is disabled. Mark the procedure legacy-only or document the supported native diagnostic path.

🟡 **Low — The failure-report checklist asks for the wrong run evidence.** .github/PRELOOP-TROUBLESHOOTING.md:43-45 requests an Actions run URL after lines 8-11 explicitly state there is no bespoke Actions review job. Request the Preloop execution/publication URL and distinguish those from CI Actions runs.

No source, security, privacy, build, or configuration code changed in this diff.

Findings (4)

1. [MEDIUM] (docs/preloop-live-acceptance.md:3,34-42,54-56)

The active acceptance procedure still directs operators through the retired Actions publisher/finalizer and Preloop merge gate, contradicting the native review route introduced by this change.

fix

Update this runbook to use the native Preloop App execution, controller publication, and preloop/review status, or clearly mark it historical and link the new delivery guide.

evidence

The new route says the legacy publisher/finalizer is inactive (CONTRIBUTING.md:20) and the old review workflows are disabled (.github/PRELOOP-TROUBLESHOOTING.md:36-39), but this runbook still calls itself the normal route (docs/preloop-live-acceptance.md:3) and requires checks of the publisher/finalizer runs (docs/preloop-live-acceptance.md:34-42) and the Preloop merge gate (docs/preloop-live-acceptance.md:54-56).

2. [MEDIUM] (.github/PRELOOP-TROUBLESHOOTING.md:49-51)

The guide calls the now-legacy integration documentation applicable, directly contradicting its own disabled-route warning and the linked document's new legacy banner.

fix

Relabel the link as historical reference only and explicitly direct operators not to apply its setup or operation instructions.

evidence

The changed guide links to preloop/README.md as applicable (docs-relative .github/PRELOOP-TROUBLESHOOTING.md:49-51), while the linked file now says it is legacy, not the active route, not setup instructions, and not an authorised fallback (.github/preloop/README.md:1-16). The changed guide also says those workflows are disabled (.github/PRELOOP-TROUBLESHOOTING.md:36-39).

3. [LOW] (docs/preloop-diagnostic-reproduction.md:8-11)

The diagnostic runbook still instructs operators to dispatch the disabled legacy trigger workflow.

fix

Mark the procedure as legacy-only and unobtainable while the old workflow remains disabled, or document the supported native diagnostic/reproduction path.

evidence

This document says the existing trigger accepts diagnostic_execution_id (docs/preloop-diagnostic-reproduction.md:8-11), but the changed guide states the old trigger is disabled and its sources are not a fallback (.github/PRELOOP-TROUBLESHOOTING.md:36-39).

4. [LOW] (.github/PRELOOP-TROUBLESHOOTING.md:43-45)

The failure-report checklist asks for an Actions run URL even though the new route has no bespoke Actions review run, which sends troubleshooters to the wrong evidence.

fix

Request the Preloop execution/publication URL and distinguish CI Actions runs from the removed review Actions flow.

evidence

The guide says there is no bespoke Actions review job to start manually (docs:relative .github/PRELOOP-TROUBLESHOOTING.md:8-11) but then asks every native-failure report to include an Actions run URL (.github/PRELOOP-TROUBLESHOOTING.md:43-45).

Execution: https://preloop.ai/console/flows/executions/087ab195-4d7f-492b-89cc-4f97ed3ff80d

Posted by Preloop from the validated result of a read-only review run.

@preloop preloop Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preloop review: changes_requested

Reviewed commit ab768493cc6b1a6982b4a5bd028291b3d4f8dd54. This review covers that commit only.

Summary

**Review scope**
- Reviewed merge-base-to-head diff 974854c0f2db08485df2d3889a741593a98c829c...ab768493cc6b1a6982b4a5bd028291b3d4f8dd54 on target main.
- Verified actual HEAD ab768493cc6b1a6982b4a5bd028291b3d4f8dd54 and merge base 974854c0f2db08485df2d3889a741593a98c829c; both equal the controller-bound revisions.
- Inspected all five changed documents plus surrounding Preloop workflows, result validation, publication contract, and related runbooks.
- This was a read-only static review. No repository code or tests were executed. External branch-protection settings and live workflow enablement were not independently verified; findings below are based on the checked-in documentation and source.

**Findings**
- 🟠 Medium — docs/preloop-live-acceptance.md:49-58: The migration gate instructions conflict with the documented disabled workflows and with CONTRIBUTING.md:17-20. Requiring Preloop merge gate while its producer is disabled prevents new commits from satisfying protection; simultaneously telling contributors that preloop/review is already required leaves no unambiguous active configuration. Define one phase, or explicitly document a merge freeze.
- 🟡 Low — .github/preloop/README.md:3-7: The new native controller-publication claim conflicts with docs/preloop-context-repair.md:65-66, which still says the existing trusted publisher is the sole publication owner and native platform_review is not enabled. Update that runbook or mark it historical.
- 🟡 Low — docs/preloop-live-acceptance.md:29-35: The checklist omits the contract rule that changes_requested must include at least one blocking finding (review_contract.py:75-76). Add this criterion so manual acceptance rejects contradictory non-pass results as well as contradictory passes.

**Conclusion**
Changes are requested because the documentation gives contradictory merge-gate and publication-ownership instructions.

Findings (3)

1. [MEDIUM] (docs/preloop-live-acceptance.md:49-58)

The migration guidance is operationally contradictory: it keeps a required status whose producing workflow is documented as disabled, while other current guidance says the replacement App status is already required. A disabled workflow cannot emit Preloop merge gate for new commits, so normal merges either block indefinitely or require an undocumented bypass.

fix

Define one migration phase explicitly. Before acceptance, either keep the old merge workflow enabled so its required context can be produced and do not claim preloop/review is already required, or document an intentional merge freeze and remove conflicting current-state claims. After acceptance, remove the old gate and require only the App-produced status plus CI.

evidence

docs/preloop-live-acceptance.md:53-55 says to retain the required Preloop merge gate until the native transition is accepted, while .github/PRELOOP-TROUBLESHOOTING.md:36-37 says the old merge workflow is disabled. Separately, CONTRIBUTING.md:17-20 says GitHub must already require the App's preloop/review status alongside the two CI checks.

2. [LOW] (.github/preloop/README.md:3-7)

The new active-route documentation conflicts with an unmarked related runbook that still states the opposite publication authority. Operators searching the Preloop docs receive incompatible instructions about who owns publication.

fix

Update docs/preloop-context-repair.md to reflect controller publication, or clearly mark that document as historical and link to the active guide.

evidence

.github/preloop/README.md:3-6 now says gameplay uses native App trigger and controller publication, but the still-current-looking docs/preloop-context-repair.md:65-66 says to keep the existing trusted publisher as the sole publication owner and states the native platform_review feature is not enabled.

3. [LOW] (docs/preloop-live-acceptance.md:29-35)

The acceptance checklist omits a validation rule enforced by the repository contract, so a reviewer following the runbook could accept a changes_requested result containing only LOW findings even though the publisher would reject it as contradictory.

fix

Add an acceptance criterion that a changes_requested result must contain at least one blocking finding, and reject contradictory non-pass results as well as contradictory passes.

evidence

docs/preloop-live-acceptance.md:33-35 requires rejecting contradictory passes and requiring success=false for changes requested, but only says to reject contradictory passes. .github/preloop/review_contract.py:75-76 additionally requires changes_requested to contain at least one MEDIUM/HIGH/CRITICAL finding.

Execution: https://preloop.ai/console/flows/executions/1ce27b75-a155-4ae5-8f95-1c980c01e9fd

Posted by Preloop from the validated result of a read-only review run.

Normal publication starts with unfinished-check semantics. Only the admitted
completion finalizer may release the final verdict after verifying the completed
producer and its evidence. The old retained-failure recovery is not applicable.
## Check protection and merge

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1. [MEDIUM]

The migration guidance is operationally contradictory: it keeps a required status whose producing workflow is documented as disabled, while other current guidance says the replacement App status is already required. A disabled workflow cannot emit Preloop merge gate for new commits, so normal merges either block indefinitely or require an undocumented bypass.

fix

Define one migration phase explicitly. Before acceptance, either keep the old merge workflow enabled so its required context can be produced and do not claim preloop/review is already required, or document an intentional merge freeze and remove conflicting current-state claims. After acceptance, remove the old gate and require only the App-produced status plus CI.

evidence

docs/preloop-live-acceptance.md:53-55 says to retain the required Preloop merge gate until the native transition is accepted, while .github/PRELOOP-TROUBLESHOOTING.md:36-37 says the old merge workflow is disabled. Separately, CONTRIBUTING.md:17-20 says GitHub must already require the App's preloop/review status alongside the two CI checks.

Comment thread .github/preloop/README.md
# Shared Preloop review publication — integration candidate
# Legacy Actions integration reference — not the active review route

Gameplay now uses the shared DD flow's native Preloop GitHub App trigger and

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2. [LOW]

The new active-route documentation conflicts with an unmarked related runbook that still states the opposite publication authority. Operators searching the Preloop docs receive incompatible instructions about who owns publication.

fix

Update docs/preloop-context-repair.md to reflect controller publication, or clearly mark that document as historical and link to the active guide.

evidence

.github/preloop/README.md:3-6 now says gameplay uses native App trigger and controller publication, but the still-current-looking docs/preloop-context-repair.md:65-66 says to keep the existing trusted publisher as the sole publication owner and states the native platform_review feature is not enabled.

Keep every finding, including LOW findings. Reject placeholders, incomplete
findings and contradictions between execution success, verdict and findings.
A terminal execution alone is not proof that GitHub received the result.
Read the authoritative complete result and its schema validation. Match head and

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3. [LOW]

The acceptance checklist omits a validation rule enforced by the repository contract, so a reviewer following the runbook could accept a changes_requested result containing only LOW findings even though the publisher would reject it as contradictory.

fix

Add an acceptance criterion that a changes_requested result must contain at least one blocking finding, and reject contradictory non-pass results as well as contradictory passes.

evidence

docs/preloop-live-acceptance.md:33-35 requires rejecting contradictory passes and requiring success=false for changes requested, but only says to reject contradictory passes. .github/preloop/review_contract.py:75-76 additionally requires changes_requested to contain at least one MEDIUM/HIGH/CRITICAL finding.

@preloop preloop Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preloop review: pass

Reviewed commit 4fb94d41b99a78bceaece61e6fec05242ca399be. This review covers that commit only.

Summary

#​#​ Review

Reviewed native checkout DynamicDevices/game-playtesting-skill at head 4fb94d41b99a78bceaece61e6fec05242ca399be, against merge base 974854c0f2db08485df2d3889a741593a98c829c (actual origin/main tip). The complete merge-base-to-head diff covers six documentation/configuration files: .github/PRELOOP-TROUBLESHOOTING.md, .github/preloop/README.md, CONTRIBUTING.md, docs/preloop-context-repair.md, docs/preloop-diagnostic-reproduction.md, and docs/preloop-live-acceptance.md.

Scope and checks:
- Read the complete diff and current versions of all changed files.
- Verified all added relative links resolve to existing repository files.
- Cross-checked documented CI names against .github/workflows/preloop-contract-tests.yml and .github/workflows/preloop-context-tests.yml.
- Cross-checked result-rule documentation against .github/preloop/native_result.py and .github/preloop/review_contract.py.
- Ran git diff --check; no whitespace errors were reported.

Limitations: GitHub App execution, live branch-protection settings, the external disabled state of legacy Actions workflows, and actual publication behavior are not representable in this checkout and were not independently verified. No repository code or tests were executed because this review was read-only.

No actionable findings. The changes consistently mark the legacy Actions integration as historical, document the intentional migration freeze, and preserve the read-only/error-not-pass safeguards.

Findings: none reported

Execution: https://preloop.ai/console/flows/executions/50e8349c-9262-4dd2-9ec7-290c2820126a

Posted by Preloop from the validated result of a read-only review run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant