-
Notifications
You must be signed in to change notification settings - Fork 0
feat: enforce main branch protection in pre-push hook #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Session Log — PR #104 Review & Integration Fix | ||
|
|
||
| **Timestamp:** 2026-03-10T16:50:00Z | ||
| **Topic:** Workflow Enforcement & Integration Tests | ||
|
|
||
| ## Summary | ||
|
|
||
| **Gimli** resolved 10 failing integration tests by implementing `ObjectId.GenerateNewId()` across 4 Create handlers. Established handler-owned ID generation pattern. | ||
|
|
||
| **Aragorn** addressed 5 PR #104 review comments: heading levels, gate count, path references, shell hardening, branch naming enforcement. | ||
|
|
||
| **Decision** codified: Handlers generate ObjectIds; repositories validate. Pattern documented for future handler development. | ||
|
|
||
| All work staged in `.squad/` directory. Tests passing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Orchestration Log — Aragorn | ||
|
|
||
| **Timestamp:** 2026-03-10T16:50:00Z | ||
| **Agent:** Aragorn (QA & CI/CD) | ||
| **Task:** Address PR #104 Review Comments | ||
|
|
||
| ## Work Completed | ||
|
|
||
| ### Objective | ||
| Addressed 5 PR #104 review comments from workflow enforcement ceremony. | ||
|
|
||
| ### Changes Applied | ||
| 1. **Heading Levels** — Corrected H1/H2 structure in narrative docs | ||
| 2. **Gate Count** — Updated gate documentation to reflect workflow stages | ||
| 3. **Path References** — Fixed relative/absolute path references in ceremony docs | ||
| 4. **Shell Read Hardening** — Added error checking to shell operations in pre-push hook | ||
| 5. **Branch Naming** — Enforced `squad/{issue}-{slug}` branch convention in documentation | ||
|
|
||
| ### Test Results | ||
| - ✅ Pre-push hook validates branch names correctly | ||
| - ✅ Gate documentation reflects current ceremony workflow | ||
| - ✅ Markdown formatting compliant with style guide | ||
|
|
||
| ### Impact | ||
| - ✅ PR #104 review comments resolved | ||
| - ✅ Workflow enforcement gates properly documented | ||
| - ✅ CI/CD and git hooks hardened for production use | ||
|
|
||
| ## Notes | ||
| All changes focused on ceremony documentation, workflow validation, and code safety. No production code modified. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Orchestration Log — Gimli | ||
|
|
||
| **Timestamp:** 2026-03-10T16:50:00Z | ||
| **Agent:** Gimli (Tester) | ||
| **Task:** Fix Create Handlers Integration Tests | ||
|
|
||
| ## Work Completed | ||
|
|
||
| ### Objective | ||
| Fixed 4 Create handlers to generate ObjectIds via `ObjectId.GenerateNewId()`. Resolved 10 failing integration tests. | ||
|
|
||
| ### Changes Applied | ||
| - **CreateIssueHandler.cs** — Generate ObjectId for new issue DTO | ||
| - **CreateCommentHandler.cs** — Generate ObjectId for new comment DTO | ||
| - **CreateCategoryHandler.cs** — Generate ObjectId for new category DTO | ||
| - **CreateStatusHandler.cs** — Generate ObjectId for new status DTO | ||
|
|
||
| ### Test Results | ||
| - **Before:** 10 integration tests failing (ObjectId.Empty validation errors) | ||
| - **After:** All 10 tests passing | ||
| - **Decision:** Codified in `.squad/decisions.md` — handlers own ID generation; repositories validate non-empty IDs | ||
|
|
||
| ### Impact | ||
| - ✅ Integration test suite green | ||
| - ✅ API Create endpoints now properly initialize entity IDs | ||
| - ✅ Pattern established for future Create handler development | ||
|
|
||
| ## Notes | ||
| See `.squad/decisions.md` → "Handlers Generate ObjectIds, Repositories Validate" for full context and rationale. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
PR description claims
.git/hooks/pre-pushwas updated, but this repo appears to keep the hook underscripts/hooks/pre-pushand install it into.git/hooks/viascripts/hooks/install-hooks.sh. Consider updating the PR description (or adding.git/hooks/pre-pushif you intend to track it) so the stated changed files match what’s actually included.