Skip to content

Remove plan compile --github - #69

Merged
raghubetina merged 1 commit into
mainfrom
remove-github-publication
Nov 24, 2026
Merged

raghubetina merged 1 commit into
mainfrom
remove-github-publication

Conversation

@raghubetina

@raghubetina raghubetina commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Removes plan compile --github, the CLI side of firstdraft/firstdraft#1297 (the owner decided on 2026-11-17 to remove GitHub publication). Local output is already the default, and the person's agent creates and pushes a repository with gh. The service side is the draft firstdraft/firstdraft#1340, which removes the github-publication routes; the Skills side is the draft firstdraft/skills#197.

  • Removes src/commands/plan-publish.js, compilePlanToGitHub, the --github flag and help text, the Publication progress lines, and the two github-publication entries in SERVICE_ROUTES. --github now fails with invalid_arguments (exit 2), like any unknown option.
  • Removes seven handled error values (publication_start_rejected, publication_status_unavailable, invalid_publication_status, publication_changed, publication_wait_timed_out, publication_failed, publication_cancelled) and the "publication" phase of request_outcome_unknown.
  • The push and analysis tests in test/plan-compile.test.js that ran through --github now run through --output application, so the shared guarantees (exact bytes, If-None-Match: *, stale graph versions, diagnostics, ambiguity) keep their coverage. The exact plan compile help checks (--help, -h, repeated --help) and the rejected-argument check move over from test/plan-publish.test.js; the rest of that file covered only Publication and is deleted. The packed smoke no longer runs --github.
  • Records the removal in the unreleased 0.10.0 CHANGELOG entry, with what a caller does instead: compile into an absent --output directory, then push it with git and gh.

Kept on purpose: test/documentation.test.js keeps the fixture sentence "Scripts written for the 0.7 line keep --github.", which tests the version lint, not the flag.

Release

This has to ship in the same coordinated release as firstdraft/firstdraft#1340. The released service (Production, contract 0.8.1) still serves publication, and this branch's CLI is 0.10.0, unpublished, so nothing here changes what users run until that release. What the release needs:

  • firstdraft/firstdraft#1340 deployed to Production first. It carries a destructive migration (dropping github_publications and github_publication_attempts), so ship needs --approved-change migration and the backup and fence.
  • No contract change. The owner decided on 2026-11-24 that API changes merging before the 0.10.0 release stay inside contract 0.9.0, which covers this removal. This CLI already accepts >= 0.9.0, < 0.10.0, so this PR changes no version, range, or release record.
  • --cli 0.10.0 from a main that includes this change, and a Skills plugin whose bundled CLI pin and package file list move to that revision (the list drops src/commands/plan-publish.js).
  • After Production runs #1340, the owner drops Administration, Contents, and Workflows from both GitHub Apps.

Docs: updated docs/commands.md (command map, compile section, Publish through GitHub removed, Cancel, Service endpoints), docs/errors.md (Publication recovery and index rows removed), README.md, AGENTS.md, docs/README.md, and CHANGELOG.md.

Review: Codex (gpt-6.2-astra, xhigh), approve (2 rounds, 3 findings fixed)

Validation

  • npm audit: 0 vulnerabilities
  • npm run check: passes (360 tests, pack check, packed smoke)

First Draft is dropping GitHub publication (firstdraft/firstdraft
has gh to create and push a repository, so publication only kept the
GitHub App on Administration, Contents, and Workflows write and the
service on a publication ledger, executor, and recovery job. The
service removes its github-publication routes in the same release,
inside API contract 0.9.0, as the owner decided on 2026-11-24.

The CLI drops the --github flag, the Publication client, its seven
error values and the "publication" phase of request_outcome_unknown,
and the GitHub progress lines. --github now fails like any unknown
option. The push and analysis tests that ran through --github now run
through --output, and the exact plan compile help and rejected
argument checks move over from the deleted Publication suite, so the
shared guarantees keep their coverage.

The changelog tells a --github caller to compile into an absent
--output directory, which works on every platform and holds only the
application, then push it with git and gh. Review also corrected
where the update line appears among compile's progress lines.
@raghubetina
raghubetina force-pushed the remove-github-publication branch from 6dfff80 to 0cab54f Compare November 24, 2026 15:38
@raghubetina
raghubetina marked this pull request as ready for review November 24, 2026 15:40
@raghubetina
raghubetina merged commit 0bcd304 into main Nov 24, 2026
6 checks passed
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