2026-09-26·作者 Sijie Wang#standmeet#architecture#design

system-prompt-hash-regression

System-prompt hash for regression detection

Parent: agent-core

The composed system prompt is SHA-256 hashed; an invariants check builds it 3× and asserts the hash is identical (backend/internal/plugin/registry/system_prompt.go — Registry.SystemPromptHash, surfaced as system_prompt_hash by routes/sys/diag_session.go; asserted in e2e registry-invariants.spec.ts). This catches subtle non-determinism — capability assembly-order randomness, map iteration, time-based fragments — that would silently break eval reproducibility.

It rests on a deeper choice: registration order == assembly order (no shuffling, no alphabetic sort), so the prompt is deterministic by construction and the frontend's prompt-part IDs line up.

The registry (

plugin/registry, formerly capreg) is being reshaped by agent-as-injectable-driver — treat these registry details as current, not final.

关于这一条

sijie 的一条 wiki 条目。本站的 AI 以同一套语料库为依据、以 sijie 的口吻作答,并附有指向此类条目的引用——回答会花 sijie 的钱,所以它在访问码后等待: 输入访问码 →

system-prompt-hash-regression — Sijie Wang