spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Add a two-stage assessment and review process for community PRs

Open mnriem opened this issue 2 months ago β€’ 8 comments

Summary

Add a reusable Spec Kit extension and label-triggered agentic workflow for assessing pull requests submitted by community contributors.

The proposed process has two stages:

assessment β†’ project fit?
               β”œβ”€ no or unclear β†’ stop
               └─ yes β†’ review

This follows the staged artifact model used by the bug extension and the runtime extension installation used by the feature-assess workflow, while keeping maintainers responsible for acceptance.

Proposed extension

Add a contribution extension with two commands:

  1. speckit.contribution.assess writes .specify/contributions/pr-<number>-<short-head-sha>/assessment.md. It captures PR intent, linked issue or specification, scope, contribution-policy compliance, AI disclosure, architectural fit, risks, and required checks.
  2. speckit.contribution.review consumes the assessment and existing CI evidence, then writes review.md with prioritized findings, contributor actions, and a recommendation for maintainers.

Both commands are read-only with respect to repository source. Every artifact records the PR base and head SHAs and refuses to consume stale artifacts after the contributor pushes another revision.

Proposed agentic workflow

Add a community-pr-review workflow triggered when a maintainer applies a community-review label to an open PR.

The workflow posts at most two top-level comments:

  1. Community contribution assessment β€” Stage 1/2: summarizes fit, scope, policy compliance, risks, and the assessed head SHA.
  2. Community contribution review β€” Stage 2/2: summarizes findings, CI evidence, contributor actions, and the maintainer recommendation.

If assessment returns out-of-scope, invalid, or needs-clarification, the workflow posts only the assessment comment, applies the corresponding outcome label, and stops. Review runs only when assessment determines that the contribution fits the project and has enough information to evaluate.

Each comment should identify its stage and PR head SHA. Configure safe outputs with add-comment: max: 2 and constrained outcome labels.

Guardrails

  • Use a human-applied label as the execution gate.
  • Never modify or push to the contributor's branch.
  • Never formally approve, request changes, merge, or resolve review threads.
  • Use the pull_request security context, not pull_request_target.
  • Keep repository and pull-request permissions read-only and expose no secrets.
  • Treat PR descriptions, comments, diffs, and changed files as untrusted data rather than instructions.
  • Consume existing CI results instead of executing contributor-controlled commands in the agentic workflow.
  • Record the head SHA and stop when assessment or CI evidence is stale.

Suggested outcomes

Assessment can conclude:

  • fits-project β€” continue to review.
  • needs-clarification β€” request information and stop.
  • out-of-scope β€” explain why and stop.
  • invalid β€” explain why and stop.

Review can conclude:

  • ready-for-maintainer-review.
  • needs-contributor-action.
  • blocked.

These are recommendations only; a maintainer remains the final decision-maker.

Acceptance criteria

  • A maintainer can trigger the process against a community PR by applying one label.
  • Assessment always posts first and clearly identifies itself as Stage 1/2.
  • Review runs and posts Stage 2/2 only when assessment returns fits-project.
  • At most two comments are created per run.
  • Both outputs identify the exact PR head SHA they evaluated.
  • Source files and the contributor's branch are never modified.
  • Re-running after a new push cannot reuse stale assessment artifacts.

AI disclosure

This issue was drafted and filed on behalf of @mnriem by GitHub Copilot (model: GPT-5.6 Sol).

mnriem avatar Sep 02 '26 20:09 mnriem

El miΓ©, 2 de sept de 2026, 17:59, Manfred Riem @.***> escribiΓ³:

