GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(fleet-paperwork): create readback compares body, state and labels (#6901) by dezren39 · Pull Request #7799 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 8, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

fleet-paperwork create's readback verified only the created issue's title and number. The README promises the comparison covers (title, body, state), so a create whose body was dropped or mangled — or whose labels were never applied — reported created+verified and every downstream consumer treated it as complete.

This makes the code match the documented contract, and adds the labels that were sent.

Changes

  • infra/fleet-paperwork/fleet_paperwork.py — cmd_create's readback now also compares:
    • body against exactly what was sent (length + shape in the diagnostic),
    • state against open (a freshly created issue),
    • labels — every requested --label must appear in the readback; extra labels GitHub added are tolerated.
  • infra/fleet-paperwork/README.md — the verification bullet now names the label comparison.
  • infra/fleet-paperwork/tests/test_fleet_paperwork.py — new TestCreateReadback covering the failure modes and the passing cases.

Verification

cd infra/fleet-paperwork && python3 -m unittest discover -s tests
Ran 36 tests — OK

Oracle check: with the previous fleet_paperwork.py restored, the four failure-mode tests fail —

FAIL: test_closed_state_fails
FAIL: test_dropped_body_fails
FAIL: test_mangled_body_fails
FAIL: test_missing_labels_fail

— and all 36 pass with the fix, so the tests detect the regression rather than merely passing.

Acceptance criteria

  • Create readback compares at least body and state (and labels when labels were requested) against what was sent, dying on mismatch like the title check does.
  • A unit test with a readback payload whose body differs proves the failure; a matching payload passes.
  • Existing fleet-paperwork tests still pass.

Closes #6901


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
repo-worker-code-k
fix(fleet-paperwork): create readback compares body, state and labels (…
91142b0
…#6901)

cmd_create's readback verified only title and number, so a create whose
body was dropped or mangled, or whose labels were not applied, reported
'created+verified'. The README already promised the comparison covers
(title, body, state); this makes the code match it and adds the labels
that were sent.

Tests cover the four failure modes (dropped body, mangled body, closed
state, missing labels) plus the passing and extra-label cases; the four
failure-mode tests fail against the previous implementation.
@dezren39
dezren39 requested a review from a team as a code owner November 8, 2026 19:56
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T19:19:08.496275Z
We couldn’t complete this review. Comment @codex review to try again.
e48c43c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 8, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 91142b0b7f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread infra/fleet-paperwork/tests/test_fleet_paperwork.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 8, 2026
fleet-paperwork: create readback verifies only title+number, not the body/state/labels the README promises #6901
Closed
3 tasks
repo-worker-code-k
test(fleet-paperwork): isolate create readback ledger
5b0d093
@dezren39
dezren39 requested a balanced review from Copilot November 9, 2026 23:52
Copilot AI reviewed Nov 10, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

3 open issues
  • High severity This error-path can raise TypeError instead of calling die(): len(body) fails if body is… · New
  • Medium severity Sorting have can crash if any label entry produces None (e.g., label dict missing a name) or… · New
  • Medium severity The fake_http stub signature doesn’t match the real fp.http() signature (which uses body and… · New
What changed in this PR

Aligns fleet-paperwork create’s post-create readback verification with the documented contract by validating more than just issue title/number, preventing false “created+verified” results when body/state/labels are incorrect.

Changes:

  • Extend create readback verification to compare issue body, state, and requested labels.
  • Update README to document label verification on create.
  • Add unit tests to cover pass/fail scenarios for body/state/labels readback validation.
File Description
infra/​fleet-paperwork/​fleet_paperwork.py Strengthens create readback verification to include body/state/labels mismatches.
infra/​fleet-paperwork/​README.md Documents label comparison as part of create verification.
infra/​fleet-paperwork/​tests/​test_fleet_paperwork.py Adds tests ensuring readback validation fails on dropped/mangled body, wrong state, or missing labels.

Review effort: Lite

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread infra/fleet-paperwork/fleet_paperwork.py Outdated
Comment on lines +473 to +478
if got.get("body") != body:
die(
f"readback mismatch for {args.repo}#{number}: body sent "
f"{len(body)} chars, read back {len(got.get('body') or '')} chars "
f"(body={_shape_name(got.get('body'))})"
)

@dezren39 dezren39 Nov 10, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed in e48c43c (task 11300, lane code-m shepherd): shape-safe readback diagnostics — lengths computed only for strings (n/a otherwise), labels matched as a set of string names with malformed entries dying as a readback mismatch, fake_http stub aligned with fp.http() (body/expect). New tests: test_non_string_body_readback_fails_cleanly, test_malformed_label_entry_fails_cleanly. Full suite: 38 tests OK on the laptop.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread infra/fleet-paperwork/fleet_paperwork.py Outdated
Comment on lines +486 to +490
have = sorted(
lbl.get("name") if isinstance(lbl, dict) else lbl
for lbl in (got.get("labels") or [])
)
missing = [name for name in want if name not in have]

@dezren39 dezren39 Nov 10, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed in e48c43c (task 11300, lane code-m shepherd): shape-safe readback diagnostics — lengths computed only for strings (n/a otherwise), labels matched as a set of string names with malformed entries dying as a readback mismatch, fake_http stub aligned with fp.http() (body/expect). New tests: test_non_string_body_readback_fails_cleanly, test_malformed_label_entry_fails_cleanly. Full suite: 38 tests OK on the laptop.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread infra/fleet-paperwork/tests/test_fleet_paperwork.py Outdated
Comment on lines +196 to +200
def fake_http(method, path, token, payload=None):
paths.append((method, path))
if method == "POST":
return 200, created
return 200, readback

@dezren39 dezren39 Nov 10, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed in e48c43c (task 11300, lane code-m shepherd): shape-safe readback diagnostics — lengths computed only for strings (n/a otherwise), labels matched as a set of string names with malformed entries dying as a readback mismatch, fake_http stub aligned with fp.http() (body/expect). New tests: test_non_string_body_readback_fails_cleanly, test_malformed_label_entry_fails_cleanly. Full suite: 38 tests OK on the laptop.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
repo-worker-code-k
fix(fleet-paperwork): shape-safe create readback diagnostics (Copilot…
e48c43c
… review)

Body/label readback comparisons no longer raise TypeError on non-string bodies or malformed label entries: lengths are computed defensively, labels are matched as a set of string names, and malformed entries die with a readback mismatch. fake_http stub aligned with fp.http() signature (body/expect). Adds tests for non-string body readback and malformed label entries.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit d8e6354 into main Nov 10, 2026
3 of 8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/11300-6901-paperwork-create-readback branch November 10, 2026 19:19
@dezren39 dezren39 mentioned this pull request Nov 10, 2026
fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187
Closed
Copilot stopped reviewing on behalf of dezren39 due to an error November 10, 2026 23:21
The job was not acquired by a runner even after multiple attempts.
@developing-today developing-today Bot mentioned this pull request Nov 17, 2026
fleet_paperwork.py comment subcommand fails HTTP 422 (No commit found for SHA: main); api route works #7903
Closed
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 25, 2026
This was referenced Nov 25, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
docs: AUDIT-7 batch 3 partial ledger (226 PRs, 4 invalid IDs) #14847
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

fleet-paperwork: create readback verifies only title+number, not the body/state/labels the README promises

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.