Skip to content

feat(finalize-pr): let a session open its PR through finalize-pr #292

Description

@Ardnived

Summary

A session in an ordinary interactive conversation cannot run finalize-pr, because the skill carries disable-model-invocation: true (workflow/skills/finalize-pr/SKILL.md:4, the rule in workflow/skills/AGENTS.md:8). When asked to raise a PR, the model falls back to a hand-written gh pr create and skips the whole pipeline: simplify, review, conditional security review, docs sync, and step 7's body, including the mandatory ## Preview section. sydevs/SahajCloud#1238 shipped with no preview links this way. Only review-pr flags the gap (a should-fix on a missing link), and only once the review loop reaches the PR.

Approach

Remove disable-model-invocation: true from workflow/skills/finalize-pr/SKILL.md:4. A session asked to raise or refresh a PR then runs the whole pipeline, rather than a bare gh pr create.

  • Keep the trigger narrow. Rewrite the skill's description so it fires only when the user has asked to open or refresh a PR. A stray phrase firing a skill that pushes is the reason for the AGENTS.md rule.
  • Every pipeline step keeps its existing gates. Nothing here changes what the loop's own invocations of finalize-pr do.
  • Add the exception to the rule in workflow/skills/AGENTS.md:8, with a docs/why.md entry naming the failure (a PR opened with no Preview section and none of the pipeline). Without it, the next skill audit will put disable-model-invocation back.

Acceptance criteria

  • In an interactive session in a consumer repo, a request such as "raise a PR for this" runs the finalize-pr pipeline instead of a bare gh pr create.
  • A PR opened that way in a repo whose .claude/workflow.json has previewUrl carries a ## Preview section built by step 7's rules, including fixture-cited links where fixture is declared.
  • The loop's own invocations of finalize-pr (implement-ticket, address-review) behave exactly as before.
  • finalize-pr carries no disable-model-invocation. workflow/skills/AGENTS.md names the exception, and docs/why.md carries its story.

Verification checklist

  • claude plugin validate (or the repo's plugin-validation CI job) passes on the changed frontmatter.
  • In a SahajCloud worktree with one local commit touching src/components/admin/, ask an interactive session to "raise a PR". The opened PR's body has a ## Preview section whose links match fixture.link with the PR number filled in.
  • The same request in SahajAtlasWordpress (no preview) opens a PR with the Preview section omitted.
  • Ask an interactive session something that mentions "PR" without asking it to open one, e.g. "what does this PR change?". finalize-pr does not fire.

Decisions

  • How should a model-invoked session reach the PR pipeline? → Make finalize-pr itself model-invocable, rather than extracting step 7 into a helper, so an interactive PR gets simplify, review, security review and docs sync too (Ardnived, 2026-11-20)

Notes

Activity

  1. added theissue type on Nov 20, 2026
  2. Ardnived commented on Nov 20, 2026

    @Ardnived
    ContributorAuthor

    @sydevs-bot implement

  3. added
    bot:working
    on Nov 20, 2026
  4. sydevs-bot commented on Nov 20, 2026

    @sydevs-bot
    Contributor

    🤖 no session running
    approved by Ardnived

    recent dispatches
    • 23:42Z implement · attempt 1 · session · done
    • 23:42Z implement · attempt 1 · session

    Written by the sydevs dispatcher. Sessions never edit this comment.

  5. moved this from Awaiting to Working in SYDevelopers Technical Roadmapon Nov 20, 2026
  6. removed
    bot:working
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Priority

    Medium

    Hold Until

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions