원클릭으로
reasoning
Translates the System 2 mathematical risk vectors into human-readable warnings.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Translates the System 2 mathematical risk vectors into human-readable warnings.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | reasoning |
| description | Translates the System 2 mathematical risk vectors into human-readable warnings. |
This skill is the interpreter between the System 2 sidecar's numeric output
and a human (or System 1) reader. The sidecar emits an ImpactReport JSON
object for every proposed code edit. Use this document to translate that
object into plain prose, decide whether to block the edit, and surface the
right warnings to the user.
{
"architectural_impact_score": 0.0,
"coherence_delta": 0.0,
"risk_vector": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
"risk_labels": ["cyclomatic", "fan_in", "fan_out", "depth",
"churn", "coupling", "cohesion", "novelty"],
"regression_detected": false,
"human_summary": "string"
}
risk_vector[i] is paired with risk_labels[i] in order. All eight dims are
normalized to [0, 1]. A value approaching 1.0 means the edit pushes that
dimension into a risky regime.
if, case, loops,
guard rewrites that fan out).[0, 1]. High novelty means the SSM backbone
sees the post-edit code as semantically far from the pre-edit code, even
if the surface diff is small.The hook treats regression_detected == true as a blocking signal. The
sidecar sets that flag when any of the following hold:
| Condition | Meaning |
|---|---|
architectural_impact_score < 0.4 | Post-edit code far from pre-edit. |
coherence_delta > 1.5 | Embedding drift exceeds budget. Scale-invariant: raw L2 normalized by sqrt(hidden_size), so the threshold is portable across SSM checkpoints. |
any risk_vector[i] > 0.9 | One dim in critical zone. |
If two or more conditions trigger simultaneously, treat as high-confidence regression — surface every triggered condition in the explanation, do not collapse them.
The sidecar parses and scores: Python (.py), JavaScript
(.js/.mjs/.cjs), TypeScript (.ts/.tsx), C# (.cs), and SQL
(.sql).
Other extensions (e.g. .rb, .go, .rs, .cpp) are explicitly
unsupported:
415 with body
{"error": "unsupported_language", "extension": "<ext>"}.0, but writes a
short note to stderr (unsupported_language: .rb — passing edit unblocked).human_summaryhuman_summary is a one-paragraph, sidecar-authored explanation. When
regression_detected is true, the summary names the dominant triggered
condition (largest excess over its threshold) and the most-impacted risk
dimension. Use it as the starting sentence of any user-facing message; add
your own follow-up explaining what to do next.
| Trigger profile | Recommended action |
|---|---|
| No threshold crossed | Allow edit silently. No user-facing message. |
| AIS only (< 0.4) | Block. Ask user to justify the architectural pivot. |
| coherence only (> 1.5) | Block. Ask whether semantics intentionally changed. |
| One risk dim > 0.9 | Block. Name the dim and request a smaller diff. |
| AIS + coherence | Block. Treat as a likely regression; demand context. |
| AIS + risk dim | Block. The edit both pivots and blows out a metric. |
| coherence + risk dim | Block. Drift + spike → almost certainly regressive. |
| All three | Block. Strongly recommend reverting the edit. |
| Sidecar unreachable (degraded=True) | Default fail-open: allow with warning. If |
S2_FAIL_CLOSED=1: block. | |
unsupported_language response | Pass through. Note in stderr. Never block. |
Input edit (Python, dropping a guard clause and adding unbounded recursion):
# before
def f(n):
if not n:
return 0
return n + f(n - 1)
# after
def f(n):
return n + f(n + 1)
Sidecar response:
{
"architectural_impact_score": 0.18,
"coherence_delta": 2.41,
"risk_vector": [0.92, 0.10, 0.05, 0.30, 0.40, 0.05, 0.20, 0.95],
"risk_labels": ["cyclomatic", "fan_in", "fan_out", "depth",
"churn", "coupling", "cohesion", "novelty"],
"regression_detected": true,
"human_summary": "Guard clause removed and recursion is unbounded; cyclomatic and novelty risk spiked while AIS collapsed."
}
Prose translation (what the assistant should say):
Blocking this edit. The System 2 sidecar reports a likely regression: the architectural-impact score dropped to 0.18 (threshold 0.4), embedding drift hit 2.41 (threshold 1.5), and two risk dimensions are in the critical zone — cyclomatic (0.92) and novelty (0.95). The guard clause
if not n: return 0previously prevented infinite recursion; the new body recurses onn + 1, so the function now diverges for every input. Restore the guard, or explain why you want unbounded recursion here.
That output covers: which thresholds crossed, the dominant risk dims, the
concrete code-level cause from human_summary, and a clear next-step ask.
That is the contract this skill provides.