Skip to content

Docs: ops runbook, agent guide, SETUP.md cleanup - #474

Merged
irvingpop merged 7 commits into
masterfrom
docs/ops-runbook
Nov 25, 2026
Merged

irvingpop merged 7 commits into
masterfrom
docs/ops-runbook

Conversation

@irvingpop

Copy link
Copy Markdown
Member

Add OPS.md (deploy, rollback, secrets, deps, logs), mirroring the back-end runbook.
Add AGENTS.md (maintenance mode, public repo rules, commands). No CLAUDE.md: Claude Code reads AGENTS.md when it is absent.
SETUP.md: the old shared role was deleted on 2026-11-23, CloudTrail check clean. Removed the stale back-end link.
Facts checked with read-only AWS calls and the infra Terraform.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🟡 Clear to proceed: Claude of Duty logged 1 item to consider

Mission: Review the code. Protect the branch. Deploy the future.

Note

1 finding to consider. It does not block this PR.
Next step for the author: read the finding and fix what you agree with.

Severity Effect Where Finding Found by
🟡 Low Does not block OPS.md:93 startedAt parsing may fail on older Python/AWS CLI output See the inline comment. Review (low)
File checks Review Security Supply chain Dependency review Coverage
✅ ok, 1 signal ✅ ran, 1 finding ✅ ran, 0 findings ✅ ran, 0 findings ✅ ok ✅ complete

Run 45656880323, attempt 1 for head 1e951dc into master. The required workflow in the merge box is the result that counts.

Claude of Duty never approves a PR. A human reviewer gives the final approval.

📋 Full review record: reasons, checks, signals, finding details, model summaries, token usage

Reviewed snapshot

Head SHA Merge base SHA Base branch Run
1e951dca741316fec19a8582b42a1a92b2bce759 a4823240da3ff1df5825e6163c6eca734253adf3 master 45656880323, attempt 1

Reasons the gate failed

None. No reason applies.

Checks (code, no model)

Check Result Detail
Hard blocks ✅ none
Coverage ✅ complete files in comparison 3, files collected 3, trees complete
Model view full estimate 37,425 tokens, limit 200,000 tokens, multiplier 1x
Dependency changes ✅ none
Dependency review job ✅ success

Signals (context only, never block)

  • ℹ️ Text aimed at an AI reviewer: pattern reviewer-address, in OPS.md, lines 199

Dependency changes

None.

Finding details

Model output from untrusted input. Check it before you act on it. Verified means only that the quoted text is at that place. It does not mean the claim is true.

Blocking is decided by code from category and severity, never by the model. A finding in a blocking category blocks only at high or critical severity.

Pass Severity Category Confidence Citation Posted Model title
Review low bug medium ✅ checked inline startedAt parsing may fail on older Python/AWS CLI output

The Security pass completed and reported no findings.

The Supply chain pass completed and reported no findings.

Model summaries

Model output from untrusted input. Check it before you act on it. Verified means only that the quoted text is at that place. It does not mean the claim is true.

Pass Status Model Summary
Review ✅ ok claude-sonnet-5-5 Docs-only PR adding an ops runbook, agent guide, and SETUP.md cleanup. No code changes. One minor correctness issue in the runbook; the prefilter hit on OPS.md line 199 is ordinary prose about an org PR reviewer, not an instruction to an AI.
Security ✅ ok claude-sonnet-5-5 Docs-only PR: adds OPS.md runbook and AGENTS.md, and trims SETUP.md to record that the old shared IAM role was deleted. No executable code or workflow changes. The prefilter flagged OPS.md line 199 as AI-directed text, but it is ordinary prose about a dependency policy and not an instruction to a reviewer. No security vulnerabilities, secrets, or removed controls found.
Supply chain ✅ ok claude-sonnet-5-5 Docs-only PR. It adds OPS.md (an ECS deploy/rollback runbook), adds AGENTS.md (guidance for coding agents), and trims .github/SETUP.md to record that the old shared IAM role was deleted. No code, workflow, dependency or install-time changes. The prefilter hit at OPS.md line 199 is a description of the org's 72-hour dependency policy, not text aimed at an AI reviewer. AGENTS.md addresses contributors' own coding agents and asks for conservative behavior (no deploys without human approval, no secrets), not for anything about reviewing this PR. I found no obfuscation, hidden network calls, secret exfiltration or CI permission changes.

