data-layer-architecture

Implement a Bronze-Gold two-layer architecture with immutable ExtractionLog and verified data protection.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/sage-base/sagebase --skill data-layer-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-layer-architecture
Source: https://github.com/sage-base/sagebase/tree/main/.claude/skills/data-layer-architecture
Command: npx skills add https://github.com/sage-base/sagebase --skill data-layer-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill defines a robust two-layer architecture (Bronze extraction logs and Gold confirmed data) to preserve AI extraction history, enable auditability, and protect human corrections during data curation.

Core Features & Use Cases

  • Immutable Bronze layer: Append-only ExtractionLog records that capture AI extractions for traceability and model improvement.
  • Mutable Gold layer with protection: Gold entities update only when is_manually_verified is false; manual verification preserves human-corrected data.
  • End-to-end data governance: Link between extraction logs and gold data enables auditing, rollback, and compliant data curation.

Quick Start

Initialize a two-layer extraction system by logging a sample extraction to ExtractionLog, then show how Gold is updated when is_manually_verified is false and preserved when true.

Frequently Asked Questions about data-layer-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preserve AI extraction history while protecting manually verified data?

To preserve AI extraction history while protecting manually verified data, implement a Bronze-Gold two-layer architecture. The Bronze layer stores immutable append-only extraction logs, while the Gold layer updates only when is_manually_verified is false, safeguarding human corrections during data curation.

What is the Bronze-Gold two-layer architecture for data governance?

The Bronze-Gold two-layer architecture is a data governance design that separates immutable AI extraction logs in the Bronze layer from confirmed data in the Gold layer. This structure enables full traceability, model auditing, and rollback capabilities while preventing automated updates from overwriting human-curated records.

How do I set up an extraction log that supports LLM traceability and rollback?

You set up LLM traceability by creating an append-only ExtractionLog that captures every AI extraction immutably. Linking this log to Gold entities via a latest_extraction_log field allows you to audit extraction history, trace model outputs, and roll back confirmed data when necessary.

Can I update Gold layer records without overwriting manually verified fields?

You can update Gold layer records without overwriting manually verified fields by checking the is_manually_verified flag. When the flag is true, the Gold entity is preserved; when false, new extractions update the Gold data, maintaining data integrity and compliance during automated curation.

Does this data governance approach work for tracking extractions across multiple entity types?

Yes, this data governance approach works for tracking extractions across multiple entity types. The architecture enforces latest_extraction_log linkage across statements, politicians, speakers, and related entities, ensuring consistent traceability and auditability throughout the entire data curation workflow.