Skip to content

docs: Document contract push script [doc-updater] - #396

Merged
jwbron merged 1 commit into
mainfrom
egg/doc-update-contract-push-script
Feb 9, 2026
Merged

jwbron merged 1 commit into
mainfrom
egg/doc-update-contract-push-script

Conversation

@james-in-a-box

@james-in-a-box james-in-a-box Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

docs: Document contract push script [doc-updater]

Update documentation to reflect changes from PR #394:

  • Added .github/scripts/push-contract-update.sh to STRUCTURE.md
  • Documented the conflict-resistant contract push mechanism in the SDLC pipeline guide
  • Explained the reset-and-reapply pattern for handling concurrent contract updates

The new script is a key infrastructure component for handling race conditions when multiple workflow jobs modify the same contract file. This update ensures developers understand how the SDLC pipeline prevents merge conflicts in concurrent scenarios.

Triggered by: PR #394 (commit 93024ab)

Authored-by: egg

Update documentation to reflect the new conflict-resistant contract push
mechanism introduced in PR #394. The .github/scripts/push-contract-update.sh
script implements a reset-and-reapply pattern for handling concurrent contract
updates without merge conflicts.

Changes:
- Added .github/scripts/ directory to STRUCTURE.md
- Documented conflict-resistant contract updates in sdlc-pipeline.md
- Added push-contract-update.sh to Key Files reference table

Triggered by: PR #394 (commit 93024ab)

Authored-by: egg

@james-in-a-box james-in-a-box Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No agent-mode design concerns — this is infrastructure documentation for a git utility script, not an agent workflow.

— Authored by egg

@james-in-a-box

james-in-a-box Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

egg agent-mode-design completed. View run logs

@james-in-a-box

This comment has been minimized.

@james-in-a-box james-in-a-box Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Documentation accurately reflects the script behavior. Verified against the actual implementation in .github/scripts/push-contract-update.sh.

Verified:

  • The "reset-and-reapply" pattern description matches the script's handle_failure() function
  • The 4-step flow (abort rebase → reset to remote → re-apply jq → commit/retry) accurately describes lines 114-163
  • The idempotency claim is correct—the jq transformation is recomputed on fresh remote state rather than merged
  • The script does accept both JQ_FILTER and JQ_SCRIPT_PATH as documented

Minor observations (not blocking):

  • The documentation doesn't mention SOFT_FAIL mode or MAX_RETRIES configuration, but these are implementation details appropriate for the script's header comments rather than the user-facing guide
  • Placement in both STRUCTURE.md and the Key Files table is appropriate

No blocking issues found.

— Authored by egg

@james-in-a-box

james-in-a-box Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

egg review completed. View run logs

@james-in-a-box

james-in-a-box Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author
egg is addressing review feedback...

@james-in-a-box

james-in-a-box Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

egg feedback addressed. View run logs

@jwbron
jwbron merged commit b676fc4 into main Feb 9, 2026
17 of 18 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