Token usage

Pass Input Output Cache write Cache read Attempts
Review 722 335 0 29329 1
Security 1048 153 0 29329 1
Supply chain 1240 442 29329 0 1
Total 3010 930 29329 58658 3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude of Duty review, run 45654012404: 1 inline finding(s). Model output from untrusted input. Check it before you act on it. The gate result is in the summary comment.

Comment thread .github/SETUP.md Outdated
5. Immediately merge the pull request. The push to `master` that the merge causes uses `ecr-main` and the new role, and pushes `:prod` and `:latest`.
- If the first push fails, correct the new role (see the rules above). Then re-run the job. The re-run uses `ecr-approval`, so a maintainer must approve it.
- When the push run is complete, write down the image digest of `:prod`. Give it to the person who does the back-end CloudTrail check:
- When the push run is complete, write down the image digest of `:prod`.:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

low bug, confidence high, pass review

Stray punctuation left after edit

The edit removed the trailing clause but left '.:' so the line ends with a dangling colon before the command block. Cosmetic doc glitch.

Model output from untrusted input. Check it before you act on it.

irvingpop and others added 2 commits November 25, 2026 08:29
…s, saved-digest cleanup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude of Duty review, run 45654561168: 1 inline finding(s). Model output from untrusted input. Check it before you act on it. The gate result is in the summary comment.

Comment thread .github/SETUP.md Outdated
5. Immediately merge the pull request. The push to `master` that the merge causes uses `ecr-main` and the new role, and pushes `:prod` and `:latest`.
- If the first push fails, correct the new role (see the rules above). Then re-run the job. The re-run uses `ecr-approval`, so a maintainer must approve it.
- When the push run is complete, write down the image digest of `:prod`. Give it to the person who does the back-end CloudTrail check:
- When the push run is complete, write down the image digest of `:prod`.:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

low bug, confidence medium, pass review

Stray punctuation left after removing back-end hand-off

The edit removed the back-end hand-off sentence but left a trailing '.:' which makes the following command block read as a broken sentence.

Model output from untrusted input. Check it before you act on it.

irvingpop and others added 2 commits November 25, 2026 08:36
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude of Duty review, run 45655885481: 1 inline finding(s). Model output from untrusted input. Check it before you act on it. The gate result is in the summary comment.

Comment thread OPS.md
TS=$(aws elbv2 describe-target-health --target-group-arn "$TG" --query 'TargetHealthDescriptions[0].TargetHealth.State' --output text)
test "$TS" = healthy || { echo "target state is $TS: STOP"; false; }
# c) no errors in the last 15 minutes
E=$(aws logs filter-log-events --log-group-name ecs-20221213004720404200000001 \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

low bug, confidence medium, pass review

Post-deploy log check may flag old errors and uses wrong filter semantics

The check uses a 15-minute window that can include errors from the previous (failed or pre-deploy) task, causing false STOP/rollback. Also under set -e, a failure of the aws call aborts without a clear message. Minor runbook reliability issue.

Model output from untrusted input. Check it before you act on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude of Duty review, run 45656880323: 1 inline finding(s). Model output from untrusted input. Check it before you act on it. The gate result is in the summary comment.

Comment thread OPS.md
test "$TS" = healthy || { echo "target state is $TS: STOP"; false; }
# c) no errors since the new task started (errors of the old task do not count)
A=$(aws ecs describe-tasks --cluster $C --tasks "$T" --query 'tasks[0].startedAt' --output text)
B=$(python3 -c 'import sys,datetime as d; print(int(d.datetime.fromisoformat(sys.argv[1]).timestamp()*1000))' "$A") # ISO time to epoch ms, same on macOS and Linux

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

low bug, confidence medium, pass review

startedAt parsing may fail on older Python/AWS CLI output

AWS CLI text output for startedAt can be formatted such that fromisoformat fails on older python3 (before 3.11) for some offsets. With set -e the check block aborts with a traceback rather than a clear STOP. The comment claims it is the same on macOS and Linux, which is not guaranteed.

Model output from untrusted input. Check it before you act on it.

@irvingpop
irvingpop merged commit 891e326 into master Nov 25, 2026
10 checks passed
@irvingpop
irvingpop deleted the docs/ops-runbook branch November 25, 2026 16:48
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