Repository navigation
feat(skills): add ce-log-triage and rca-writeup incident response skills - #1
Merged
Merged
Conversation
Introduce two domain-specific skills that compose as a pair for infrastructure incident response: - ce-log-triage: Root-cause Teradata CE failures from CloudWatch/syslog by walking state machines and matching failure signatures across AWS account boundaries. Ships with parse_cloudwatch.py (stdlib-only JSON parser) and triage_syslog.sh (one-command syslog sweep). - rca-writeup: Converts a completed log investigation into a structured RCA document using a canonical template with worked examples. Designed as the natural second step after ce-log-triage. Integration: - Add Operate phase (after Ship) to README table, project tree, and CLAUDE.md - Add skill discovery entries to copilot-instructions.md - Exempt both skills from standard section checks in validate-skills.js (they use domain-specific architecture-reference + state-machine + failure-signature-catalog structures instead of the generic template)
tisan-das
added a commit
that referenced
this pull request
Aug 9, 2026
Merges the CE knowledge base, log-forensics triage, and RCA writeup into a single skill with a shared corpus. Replaces the two standalone CE skills, whose content now lives in triage/ and rca/. Adoption fixes applied to the imported bundle: - Description rewritten to 1007/1024 chars with a real "Use when" trigger. The bundle's original wording ranked 4x weaker on RCA prompts than the skill it replaced; verified against the repo's own ranker, ce-ops now ranks #1 on 10/10 representative prompts and catalog rank-1 rose 86%->88%. - parse_cloudwatch.py crashed with UnicodeEncodeError on its default view under cp1252/LC_ALL=C. Emits ASCII arrows and guards stdout/stderr. - rca/RCA-WRITEUP.md merges the SOP/Jira artifacts with the former rca-writeup body, restoring the shareable-document template, house style, build procedure, mistakes list, and both worked examples. - CE-DEBUG-SOP.md no longer instructs agents to invoke the removed skills. - Provenance corrected: the bundled scripts are a rewrite, not a copy. - report-builder and the per-service SPEC/STATE docs marked not-bundled. Privacy work, all before this content ever entered a commit: - Scrubbed from the knowledge base, which documents real infrastructure: 13 AWS account IDs, 4 internal domains (35 hostnames), 8 site IDs, 11 CE config IDs, the customer org name and its ERP number, an operator ID, an IAM role principal ID, VPC/subnet/endpoint IDs, a DNS verification token and value, an NLB hash, and 2 real cluster UUIDs. Placeholders map 1:1 to real values so cross-account relationships survive, and ID prefixes are kept (TDICAM=AWS site, TDICAZ/ESAZ=Azure; CEAM/CEAZ) because the corpus documents them as lookup keys. KB 8.1 and triage/REFERENCE.md A.2 carry the convention and state that triage is identical across environments - only the account and domain substitute. - Removed the username 'tisan' in 13 places: a free-text CE display name and an absolute /home path (neither ID-shaped, so pattern scans missed both), plus 11 fork-URL rewrites in README, docs/, plugin.json and copilot-instructions.md, which now point back at addyosmani/agent-skills. - Worked examples, eval fixtures, and format-teaching lines use synthetic but valid-shaped IDs (CEAMEXAMPLE10001X at 17 chars, TDICAM00000EX01 at 15, RFC2606 example.com, AWS-doc account IDs) rather than placeholders. Placeholders there had broken the parser's --ce filter, turned trigger prompts into strings no user would type, and left a "17-char ID" claim sitting next to an 11-character example. - Diagrams: placeholders are bracket-free inside mermaid labels, since a browser parses <CORP_DOMAIN> as an unknown HTML element and drops the text; fixed-width ASCII boxes use short account tokens with a legend, because the long placeholders were twice the width of the IDs they replaced and had destroyed the box alignment. Not scrubbed, and deliberately so: Jira keys, service/repo names, log group and table names, and IAM roles are operationally load-bearing - the registry dedup step and the runbook stop working without them. This reduces blast radius; it does not make the repo publishable. README states that the install commands deliver 24 skills and that ce-ops is excluded from the public pack. skills/ce-ops is license: internal. CLAUDE.md treats any push as publication. Corrects the GNS escalation target in triage/REFERENCE.md. The A.2 table and the box diagram both named the privatelink-monitor account as the Network Service owner; TRIAGE.md already flagged this as wrong but the fix had only been applied to TROUBLESHOOTING.md. REFERENCE.md is the card someone opens mid-incident and the cell is headed "Escalation target", so the stale value routed real tickets to the wrong account. GNS is now attributed to <GNS_DEPLOY_ACCT>, the privatelink-monitor hop has its own row marked "do not escalate here", and a correction note records the change. TRIAGE.md and the SKILL.md provenance/errata notes updated to match. Grounds the ce-ops behavioral evals in what Tier-3 actually provides. The runner injects only SKILL.md as a system prompt and materializes only files[] into a throwaway workspace, so a router skill like ce-ops has no access to its own scripts/, triage/, rca/ or references/ during a behavioral run. One expectation required executing the bundled parser and was therefore impossible to satisfy; another graded against a heading defined in rca/RCA-WRITEUP.md, which the agent never sees. Both reworded to test the behaviour rather than the artifact, and a _note in the case file records the constraint so future expectations do not reintroduce it.
tisan-das
added a commit
that referenced
this pull request
Aug 10, 2026
Self-review of the previous commit found one contradiction I introduced and three stale claims I failed to flag. Contradiction (introduced by 391db96) - KB 5.6 #4 called omsService.go / orchestrationService.go "dead code" while H12, edited in the same commit, keeps DELETE .../compute-engines/{id} live and cites omsService.go:17-230. Both cannot hold. The source pass addressed registration only and said nothing about deregistration, so "dead code" overreached exactly the way the H12 split was meant to avoid. Reworded: the files remain, their registration paths are no longer reached, deregistration is unaffected, and the row explicitly must not be read as retiring the file. Stale claims missed by 391db96 - Provisioning 7 (dedicated), 8 (pooled) and 11 all state that RUNNING is gated on OMS. Six places in the KB say the opposite, and KB 735 says "no OMS gate any more" -- the corpus recorded GPSC-3735 in the KB and never propagated it to the provisioning doc. Each site now carries an [as-deployed] caveat pointing at KB 5.6 #1-#2. The dedicated one is called out separately because KB says that path never had a gate, so a dedicated CE stuck at Starting is not explained by one. Diagrams left intact as history rather than rewritten, since the dedicated case cannot be resolved without the tree. - KB 830 cited Provisioning 7 for phase-7 registration; the authoritative line with the ENABLE_OMS / SKIP_PRIVATELINK / PUBLIC conditions is in 9. Now cites both. Checked and found correct, no change - run_oms_registration and runner.sh:27-51 were already in Lifecycle 3.1, matching the source pass's runner.sh:27-50 -- independent corroboration of the dedicated container chain (create_targets -> wait_for_db -> run_oms_registration). - clusterService.go:834-875 vs the pass's 896-931: adjacent ranges for SCOrch component creation, ordinary line drift, left alone. - H26's src/oms/config.sh:38-130 vs the pass's 38-77: same start, range drift only.
tisan-das
added a commit
that referenced
this pull request
Aug 10, 2026
…ng a fix Third review pass. The previous two commits treated "GPSC-3735 removed the OMS gate" as settled. It is not, and reading further would have changed how the last commit was worded. The contested claim - KB 5.6 #1-#2 and the 9 defect register say the pooled OMS hang is FIXED: GPSC-3811 (6c920bf3) escalates FAILED/TIMEOUT to FAILED_PROVISIONING, and GPSC-3735 (e0a0cb80) removed the infra-PUT gate at poolingService.go:268-285. - Lifecycle defect 16 is STILL OPEN and cites a different gate, clusterService.go:2375-2410, which accepts only "REGISTERED" while the cron OMS switch has no FAILED/TIMEOUT case, wedging the CE at CONFIGURING until an operator clears it. Part 7 recommendation 14 proposes the fix, confirming it is outstanding. Two gates, one recorded as removed and one still open, and nothing in the corpus said so. The 8.3 triage tree routes through PSTUCK ("console STUCK at Starting - waits on OMS") plus three QGB children with no marker at all -- the highest-traffic artifact in the bundle describing behaviour half the corpus calls fixed. Deliberately not resolved. Rewriting the tree would pick a side in a contradiction I cannot settle without the source tree, which is the same overreach 63aed77 had to repair. Each site now states both positions and gives a discriminator. Changes - 8.3: caveat naming both claims, marking PSTUCK and its QGB children reachable until proven otherwise, and telling the triager how to tell them apart from evidence -- FAILED_PROVISIONING means the fixed path, CONFIGURING/Starting with oms_status FAILED or TIMEOUT means lifecycle defect 16. - 8.2 log-line table: a current "gating RUNNING transition" line points at the clusterService.go path, not the removed poolingService.go one. - Lifecycle 3.2: upgraded from "unverified, might be stale" to "these are two different gates", citing open lifecycle defect 16 as evidence the second is live. - Provisioning 8: softened. The previous wording implied GPSC-3811 closed the hang; it now points at the second gate as well. Namespace violation, mine SKILL.md forbids writing "defect 16" unqualified because registry addyosmani#16 is the Event 13912 PDE reconcile, an unrelated failure. The 8.3 caveat did exactly that, inside a triage tree, where the wrong jump costs a triager a vconfig hardstop investigation. Qualified, along with one pre-existing instance in Part 7. Left alone: "defect 17" at Part 6 row 27, an intra-table reference where the surrounding table establishes the namespace. Verified this pass: 5.6 #1 is GPSC-3811 and #2 is GPSC-3735 as cited; KB 1965 is in section 5 and 2518 in 8.3 as my caveats claim; the section 11 paragraph still reads correctly after the earlier edit; run_oms_registration at runner.sh:27-51 independently corroborates the source pass's runner.sh:27-50.
tisan-das
pushed a commit
that referenced
this pull request
Aug 29, 2026
…lity requirements (addyosmani#431) Implements the v1 scope agreed in addyosmani#431: when one requirement bundles several independently testable capabilities, spec-driven-development now runs a bounded front-step before Specify — detect multi-capability scope, propose a capability map (stable module ids, one-way dependency direction, build order), gate it on human approval, then recurse the gated workflow per module in dependency order. Kept deliberately small per the maintainer's scoping: - detection + module map + stable identity only; no per-module artifact tree — module specs reuse the root-level SPEC-<id>.md naming so the layout follows the delta-spec direction in addyosmani#383 rather than leading it - the simple path is preserved: single-capability requests skip Phase 0 entirely, and the section says so first - non-goals held: no PM framework, no forced hierarchy on small features Also: - description gains the decomposition vocabulary so realistic asks route here (both new positive triggers rank #1) - /spec command wrappers (.claude, commands/, .gemini) gain one matching step, kept in parity - eval case: +2 positive triggers, +1 owner-negative guarding the planning-and-task-breakdown boundary, +1 execution eval backed by a new multi-capability fixture (portal-brief.md) Verification: validate-skills 24/24, validate-commands 8/8, run-evals 127 checks 0 errors 0 warnings, rank-1 86% (67/78) over floor 80, behavioral dry-run resolves both spec evals.
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.
Introduce two domain-specific skills that compose as a pair for infrastructure incident response:
ce-log-triageRoot-cause Teradata CE failures from CloudWatch/syslog by walking state machines and matching failure signatures across AWS account boundaries. Ships with two helpers:
parse_cloudwatch.py— stdlib-only offline CloudWatch JSON parsertriage_syslog.sh— one-command syslog sweep with windowed context viewerrca-writeupConverts a completed log investigation into a structured RCA document using a canonical template with worked examples. Designed as the natural second step after
ce-log-triage.Integration changes
copilot-instructions.mdvalidate-skills.js