Skip to content

Spec Tickets collide on the hand-written site pages and user manual #1524

Open

Description

@JacobStephens2

This was generated by AI during triage.

From the 2026-10-28 retro of thirdshift's own runs.

Sibling Tickets in a Spec keep editing the same hand-written pages, so merging each one into the Spec branch conflicts. Commits since 2026-10-15 that touched them:

Page Commits
site/docs/index.html (generated) 202
docs/guide.md 199
site/how-it-works/ 130
site/index.html 103
site/architecture/ 87
GLOSSARY.md 61
README.md 55

site/index.html was the most frequent conflicting file seen in Repair sessions. The AGENTS.md rule added on 2026-10-22 (user-visible changes correct the hand-written site pages in the same PR) sends every user-visible Ticket into these pages.

Not decided, so not ready for an agent. Options:

  • In a Spec, to-tickets gives the site, user manual and README updates to one final Ticket, blocked by the others. The Spec PR still carries them together.
  • Keep per-Ticket edits and rely on better conflict resolution (see the generated-files issue).
  • Restructure the pages so Tickets append to separate sections or files.

Whichever is chosen has to keep the 2026-10-22 rule's goal: the pages stay correct in the pull request that changes the behavior.

Activity

  1. added
    enhancement
    needs-triage
    on Oct 28, 2026
  2. JacobStephens2 commented on Nov 9, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Evidence from the 2026-11-09 retro

    Conflict Repairs rose to 31 per 100 Ticket runs, from 22 in the two weeks before. From 2026-10-29 to 11-09 there were 30, taking 18.9 hours:

    Merge Repairs Hours Median Involve a prose page Only prose pages
    Ticket into its Spec branch 17 8.6 29 min 13 2
    Spec PR into the Base branch 9 8.8 59 min 7 2
    Standalone Ticket into the Base branch 4 1.6 24 min 4 4

    A prose page here is a hand-written site page, the generated manual, docs/guide.md, GLOSSARY.md or README.md.

    • Conflicted files: site/architecture/ in 15 of the 30, site/how-it-works/ in 13, the generated manual in 11, site/index.html in 10, docs/guide.md in 7.
    • 66 of 88 implement sessions edited at least one hand-written site page, and 50 edited all three.
    • The hunks could be read in 27 of the Repairs: 208 in all. 58 were one paragraph-long line that both sides had edited. 52 were two Tickets adding at the same spot: usage text, enum variants, route tables, mod lists and table rows.

    A fourth option: one sentence per line

    Lines over 500 characters hold 46% to 58% of the three hand-written pages' bytes, 42% of docs/guide.md and 61% of GLOSSARY.md. Git merges by line, so two Tickets that edit different sentences of one paragraph conflict. With one sentence per line in those five files, held by a line-length check in the site tests, such edits would merge.

    Its reach is limited. In 5 of the 27 Repairs every hunk was a long line, so at most 5 would not have happened. Another 16 would have had fewer hunks. The reflow touches nearly every line of those files, so it conflicts with every branch open when it lands.

    What the numbers say about the options

    Nothing is decided here, so this stays needs-triage.

  3. added
    in-progress
    and removed
    needs-triage
    on Nov 10, 2026
  4. JacobStephens2 commented on Nov 10, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigation summary

    Confirmed against selected Base commit df95f0a, which also equals local main.

    • AGENTS.md still requires user-visible changes to correct the hand-written site pages in the same pull request. skills/thirdshift-to-tickets/SKILL.md has no final documentation Ticket convention.
    • ADR 0006 deliberately permits parallel Tickets merging into a Spec branch. src/spec_run/ticket_board.rs:51 schedules by readiness, blockers and parallel capacity, without shared-file coordination. src/spec_run.rs:1273 already tests that a Ticket blocked by two siblings waits for both; a final documentation Ticket could use existing dependency scheduling.
    • Current measurements confirm concentrated long lines: lines over 500 characters contain 48.1% of site/index.html bytes, 59.9% of site/how-it-works/index.html, 57.7% of site/architecture/index.html, 41.9% of docs/guide.md and 63.9% of GLOSSARY.md. No prose-format guard was found in site/tests.
    • A scratch-only git merge-file reproduction using site/architecture/index.html:498 conflicted when separate edits changed the first and fourth sentences of its current single-line paragraph. With sentence-per-line formatting, the same edits merged cleanly. Adjacent-sentence edits still conflicted after reflow. Reflow reduces a subset of conflicts; it cannot promise conflict-free sentence edits.
    • Resolve merge conflicts in generated files by regenerating them #1523 is closed and its implementation is present: skills/thirdshift-resolving-merge-conflicts/SKILL.md already requires resolving sources first and regenerating generated output. It does not eliminate conflicts in hand-written sources. The manual generator preserves ordinary Markdown sentence newlines in its HTML output.
    • Current site tests couple documentation to behavior, for example the emitted Experiment format in site/tests/pages.test.cjs. Deferring all documentation needs a plan that preserves required checks on intermediate Ticket PRs.

    Recommendation

    Keep this issue open for a Day shift decision. Separate prose formatting from Spec documentation ownership rather than treating them as one automatic fix. Prefer retaining per-Ticket documentation updates while evaluating a bounded formatting change first. A final documentation Ticket remains a viable alternative, but requires an explicit exception to the current same-PR rule for Ticket PRs and a strategy for intermediate documentation checks. Neither approach addresses every code conflict or collisions between independent Specs. Keep validation-cost policy in existing issue #1522; do not reopen the completed generated-file work in #1523.

    Validation: npm run docs:check --prefix site passed; node --test site/tests/docs.test.cjs passed all 7 tests after installing locked site dependencies. scripts/affected-tests main reported no changed files and no affected tests. Historical Repair counts and timings are supplied Trusted-account evidence, not independently reproduced in this worktree.

    Questionnaire

    For the Day shift deciding #1524:

    The repository confirms shared prose lines can cause otherwise independent edits to conflict. Sentence-per-line formatting helps separated edits, but adjacent edits can still conflict. Generated-file regeneration is already implemented by #1523.

    1. Which documentation guarantee should govern Spec Tickets: each Ticket PR must include its documentation, or only the final Spec PR must contain all documentation? I recommend retaining the current per-Ticket guarantee initially. Choosing the final Spec PR would authorize an explicit AGENTS.md exception and determine how intermediate documentation checks remain valid.
    2. Approve separating the work into two independently scoped items: A, a prose-formatting Ticket covering the three hand-written pages, docs/guide.md and GLOSSARY.md, with a scoped guard, regenerated manual, merge examples and rendering checks; B, a separate documentation-ownership policy Ticket, held for a decision, defining any final documentation Ticket, its native blockers and intermediate validation rules? A need not depend on B; Decide how much of the Rust suite a local run selects on 4-core hosts #1522 remains the separate validation-cost decision.
    3. If approving A, should formatting require one sentence per line, or merely a maximum prose-line length, and which code, table, URL and markup cases are exempt? These rules differ, and a 500-character ceiling alone does not enforce sentence-per-line formatting. Who will coordinate landing the broad reflow with active branches to contain its one-time merge cost?
  5. added
    ready-for-human
    and removed
    in-progress
    on Nov 10, 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

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions