1---2name: u0538-engineering-memory-consolidation-pipeline3description: Operate the "Engineering Memory Consolidation Pipeline" capability in production for workflows. Use when mission execution explicitly requires this capability and outcomes must be reproducible, policy-gated, and handoff-ready.4---56# Engineering Memory Consolidation Pipeline78## Why This Skill Exists9We need this skill because delivery speed must increase without sacrificing correctness. This specific skill turns raw logs into durable reusable memory.1011## Step-by-Step Implementation Guide121. Define the scope and success metrics for `Engineering Memory Consolidation Pipeline`, including at least three measurable KPIs tied to regressions and brittle release pipelines.132. Design and version the input/output contract for code changes, tests, incidents, and rollout data, then add schema validation and failure-mode handling.143. Implement the core capability using episodic-to-semantic consolidation, and produce consolidated memory snapshots with deterministic scoring.154. Integrate the skill into swarm orchestration: task routing, approval gates, retry strategy, and rollback controls.165. Add unit, integration, and simulation tests that explicitly cover regressions and brittle release pipelines, then run regression baselines.176. Deploy behind a feature flag, monitor telemetry/alerts for two release cycles, and iterate thresholds based on observed outcomes.1819## Metadata20- **Skill ID:** `538`21- **Skill Name:** `u0538-engineering-memory-consolidation-pipeline`22- **Domain:** `Software Engineering Automation`23- **Domain Slug:** `software-engineering-automation`24- **Archetype:** `general-capability`25- **Core Method:** `episodic-to-semantic consolidation`26- **Primary Artifact:** `consolidated memory snapshots`27- **Routing Tag:** `software-engineering-automation:general-capability`28- **Feature Flag:** `skill_0538_engineering-memory-consolidation`29- **Release Cycles:** `2`3031## Allowed Tools32- `read`, `write`, `edit` for contract maintenance, runbook updates, and handoff documentation.33- `exec`, `process` for deterministic execution, validation suites, and regression checks.34- `web_search`, `web_fetch` only when fresh external evidence is required for claims/evidence inputs.35- Use messaging or publishing tools only after policy approval gates are satisfied.3637## Inputs (formatted)38| name | type | required | source |39|---|---|---|---|40| code changes | signal | true | upstream |41| tests | signal | true | upstream |42| incidents | signal | true | upstream |43| rollout data | signal | true | upstream |44| claims | signal | true | upstream |45| evidence | signal | true | upstream |46| confidence traces | signal | true | upstream |4748## Outputs (formatted)49| name | type | guaranteed | consumer |50|---|---|---|---|51| consolidated_memory_snapshots_report | structured-report | true | orchestrator |52| consolidated_memory_snapshots_scorecard | scorecard | true | operator |5354## Guidelines551. Validate required inputs before execution and reject non-conforming payloads early.562. Run `episodic-to-semantic consolidation` with deterministic settings and trace capture enabled.573. Produce `consolidated memory snapshots` outputs in machine-readable form for orchestrator/operator use.584. Keep routing aligned with `software-engineering-automation:general-capability` and include approval context.595. Tune thresholds incrementally based on observed KPI drift and incident learnings.6061## Musts62- Enforce approval gates: `policy-constraint-check`, `human-approval-router`.63- Apply retry policy: maxAttempts=`3`, baseDelayMs=`1050`, backoff=`exponential`.64- Run validation suites before release: `unit`, `integration`, `simulation`, `regression-baseline`.65- Fail closed when validation gates fail and execute rollback strategy `rollback-to-last-stable-baseline`.66- Preserve reproducible evidence artifacts for audits and downstream handoff.6768## Targets (day/week/month operating cadence)69- **Day:** Validate new upstream signals, execute deterministic run, and hand off outputs for active decisions.70- **Week:** Review KPI focus (`regressions`, `brittle release pipelines`, `decision drift`), failure trends, and approval/retry performance.71- **Month:** Re-baseline deterministic expectations, confirm policy alignment, and refresh feature-flag/rollout posture.7273## Common Actions741. **Intake Check:** Confirm all required signals are present and schema-valid.752. **Core Execution:** Run the capability pipeline and generate report + scorecard artifacts.763. **Gate Review:** Evaluate validation and approval gates before publish-level handoff.774. **Recovery:** Retry transient failures, then rollback to stable baseline on persistent errors.785. **Handoff:** Send artifacts with risk/confidence metadata and downstream routing hints.7980## External Tool Calls Needed81- None required by default.82- If external systems are introduced for a run, record the dependency, timeout budget, and retry behavior in execution notes.8384## Validation & Handoff85### Validation Gates86- `schema-contract-check`: All required input signals present and schema-valid (on fail: `quarantine`)87- `determinism-check`: Repeated run on same inputs yields stable scoring and artifacts (on fail: `escalate`)88- `policy-approval-check`: Approval gates satisfied before publish-level outputs (on fail: `retry`)8990### Validation Suites91- `unit`92- `integration`93- `simulation`94- `regression-baseline`9596### Failure Handling97- `E_INPUT_SCHEMA`: Missing or malformed required signals → Reject payload, emit validation error, request corrected payload98- `E_NON_DETERMINISM`: Determinism delta exceeds allowed threshold → Freeze output, escalate to human approval router99- `E_DEPENDENCY_TIMEOUT`: Downstream or external dependency timeout → Apply retry policy then rollback to last stable baseline100101### Handoff Contract102- **Produces:** `Engineering Memory Consolidation Pipeline normalized artifacts`, `execution scorecard`, `risk posture`103- **Consumes:** `code changes`, `tests`, `incidents`, `rollout data`, `claims`, `evidence`, `confidence traces`104- **Downstream Hint:** Route next to software-engineering-automation:general-capability consumers with approval-gate context