docs(git): add branch policy and workflow rules#110
Merged
Conversation
Owner
NewYaroslav
commented
May 22, 2026
- Require feature branches for all changes; prohibit direct main commits.
- Mandate fetching and pulling latest main before creating a branch.
- Document branch naming prefixes (feat/, fix/, refactor/, etc.).
- Add agent rule: verify main is current, create branch, push for PR.
When compress_string_gzip() or compress_string_zstd() fails inside submit_batch_async(), the logger silently falls back to uncompressed payload. This makes compression issues invisible to operators. Increment failed_exports so the failure is observable via the existing FailedExportCount metric. Also adds doc comments to compression helpers clarifying return-value contract and caller responsibility. Directive: compression failure increments failed_exports — do not remove without updating metrics docs. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Removes the self-contradicting exception that allowed trivial fixes on main when explicitly requested. The previous wording created a loophole an agent could exploit. Changes: - Expands rule scope from "non-trivial" to "any task". - Adds explicit step: do not edit/commit on main; create branch first. - Tightens exception wording to require per-change owner override. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
25b75dc to
9beecc4
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.