mnriem created an issue (github/spec-kit#4410) https://github.com/github/spec-kit/issues/4410 Summary

Add a reusable Spec Kit extension and label-triggered agentic workflow for assessing pull requests submitted by community contributors.

The proposed process has two stages:

assessment β†’ project fit? β”œβ”€ no or unclear β†’ stop └─ yes β†’ review

This follows the staged artifact model used by the bug extension and the runtime extension installation used by the feature-assess workflow, while keeping maintainers responsible for acceptance. Proposed extension

Add a contribution extension with two commands:

  1. speckit.contribution.assess writes .specify/contributions/pr--/assessment.md. It captures PR intent, linked issue or specification, scope, contribution-policy compliance, AI disclosure, architectural fit, risks, and required checks.
  2. speckit.contribution.review consumes the assessment and existing CI evidence, then writes review.md with prioritized findings, contributor actions, and a recommendation for maintainers.

Both commands are read-only with respect to repository source. Every artifact records the PR base and head SHAs and refuses to consume stale artifacts after the contributor pushes another revision. Proposed agentic workflow

Add a community-pr-review workflow triggered when a maintainer applies a community-review label to an open PR.

The workflow posts at most two top-level comments:

  1. Community contribution assessment β€” Stage 1/2: summarizes fit, scope, policy compliance, risks, and the assessed head SHA.
  2. Community contribution review β€” Stage 2/2: summarizes findings, CI evidence, contributor actions, and the maintainer recommendation.

If assessment returns out-of-scope, invalid, or needs-clarification, the workflow posts only the assessment comment, applies the corresponding outcome label, and stops. Review runs only when assessment determines that the contribution fits the project and has enough information to evaluate.

Each comment should identify its stage and PR head SHA. Configure safe outputs with add-comment: max: 2 and constrained outcome labels. Guardrails

  • Use a human-applied label as the execution gate.
  • Never modify or push to the contributor's branch.
  • Never formally approve, request changes, merge, or resolve review threads.
  • Use the pull_request security context, not pull_request_target.
  • Keep repository and pull-request permissions read-only and expose no secrets.
  • Treat PR descriptions, comments, diffs, and changed files as untrusted data rather than instructions.
  • Consume existing CI results instead of executing contributor-controlled commands in the agentic workflow.
  • Record the head SHA and stop when assessment or CI evidence is stale.

Suggested outcomes

Assessment can conclude:

  • fits-project β€” continue to review.
  • needs-clarification β€” request information and stop.
  • out-of-scope β€” explain why and stop.
  • invalid β€” explain why and stop.

Review can conclude:

  • ready-for-maintainer-review.
  • needs-contributor-action.
  • blocked.

These are recommendations only; a maintainer remains the final decision-maker. Acceptance criteria

  • A maintainer can trigger the process against a community PR by applying one label.
  • Assessment always posts first and clearly identifies itself as Stage 1/2.
  • Review runs and posts Stage 2/2 only when assessment returns fits-project.
  • At most two comments are created per run.
  • Both outputs identify the exact PR head SHA they evaluated.
  • Source files and the contributor's branch are never modified.
  • Re-running after a new push cannot reuse stale assessment artifacts.

AI disclosure

This issue was drafted and filed on behalf of @mnriem https://github.com/mnriem by GitHub Copilot (model: GPT-5.6 Sol).

β€” Reply to this email directly, view it on GitHub https://github.com/github/spec-kit/issues/4410?email_source=notifications&email_token=CHK44JJ7BRYRENLZLWONO7T5NCC2RA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43TOVSS6NJTGI4TCNBUGE2DBJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L, or unsubscribe https://github.com/notifications/unsubscribe-auth/CHK44JMDYLGKORU5MQKSUK35NCC2RAVCNFSNUABGKJSXA33TNF2G64TZHMYTANBSGM3DOMJTGM5US43TOVSTWNJTGI4TCNBUGE2DBILWAI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lilisalinas936-design avatar Sep 02 '26 21:09 lilisalinas936-design

Feature assessment β€” community-pr-review Β· Stage 1/5: Intake

Idea Intake: Add a two-stage assessment and review process for community PRs

  • Slug: community-pr-review
  • Created: 2026-09-03T12:32:06Z
  • Source: https://github.com/github/spec-kit/issues/4410 (host: github.com; policy: allowlisted; no additional fetch)
  • Type: new-capability

Idea (as captured)

Summary

Add a reusable Spec Kit extension and label-triggered agentic workflow for assessing pull requests submitted by community contributors.

The proposed process has two stages:

assessment β†’ project fit?
               β”œβ”€ no or unclear β†’ stop
               └─ yes β†’ review

This follows the staged artifact model used by the bug extension and the runtime extension installation used by the feature-assess workflow, while keeping maintainers responsible for acceptance.

Proposed extension

Add a contribution extension with two commands:

  1. speckit.contribution.assess writes .specify/contributions/pr--/assessment.md. It captures PR intent, linked issue or specification, scope, contribution-policy compliance, AI disclosure, architectural fit, risks, and required checks.
  2. speckit.contribution.review consumes the assessment and existing CI evidence, then writes review.md with prioritized findings, contributor actions, and a recommendation for maintainers.

Both commands are read-only with respect to repository source. Every artifact records the PR base and head SHAs and refuses to consume stale artifacts after the contributor pushes another revision.

Proposed agentic workflow

Add a community-pr-review workflow triggered when a maintainer applies a community-review label to an open PR.

The workflow posts at most two top-level comments:

  1. Community contribution assessment β€” Stage 1/2: summarizes fit, scope, policy compliance, risks, and the assessed head SHA.
  2. Community contribution review β€” Stage 2/2: summarizes findings, CI evidence, contributor actions, and the maintainer recommendation.

If assessment returns out-of-scope, invalid, or needs-clarification, the workflow posts only the assessment comment, applies the corresponding outcome label, and stops. Review runs only when assessment determines that the contribution fits the project and has enough information to evaluate.

Each comment should identify its stage and PR head SHA. Configure safe outputs with add-comment: max: 2 and constrained outcome labels.

Guardrails

  • Use a human-applied label as the execution gate.
  • Never modify or push to the contributor's branch.
  • Never formally approve, request changes, merge, or resolve review threads.
  • Use the pull_request security context, not pull_request_target.
  • Keep repository and pull-request permissions read-only and expose no secrets.
  • Treat PR descriptions, comments, diffs, and changed files as untrusted data rather than instructions.
  • Consume existing CI results instead of executing contributor-controlled commands in the agentic workflow.
  • Record the head SHA and stop when assessment or CI evidence is stale.

Suggested outcomes

Assessment can conclude:

  • fits-project β€” continue to review.
  • needs-clarification β€” request information and stop.
  • out-of-scope β€” explain why and stop.
  • invalid β€” explain why and stop.

Review can conclude:

  • ready-for-maintainer-review.
  • needs-contributor-action.
  • blocked.

These are recommendations only; a maintainer remains the final decision-maker.

Acceptance criteria

  • A maintainer can trigger the process against a community PR by applying one label.
  • Assessment always posts first and clearly identifies itself as Stage 1/2.
  • Review runs and posts Stage 2/2 only when assessment returns fits-project.
  • At most two comments are created per run.
  • Both outputs identify the exact PR head SHA they evaluated.
  • Source files and the contributor's branch are never modified.
  • Re-running after a new push cannot reuse stale assessment artifacts.

AI disclosure

This issue was drafted and filed on behalf of @mnriem by GitHub Copilot (model: GPT-5.6 Sol).

The issue was opened by mnriem on 2026-09-02 and is labeled feature-assess. One subsequent comment is an email-rendered duplicate of the issue body; it adds no distinct scope or stakeholder signal. The issue contains GitHub links, but the issue itself is the primary source and no additional URL was fetched.

Restated

The proposal is to add a reusable contribution extension with assessment and review commands, plus a maintainer-triggered workflow that evaluates community pull requests in two stages. It would retain immutable commit context, consume existing CI evidence, post bounded recommendations, and leave final acceptance decisions to maintainers.

Origin & Context

  • Raised by: mnriem
  • Trigger: A feature-assess label was applied to issue #4410, invoking the idea-assessment pipeline.

First-Glance Unknowns

  • [NEEDS CLARIFICATION: Which existing contribution policy, repository constitution, or maintainer checklist defines compliance and architectural fit?]
  • [NEEDS CLARIFICATION: Which PR metadata, linked issues/specifications, and CI result sources are required inputs, and how should absent or unavailable evidence be handled?]
  • [NEEDS CLARIFICATION: What exact labels correspond to the proposed assessment and review outcomes, and who may apply or remove them?]
  • [NEEDS CLARIFICATION: How should a stale run behave if the PR head changes while comments or labels are being queued?]
  • [NEEDS CLARIFICATION: What security and platform guarantees are available for read-only pull-request workflows and safe outputs in this repository?]

Generated by πŸ’‘ Assess a Feature Request by Installing and Running Spec Kit for issue #4410 Β· 314 AIC Β· ⊞ 30.4K Β· β—·

github-actions[bot] avatar Sep 03 '26 12:09 github-actions[bot]

Feature assessment β€” community-pr-review Β· Stage 2/5: Research

Idea Research: Add a two-stage assessment and review process for community PRs

  • Slug: community-pr-review
  • Created: 2026-09-03T12:32:06Z
  • Evidence confidence (overall): low

Users & Demand

  • The issue author explicitly requests a reusable contribution assessment/review flow for community pull requests and provides acceptance criteria for maintainer-triggered execution β€” source: GitHub issue #4410 (host: github.com; policy: allowlisted; no additional fetch) (confidence: medium; cited).
  • The repository documents a community of more than 130 extensions from more than 70 authors, indicating a substantial contributor ecosystem that could be relevant to a repeatable contribution process β€” source: docs/community/overview.md (confidence: medium; cited).
  • No usage data, support-ticket volume, maintainer interviews, or observed review-time data was found in the inspected repository or issue thread; demand beyond this request is therefore [UNVERIFIED: not measured] β€” [source: issue #4410 and repository search] (confidence: low; cited gap).

Prior Art

  • The bundled assess extension already uses a staged, artifact-per-stage funnel under .specify/assessments/<slug>/, with intake, research, define, shape, and decide stages β€” source: extensions/assess/README.md (confidence: high; cited).
  • The bundled bug workflow demonstrates a label-triggered, read-only issue assessment that posts a report as one issue comment and applies constrained labels β€” source: .github/workflows/bug-assess.md (confidence: high; cited).
  • The existing community-extension workflow validates a submission issue, applies validation labels, restricts changed files for its generated pull request, and requires maintainer review of the resulting draft PR; it does not assess arbitrary community pull requests β€” source: .github/workflows/add-community-extension.md (confidence: high; cited).
  • Repository search found no existing contribution extension or community-pr-review workflow in the checked-out tree; this is an absence finding, not evidence that no related implementation exists elsewhere β€” [source: repository search, 2026-09-03] (confidence: medium; cited).
  • Community extensions are explicitly described as independently maintained, with maintainers verifying catalog completeness rather than auditing or endorsing extension code. This establishes an existing boundary between catalog validation and code review that the proposal would need to preserve or intentionally change β€” source: docs/community/extensions.md (confidence: high; cited).

Market & Context

  • Current repository contribution guidance asks contributors to fork, test, add tests, document user-facing changes, submit a pull request, and wait for review; it also asks maintainers to discuss and agree on large changes before submission β€” source: CONTRIBUTING.md (confidence: high; cited).
  • The current pull-request template asks for local CLI testing, existing test execution, sample-project testing where relevant, and AI-use disclosure β€” source: .github/PULL_REQUEST_TEMPLATE.md (confidence: high; cited).
  • If nothing is built, maintainers continue to rely on the documented manual pull-request process and existing workflow-specific checks; the size of the resulting review burden is [UNVERIFIED: no repository metric or maintainer study was found] β€” [source: CONTRIBUTING.md, .github/PULL_REQUEST_TEMPLATE.md, repository search] (confidence: medium; cited gap).
  • The proposal's two-stage model could provide a consistent pre-review signal for project fit while keeping acceptance with maintainers, but that benefit is a hypothesis from the issue rather than an observed outcome β€” [source: issue #4410] (confidence: low; cited assumption).

Data & Constraints

  • The requested workflow must use a human-applied label as its execution gate, keep repository and pull-request permissions read-only, avoid pull_request_target, treat PR content as untrusted, consume existing CI evidence, and never modify or push to a contributor branch β€” [source: issue #4410] (confidence: high; cited).
  • The requested artifacts must record base and head SHAs and refuse stale artifacts after a new contributor push; stale-run handling is a core correctness constraint, not an optional enhancement β€” [source: issue #4410] (confidence: high; cited).
  • The repository's agentic workflows conventionally declare contents: read and issues: read, and constrain safe-output comment/label counts; the existing feature and bug workflows provide concrete local patterns β€” source: .github/workflows/feature-assess.md, .github/workflows/bug-assess.md (confidence: high; cited).
  • The existing assess extension writes read-write artifacts under .specify/assessments/, while the requested contribution commands are specified as read-only with respect to repository source; the artifact location and write boundary therefore require an explicit convention β€” [source: extensions/assess/README.md, issue #4410] (confidence: medium; cited).
  • The contribution policy requires AI assistance and AI-generated responses or comments to be disclosed, and asks for human understanding, testing, rationale, and concrete evidence β€” source: CONTRIBUTING.md (confidence: high; cited).

Evidence Against the Idea

  • Demand is currently represented by one issue request, with no observed workload or outcome data demonstrating that a second automated review stage would repay its maintenance and security cost β€” [source: issue #4410 and repository search] (confidence: low; cited).
  • The proposal combines a new extension, a new label-triggered workflow, PR metadata and CI evidence consumption, SHA freshness rules, bounded comments, and outcome labels. This is broader than a single artifact command and increases implementation and operational surface β€” [source: issue #4410] (confidence: high; cited).
  • Security and race-condition behavior are central: untrusted PR content, read-only permissions, existing CI provenance, and a head change during execution all need fail-closed semantics. The issue states these constraints but does not establish that the current harness exposes all required signals safely β€” [source: issue #4410; .github/workflows/feature-assess.md] (confidence: medium; cited).
  • Existing repository guidance says large changes that materially affect the CLI or repository should be discussed and agreed with maintainers before implementation; the issue does not record that agreement β€” source: CONTRIBUTING.md (confidence: high; cited).
  • Automated recommendations may duplicate or complicate the established maintainer review process, especially because community extensions are currently not audited or endorsed by maintainers through catalog processing β€” source: docs/community/extensions.md (confidence: medium; cited).

Gaps & Open Questions

  • [NEEDS CLARIFICATION: What measured community-PR volume, maintainer time, or review failure pattern justifies this process?]
  • [NEEDS CLARIFICATION: Which repository policy/checklist is authoritative for contribution-policy compliance and architectural fit?]
  • [NEEDS CLARIFICATION: Which exact PR metadata and existing CI evidence are available through the read-only GitHub toolset and safe workflow context?]
  • [NEEDS CLARIFICATION: What are the exact assessment and review outcome labels, and are they already defined in the repository?]
  • [NEEDS CLARIFICATION: What atomicity or cancellation behavior prevents a new PR head from being mislabeled or receiving stale comments during a run?]
  • [NEEDS CLARIFICATION: Should contribution artifacts live under .specify/contributions/, a per-PR directory, or another established location, and how are they retained or cleaned up?]
  • [NEEDS CLARIFICATION: Has a maintainer agreed to the proposed large cross-cutting change?]

Sources

  • https://github.com/github/spec-kit/issues/4410 (host: github.com, policy: allowlisted; no additional fetch)
  • extensions/assess/README.md (repository source)
  • extensions/bug/README.md (repository source)
  • .github/workflows/bug-assess.md (repository source)
  • .github/workflows/feature-assess.md (repository source)
  • .github/workflows/add-community-extension.md (repository source)
  • CONTRIBUTING.md (repository source)
  • .github/PULL_REQUEST_TEMPLATE.md (repository source)
  • docs/community/overview.md (repository source)
  • docs/community/extensions.md (repository source)
  • Repository search performed 2026-09-03 (no matching contribution extension or community PR review workflow found)

Generated by πŸ’‘ Assess a Feature Request by Installing and Running Spec Kit for issue #4410 Β· 314 AIC Β· ⊞ 30.4K Β· β—·

github-actions[bot] avatar Sep 03 '26 12:09 github-actions[bot]

Feature assessment β€” community-pr-review Β· Stage 3/5: Problem

Problem Definition: Add a two-stage assessment and review process for community PRs

  • Slug: community-pr-review
  • Created: 2026-09-03T12:32:06Z
  • Inputs used: intake.md and research.md

Problem Statement

Maintainers evaluating community pull requests lack a documented, repeatable way to establish project fit, contribution-policy compliance, evidence readiness, and review risk before investing in a full review. The issue proposes addressing this gap because Spec Kit has a sizable community ecosystem, while the current repository guidance describes the contributor process and required evidence but does not document a dedicated community-PR triage stage β€” [source: docs/community/overview.md, CONTRIBUTING.md, issue #4410].

Affected Users & Stakeholders

  • Users: Community contributors β€” may receive inconsistent or delayed signals about whether a pull request has the required context, policy compliance, testing evidence, and disclosure.
  • Users: Maintainers β€” must determine project fit and review readiness while protecting repository and contributor-branch safety.
  • Stakeholders: Spec Kit maintainers β€” retain final acceptance authority and own repository policy, security posture, and review capacity.
  • Stakeholders: Project administrators β€” are responsible for workflow permissions, labels, safe outputs, and operational behavior.
  • Stakeholders: The broader Spec Kit community β€” is affected by review consistency, maintainer capacity, and the quality of accepted contributions.
  • Stakeholders: [NEEDS CLARIFICATION: The maintainer or team accountable for defining the authoritative contribution-policy and architectural-fit criteria.]

Goals

  • Establish a consistent, auditable way to determine whether a community pull request is sufficiently in scope and evidenced for maintainer review.
  • Make missing context, policy gaps, risks, and required contributor actions explicit before or during review.
  • Preserve exact revision context so assessment and review conclusions correspond to the pull-request head that was examined.
  • Reduce avoidable maintainer effort and inconsistent triage without transferring final acceptance authority from maintainers.
  • Preserve repository, contributor-branch, and pull-request safety while using existing CI evidence.

Non-Goals

  • Automatically approve, request changes on, merge, or resolve review threads for a pull request.
  • Replace maintainer judgment or define a binding acceptance decision.
  • Modify repository source files, contributor branches, or pull-request content.
  • Execute contributor-controlled code or substitute newly run checks for existing CI evidence.
  • Define the complete contribution policy, architectural standards, or maintainer review rubric; those authoritative inputs remain [NEEDS CLARIFICATION].
  • Generalize the process to issues, extensions, presets, or other contribution types unless separately agreed.

Success Metrics

  • Percentage of assessed pull requests whose assessment identifies the exact evaluated head SHA and does not produce a stale result after a revision change (baseline: unknown).
  • Percentage of assessed pull requests with an explicit fit/readiness outcome and recorded evidence gaps or contributor actions when applicable (baseline: unknown).
  • Median time from a maintainer's trigger to a first triage signal (baseline: unknown).
  • Maintainer-reported reduction in repeated requests for missing context, policy information, testing evidence, or AI disclosure (baseline: unknown; qualitative).
  • Rate of runs that correctly stop without a review-stage output when assessment is out of scope, invalid, or needs clarification (baseline: unknown).
  • [NEEDS CLARIFICATION: Target thresholds, observation period, denominator, and acceptable false-positive/false-negative rates for each metric.]

Cost of Inaction

Without a dedicated and auditable triage boundary, maintainers continue to rely on the general pull-request process and workflow-specific checks to decide when a community contribution is ready for review. This may preserve flexibility, but the issue provides no measured estimate of the resulting delay, duplicate clarification work, inconsistent fit judgments, or stale-review risk β€” [UNVERIFIED: cost of inaction is not measured in the repository or issue thread].

Open Questions

  • [NEEDS CLARIFICATION: What measured community-PR volume, maintainer time, or review failure pattern justifies this process?]
  • [NEEDS CLARIFICATION: Which repository policy/checklist is authoritative for contribution-policy compliance and architectural fit?]
  • [NEEDS CLARIFICATION: Which exact PR metadata and existing CI evidence are available through the read-only GitHub toolset and safe workflow context?]
  • [NEEDS CLARIFICATION: What are the exact assessment and review outcome labels, and are they already defined in the repository?]
  • [NEEDS CLARIFICATION: What atomicity or cancellation behavior prevents a new PR head from being mislabeled or receiving stale comments during a run?]
  • [NEEDS CLARIFICATION: Should contribution artifacts live under .specify/contributions/, a per-PR directory, or another established location, and how are they retained or cleaned up?]
  • [NEEDS CLARIFICATION: Has a maintainer agreed to the proposed large cross-cutting change?]
  • [NEEDS CLARIFICATION: What target thresholds and evaluation period would demonstrate reduced triage effort without reducing review quality?]

Generated by πŸ’‘ Assess a Feature Request by Installing and Running Spec Kit for issue #4410 Β· 314 AIC Β· ⊞ 30.4K Β· β—·

github-actions[bot] avatar Sep 03 '26 12:09 github-actions[bot]

Feature assessment β€” community-pr-review Β· Stage 4/5: Concept

Concept: Add a two-stage assessment and review process for community PRs

  • Slug: community-pr-review
  • Created: 2026-09-03T12:32:06Z
  • Recommended option: Option B β€” assessment-first pilot

Options

Option A β€” Continue the manual maintainer process

+- Sketch: Keep the current contribution guidance, pull-request template, existing CI, and human maintainer review as the complete process. Maintainers decide case by case whether a community pull request has enough context and evidence to review. +- Appetite: small +- Trade-offs: Avoids new workflow, policy, security, and maintenance cost, and preserves maximum human judgment. It does not address the requested consistency or provide a shared record of fit, evidence gaps, revision identity, or repeated clarification work. +- Rabbit holes: Informal process changes may emerge without documentation; perceived inconsistency or review delays could persist without baseline measurements.

Option B β€” Assessment-first pilot

+- Sketch: Introduce a narrowly bounded, maintainer-triggered assessment that produces one auditable fit/readiness report for a community pull request. The report records the examined revision, relevant policy and testing evidence, risks, and missing information; maintainers continue the actual review manually, and the pilot is evaluated before any automated review stage is added. +- Appetite: medium +- Trade-offs: Tests whether structured triage reduces repeated clarification and improves consistency while limiting automation and keeping final decisions with maintainers. It does not immediately deliver the full two-command/two-comment process requested, and its value depends on obtaining an authoritative rubric and measurable baseline. +- Rabbit holes: Expanding the report into code review; attempting to infer architectural fit without agreed criteria; consuming untrusted PR content or CI results without a clear provenance boundary; treating a stale revision as current.

Option C β€” Full two-stage contribution assessment and review

+- Sketch: Provide a reusable contribution assessment followed, when the contribution fits and has sufficient evidence, by a separate review report. A maintainer-applied trigger starts the process, each report names the evaluated revision, non-fitting or incomplete contributions stop after assessment, and all outputs remain recommendations while maintainers retain acceptance authority. +- Appetite: large +- Trade-offs: Most closely matches the requested end state and could standardize both fit triage and review preparation across the community. It has the highest operational and security surface, requires stable policy and CI inputs, and risks automating a process whose demand and success thresholds are not yet measured. +- Rabbit holes: Designing a complete contribution-policy and architectural-fit rubric; defining every outcome label and transition; making comments and labels atomic across a new push; reproducing or superseding CI interpretation; broadening from community PRs to all contribution types.

Recommendation

Recommend Option B β€” assessment-first pilot as the smallest concept that can test the stated problem without committing to the full operational surface of Option C. It directly targets consistency, revision traceability, explicit evidence gaps, and maintainer effort while preserving the repository's existing human review boundary. However, the evidence confidence is low, so this recommendation is conditional: the pilot should not proceed to specification until maintainers provide an authoritative assessment rubric, baseline workload data, exact available PR/CI signals, and stale-run semantics. These conditions are supported by the open questions in the intake, research, and problem artifacts and by the repository guidance requiring agreement for large changes β€” [source: issue #4410; CONTRIBUTING.md; extensions/assess/README.md].

Out of Scope (for the recommended option)

  • A second automated review stage or prioritized code findings.
  • Automatic approval, change requests, merge, thread resolution, or any binding acceptance decision.
  • Changes to repository source files, contributor branches, or pull-request content.
  • Execution of contributor-controlled code or creation of replacement CI results.
  • Creation of a new contribution policy or architectural standard.
  • Assessment of issues, extensions, presets, or non-community contributions.
  • Cross-run automation for stale-head reconciliation until its correctness rules are agreed.

Assumptions to Validate

  • Maintainers can identify a stable, authoritative set of project-fit, policy, disclosure, and evidence criteria.
  • The repository's read-only workflow context exposes the PR revision, relevant metadata, and existing CI evidence needed for a useful assessment.
  • A maintainer-applied trigger and a single assessment report fit the repository's operational and review practices.
  • A revision change can be detected and handled without presenting stale conclusions as current.
  • There is enough community-PR volume or repeated triage cost to justify a pilot; current evidence does not establish this.
  • Maintainers will define measurable pilot thresholds before evaluating whether to expand to a review stage.

Generated by πŸ’‘ Assess a Feature Request by Installing and Running Spec Kit for issue #4410 Β· 314 AIC Β· ⊞ 30.4K Β· β—·

github-actions[bot] avatar Sep 03 '26 12:09 github-actions[bot]

Feature assessment β€” community-pr-review Β· Stage 5/5: Decision β€” verdict needs-clarification

Decision: Add a two-stage assessment and review process for community PRs

  • Slug: community-pr-review
  • Decided: 2026-09-03T12:32:06Z
  • Verdict: needs-clarification
  • Artifacts reviewed: intake.md | research.md | problem.md | concept.md

Scorecard

Criterion Rating Justification
Problem validity adequate Issue #4410 identifies a plausible consistency and review-readiness gap, and the repository documents a broad community ecosystem and a manual contribution process; observed pain and impact are not measured.
Evidence strength weak Evidence consists primarily of the request itself and repository documentation; no community-PR volume, maintainer interviews, review-time data, or outcome data was found.
Value vs. inaction unknown The problem definition identifies possible inconsistency, repeated clarification, and stale-review costs, but there is no baseline or threshold showing that the benefit exceeds the maintenance and security cost.
Feasibility / appetite adequate The assessment-first pilot is a bounded concept aligned with existing staged artifact and read-only workflow patterns, but the full requested process has a large and still-unclear operational surface.
Strategic fit adequate A read-only, auditable workflow is consistent with the repository's Spec Kit workflow model, contribution guidance, and maintainer-controlled review boundary; maintainer agreement for this cross-cutting change is not recorded.
Risk posture weak The artifacts identify untrusted PR input, CI provenance, permissions, stale-head races, labels, and comment bounds, but authoritative criteria and fail-closed operational semantics are not established.

Verdict & Rationale

Needs clarification. The idea is coherent and a narrowly bounded assessment-first pilot could be worth exploring, but the evidence-strength rating is weak and value versus inaction is unknown. The command's gate therefore rules out go: before specification, maintainers need measured demand or workload evidence, an authoritative fit/policy rubric, confirmed read-only PR and CI signals, explicit stale-revision behavior, outcome-label ownership, and agreement to pursue the cross-cutting change. The shaped concept's pilot recommendation is retained, but it is conditional rather than an implementation handoff.

If needs-clarification

  • Blocking questions:
    • [NEEDS CLARIFICATION: What measured community-PR volume, maintainer time, or review failure pattern justifies a dedicated process?]
    • [NEEDS CLARIFICATION: Which contribution-policy, disclosure, testing, and architectural-fit criteria are authoritative?]
    • [NEEDS CLARIFICATION: Which PR metadata and existing CI evidence can be consumed through the read-only workflow context, with what provenance guarantees?]
    • [NEEDS CLARIFICATION: What exact labels and permissions represent assessment outcomes, and who owns their lifecycle?]
    • [NEEDS CLARIFICATION: What fail-closed behavior prevents comments or labels from reflecting a stale PR head if the contributor pushes during a run?]
    • [NEEDS CLARIFICATION: What baseline, target thresholds, observation period, and acceptable error rates will determine whether a pilot succeeds?]
    • [NEEDS CLARIFICATION: Has a maintainer agreed to the proposed cross-cutting extension and workflow change?] +- Revisit stage: research, define, shape

Generated by πŸ’‘ Assess a Feature Request by Installing and Running Spec Kit for issue #4410 Β· 314 AIC Β· ⊞ 30.4K Β· β—·

github-actions[bot] avatar Sep 03 '26 12:09 github-actions[bot]

Clarifications

I agree with Option B: an assessment-first pilot. The review stage should remain out of scope until the pilot meets an explicit success gate.

  1. Measured demand and baseline. For the 90 days beginning 2026-06-05, the repository received 1,075 PRs. Using GitHub author_association values NONE, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, and CONTRIBUTOR, while excluding bot accounts, 683 were community PRs from 132 authors; 479 merged, 103 closed unmerged, and 101 remained open at measurement time. Median time to close or the measurement time was 2.29 days. This establishes substantial volume, but it does not establish maintainer time spent or repeated-clarification cost. Before the pilot starts, we should code a stratified retrospective sample of 100 community PRs to establish those baselines.

  2. Authoritative rubric. The pilot should treat CONTRIBUTING.md as authoritative for prior maintainer agreement on large changes, focused scope, tests, documentation, workflow compatibility, AI disclosure, human understanding/testing, rationale, concrete evidence, and contributor analysis. Existing required CI checks are authoritative for test status. A linked issue/specification and recorded maintainer agreement are evidence of project fit; the agent must not invent architectural policy. Architectural fit remains a maintainer judgment, and the assessment may only report whether the required evidence is present, absent, or conflicting.

  3. Read-only inputs and provenance. Required inputs are the PR number/state, author and association, title/body, base ref/SHA, head ref/SHA, changed files and diff, linked issues/specifications, review discussion, and check runs/statuses for the captured head SHA. The workflow should use the pull_request event, the GitHub pull_requests/repository tools, and read-only contents, pull-requests, checks, and actions permissions. CI evidence is accepted only when its recorded head SHA equals the captured PR head SHA; the report records each check's name, conclusion, URL, and GitHub App/owner. Missing or inaccessible evidence is reported as unknown and cannot be converted into a pass. No contributor-controlled command is executed and no secret is exposed to the agent.

  4. Labels and ownership. Use namespaced labels to avoid colliding with existing generic labels:

    • Trigger: community-review
    • Assessment: community-assessment-fits, community-assessment-needs-clarification, community-assessment-out-of-scope, community-assessment-invalid
    • Eventual review-stage labels: community-review-ready, community-review-action-needed, community-review-blocked

    Maintainers apply or remove the trigger. The safe-output job, not the agent, owns outcome-label mutations and may have only one current outcome label at a time. A new run removes prior workflow-owned outcomes before applying its result. Maintainers retain authority to remove or override any recommendation. None of these labels currently exists and they should be created only if the pilot is approved; the pilot initially needs only the trigger and assessment labels.

  5. Stale-head semantics. Capture expected_head_sha at activation and use PR-number concurrency with cancel-in-progress: true. A trusted output step must re-fetch the open PR and compare its head SHA immediately before applying each comment or label; a mismatch produces no further output, removes workflow-owned current-state labels, and requires the maintainer to re-trigger assessment. On synchronize or closed, a non-agent cleanup job removes current-state outcome labels. Every comment includes the assessed SHA and remains an explicitly historical report if the contributor pushes later. If the head changes between Stage 1 and a future Stage 2, Stage 1 may remain, but Stage 2 and its label must not be emitted.

    GitHub does not provide an atomic transaction across ref reads, comments, and label mutations, so absolute comment/label atomicity is not achievable. The specification should promise fail-closed checks and SHA-qualified historical comments, not impossible transactional behavior.

  6. Output and retention. Assessment and eventual review files exist only as transient working files while their commands run. The workflow posts each complete stage artifact as a top-level PR comment, following the same pattern as the feature-assess agentic workflow, and then discards the transient files. Nothing is committed, uploaded, or otherwise retained outside those comments. The SHA-qualified comments are the durable audit record.

  7. Pilot evaluation. Run the assessment-only pilot for eight weeks and at least 50 maintainer-triggered community PRs. Compare it with the retrospective baseline and require all of the following before adding the review stage: at least a 25% reduction in median maintainer clarification rounds before substantive review; at least a 20% reduction in self-reported triage minutes; at least 90% maintainer agreement with the assessment outcome; no more than a 5% false-stop rate for terminal outcomes; no more than a 5% rate of missed required policy/CI evidence; and no increase greater than 10% in time to first substantive human review. The two-comment bound and zero stale current-state labels are hard requirements, not target averages.

  8. Maintainer agreement. Established. As lead maintainer, I approve proceeding with the assessment-first pilot described above. The review stage remains gated on the pilot success criteria.

Posted on behalf of @mnriem by GitHub Copilot (model: GPT-5.6 Sol).

mnriem avatar Sep 03 '26 12:09 mnriem

This issue has been automatically marked as stale because it has had no activity for 60 days. It will be closed in 30 days unless there is a substantive update. If the problem still applies, please provide updated context such as whether it is still reproducible, the affected version or environment, its current impact, and any new reproduction details. A comment that only states that the issue is "still relevant" does not give maintainers enough information to reconsider it.

github-actions[bot] avatar Nov 11 '26 00:11 github-actions[bot]