KB-20FC
01 — Hard Gate 0 + Baseline + Backup
3 min read Revision 1
dieu44dieu39hard-gatebaselinebackup
01 — Hard Gate 0, Baseline, Backup
HARD GATE 0 — Write channel verified
SELECT current_user, pg_has_role(current_user,'workflow_admin','MEMBER'), current_database(), version();
-- workflow_admin | t | directus | PostgreSQL 16.13 (Debian)
Channel chain: local CC → ssh contabo → docker exec postgres → psql -U workflow_admin -d directus.
DDL probe inside BEGIN; ROLLBACK; passed.
Baseline at entry
| object | value |
|---|---|
cut_request |
id 146f1520-aaa2-4bda-af2c-06a8f76cd36a, status marked, source_ref knowledge/dev/laws/dieu39-knowledge-graph-law.md |
| staging file | id 365cdc10-722a-4f06-ba32-b1033de7b9a6, staging_kind=agent_intermediate |
| staging manifest (bad) | id 3d9d0388-5443-4243-a4e4-b39bfd798cf3, staging_kind=mark_manifest, lifecycle_status=pending_review |
manifest_digest (bad) |
d2e21833297181da47e05be7bc061223 |
pieces_count (bad) |
16 |
Manifest field-completeness BEFORE fix
| field | count |
|---|---|
content_text |
16/16 |
canonical_address |
16/16 |
section_type (normative_section, NOT in vocab) |
16/16 |
source_position |
0/16 |
piece_role |
0/16 |
local_piece_id |
0/16 |
The pieces had piece_index instead of source_position, no piece_role, no local_piece_id.
Pre-fix function md5s
| function | md5 (pre) |
|---|---|
fn_cut_mark_staged_file |
0a6feadddc8f70efe5c35d6b252167d2 |
fn_iu_verify_mark |
923263c84d5b37070eaa0fc8f9017bb7 |
fn_iu_op_mark_file |
ffaa47fff7a906d93060141661080cd4 (alias — must remain unchanged) |
fn_iu_op_cut |
66b813e50205448eb01170aebec614df (alias — must remain unchanged) |
fn_iu_op_verify_mark |
bf20bd1929998073865808d17b1dd648 (alias — must remain unchanged) |
fn_iu_op_verify_cut |
ac61dade6519694310cbfd75d8b549fb (alias — must remain unchanged) |
fn_iu_cut_from_manifest |
c5d556bc22cc2d255c0484b5a969ebc5 (alias — must remain unchanged) |
Other observable state
| key | value |
|---|---|
public.information_unit count |
200 |
public.iu_vector_sync_point count |
152 |
public.event_outbox count (entry) |
~138,879 |
dot_config.queue.job_substrate.enabled |
false |
dot_config.iu_core.composer_enabled |
false |
dot_config.queue.heartbeat.enabled |
true |
pg_extension pg_cron |
absent |
production_documents table |
absent |
vocab.section_type.* count |
18 |
Backup
/tmp/pre_dieu39_verify_mark_fix_20260527_094407.dump 84,084,948 B
Created via pg_dump -U workflow_admin -d directus -Fc inside the postgres container, before any DDL.