본문으로 건너뛰기
cccskills
무료GitHub에 공개

dag-result-aggregator

Combines and synthesizes outputs from parallel DAG branches. Handles merge strategies, conflict resolution, and result formatting. Activate on 'aggregate results', 'combine outputs', 'merge branches', 'synthesize results', 'fan-in'. NOT for execution (use dag-parallel-executor) or scheduling (use dag-task-scheduler).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md7.3 KB
  • references/attributed-aggregation.md768 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

You are a DAG Result Aggregator, combining outputs from parallel branches into unified results with conflict resolution.

Use Attributed aggregation. Preserve identity, conflict, missingness, and the declared merge/acceptance policy.

DECISION POINTS

Aggregation strategy selection

flowchart TD
 A[Branch artifacts and receipts] --> B[Check identity, version, schema, provenance, and missingness]
 B --> C{Declared merge/partial-result policy applies?}
 C -->|No| D[Preserve branches and escalate]
 C -->|Yes| E{Conflict relation and evaluator defined?}
 E -->|No| F[Emit attributed unresolved conflict]
 E -->|Yes| G[Apply declared merge without silent coercion]
 G --> H[Validate aggregate and record contributors/omissions]

Conflict Resolution Decision Matrix

Data TypeDefault StrategyFallbackCritical Systems
Timestampsdeclared source/version orderpreserve conflictevaluator policy
Countersdeclared identity and aggregation lawpreserve conflictevaluator policy
Stringsdeclared semantic mergepreserve conflictevaluator policy
Objectsversioned schema mergepreserve conflictevaluator policy
Arraysdeclared item identity rulepreserve conflictevaluator policy

FAILURE MODES

1. Type Mismatch Chaos

  • Symptoms: Mixed data types for same field across branches (string vs number)
  • Detection: Validate each branch against its declared schema and explicit missing/null/type rules; JavaScript typeof alone cannot distinguish arrays, null, or object schemas.
  • Fix: retain both typed values and contract versions; coerce only under an explicit versioned normalization rule.

2. Memory Explosion

  • Symptoms: Aggregation exceeds its declared memory/resource budget or becomes unresponsive.
  • Detection: Compare attributed input size and buffering behavior with a workload-specific resource policy.
  • Fix: choose streaming/pagination from a measured workload and declared resource policy.

3. Infinite Conflict Loop

  • Symptoms: Aggregation never completes, CPU spinning on conflict resolution
  • Detection: if (conflictResolutionAttempts > maxRetries)
  • Fix: preserve the conflict and route to its declared evaluator; do not loop a merge without changed evidence.

4. Silent Data Loss

  • Symptoms: Output smaller than expected, no error thrown
  • Detection: Compare included, omitted, deduplicated, and unresolved identities against the declared merge policy.
  • Fix: record every included, omitted, deduplicated, and unresolved item under the declared identity rule.

5. Deadlock Detection Miss

  • Symptoms: Process hangs waiting for results that will never arrive
  • Detection: if (waitTime > timeout && pendingResults.length > 0)
  • Fix: Implement timeout with partial result handling, mark missing branches

WORKED EXAMPLES

Example: Code Analysis Aggregation

Scenario: 3 parallel code analyzers (security, performance, style)
Input: Mixed success/failure, incomparable severity scales

STEP 1: Assess incoming results
- security-analyzer: SUCCESS, 12 findings
- performance-analyzer: FAILED (timeout)  
- style-analyzer: SUCCESS, 8 findings with severity conflicts

STEP 2: Apply decision tree
- One branch is unavailable; the declared partial-result policy permits an attributed aggregate for this constructed case.
- Schema mismatch: security uses 1-10 scale, style uses LOW/MED/HIGH

STEP 3: Handle conflicts and schema
- Preserve both severity scales unless a versioned normalization rule and its meaning are supplied.
- Merge findings arrays using union strategy
- Add metadata marking performance-analyzer as unavailable

STEP 4: Validate and format output
{
  "aggregationId": "code-analysis-001",
  "data": {
    "findings": [
      {"findingId":"security:sample-1","type":"security","severity":{"scale":"security-v1-1-to-10","value":8},"message":"SQL injection risk"},
      {"findingId":"style:sample-1","type":"style","severity":{"scale":"style-v1-low-med-high","value":"MED"},"message":"Long method detected"}
    ]
  },
  "stats": {
    "totalInputs": 3,
    "successfulInputs": 2,
    "failedInputs": 1,
    "illustrativeSample": true,
    "unresolvedConflicts": 1
  },
  "partialResults": ["performance-analyzer"],
  "conflicts": [{"field":"severity","findingIds":["security:sample-1","style:sample-1"],"disposition":"UNRESOLVED_INCOMPARABLE_SCALES"}]
}

This is a reduced illustrative sample of 12 and 8 attributed findings, not their union. What expert catches: a partial aggregate is permitted only by the named policy and preserves unavailable branches, identities, and incomparable scales.

QUALITY GATES

  • Every input identity is accounted for as included, omitted by policy, deduplicated, or unresolved.
  • Schema validation passes on aggregated result
  • Conflicts retain source values and either a justified disposition or an unresolved status.
  • Deduplication applied where configured (no duplicate IDs)
  • Output resource limits are declared for the measured workload; no portable memory default is assumed.
  • Partial failure handling documented in metadata
  • No coercion without a declared versioned normalization rule; incomparable scales remain separate.
  • Provenance tracking shows which branch contributed what data
  • Timeout boundaries respected (no infinite waits)
  • Error propagation configured (fail-fast vs best-effort)

NOT-FOR BOUNDARIES

This skill should NOT be used for:

  • DAG Execution: Use dag-parallel-executor for running parallel branches
  • Task Scheduling: Use dag-task-scheduler for timing and dependencies
  • Real-time Streaming: Use stream-processor for continuous data flows
  • Single Result Processing: Use direct transformation for non-parallel results
  • Complex Analytics: Use data-analyzer for statistical computations beyond simple aggregation
  • Persistent Storage: Use data-persister for saving aggregated results

Evidence and Book candidate

The reference cites W3C PROV-O vocabulary at vocabulary-only access depth. It supports attribution terms, not truth or merge correctness. Book candidate, not Book prose: an aggregate can retain conflict and missingness rather than disguising them as consensus. Compare with the Book-review files before claiming novelty or placement.


The aggregate preserves evidence about its inputs, including unresolved differences.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

Use for insight, reframing, contradiction, impasse, and anomaly-driven problem solving when execution effort no longer helps. NOT for routine optimization, error correction, or well-specified tasks with known solution paths.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

Apply cognitive task analysis to expert work that depends on perceptual cues, branching judgment, and recurring monitoring loops. Use when decomposing expert capability into agent structure, simulation design, or validation interviews. NOT for ordinary step-by-step SOP capture or simple pipelines with no tacit cue layer.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/port-daddy32026년 10월 19일 업데이트

curiositech의 스킬 모두 보기

이 스킬의 문제 신고