GitHub Hot Board

GitHub Hot Board · 저장소 아카이브

znxzsy/AlignLedger

Human-feedback and data-governance infrastructure for RSI research: annotation, review, provenance and frozen dataset candidates. (소개는 저장소 자체 문서에서 왔습니다.)

Python#annotation#annotation-tool#data-labeling

데이터 기준 October 29znxzsy

최고 순위

#215

과소평가 · 활발한데 무명

100

누적 스타

0

포크 수

1

최근 30일 기록 일수

라이선스: MIT최근 push: October 29열린 이슈(PR 포함): 12026-10-25부터 수집. 미확인 = 아직 미수집

프로젝트 문서

English · 中文

AlignLedger: auditable human feedback infrastructure
Python 3.9+ SQLite Standard library tests MIT license

AlignLedger is the human-feedback and data-governance layer for RSI research and iterative model development. It turns model outputs, human corrections and second-pass decisions into traceable records and frozen exports, supporting downstream SFT, RLHF, DPO/KTO preparation and multimodal evaluation.

The project uses the Python standard library and SQLite. There is no frontend build step. A local demo starts with one command and creates synthetic records that cover completed, partial, corrected, and unresolved cases.

Role in the RSI workflow

Here, RSI means recursive self-improvement: evidence from one iteration informs the next. AlignLedger prepares reviewable feedback and versioned data snapshots. VeriInk supplies complementary synthetic practice; trainers and independent evaluators remain external.

Conceptual RSI workflow and public repository boundaries

Data responsibility What this repository provides
Review model output Per-record judgments, corrections and unknown states
Resolve disagreement Separate second-pass decisions and final labels
Preserve accountability Actor attribution, revisions and idempotent writes
Freeze the next dataset candidate Snapshot files, manifest, SHA256 and completion marker
Connect feedback to another iteration Documented handoff; adapter and split policy remain external

Frozen exports are dataset candidates, not automatic training approval. Human labels require an appropriate review protocol; model-generated labels are not human ground truth. DPO/KTO candidate files still require downstream validation and format adaptation.

RSI data workflow · 中文流程 · Illustrative round record

Why this exists

Multi-person annotation fails in predictable ways: a stale browser overwrites a newer decision, a network retry creates duplicate writes, a batch looks complete while individual records remain empty, or the exported label can no longer be traced to the person who changed it. AlignLedger handles those cases directly.

Every write carries a version and an idempotency key. Completed records can be edited without losing history. Second-pass review does not overwrite the original annotation. An unresolved correction stays out of the frozen export.

Workflow

AlignLedger annotation and review workflow

The server separates initial annotation, review, and final adjudication. Reviewers can sample records at random or select a batch. Quality tables report both accuracy and work volume, with every count derived from stored decisions rather than browser state.

What is included

  • Per-record annotation with correction fields and explicit unknown states
  • Automatic draft saving, optimistic version checks, and idempotent writes
  • Invite-based identity binding and reviewer attribution
  • Separate pools for accepted, corrected, and unresolved records
  • Random review, batch review, and final-label adjudication
  • Workload and accuracy tables for annotators and reviewers
  • Frozen exports with a manifest, SHA256, and FROZEN_OK

Quick start

git clone https://github.com/znxzsy/AlignLedger.git
cd AlignLedger
./scripts/run_demo.sh

Open http://127.0.0.1:18068. The first run creates 12 synthetic groups with a mix of complete, partial, corrected, and unknown records.

Docker is also supported:

docker compose up --build

Import your own data

The importer accepts details_*.json shards. Each request supplies stable item indices, image references, and the raw model output.

python -m annotation_platform.importer \
  --details-dir ./my-details \
  --output-dir ./runtime/imported

python -m annotation_platform.server \
  --registry ./runtime/imported/source_groups.jsonl \
  --db ./runtime/review.sqlite3 \
  --audit ./runtime/audit.jsonl

The importer rejects unsafe local image paths, validates record structure, hashes source files, and writes a reviewable manifest.

Shared deployment and identity

The local demo disables authentication. A shared deployment should use a random session secret and one-time invite codes:

mkdir -p secrets runtime
python -c 'import secrets; print(secrets.token_hex(32))' > secrets/session-secret
python scripts/generate_invites.py --count 30

export ANNOTATION_AUTH_REQUIRED=1
export ANNOTATION_SESSION_SECRET_FILE=secrets/session-secret
export ANNOTATION_COOKIE_SECURE=1
./scripts/run_demo.sh

An invite binds to a name on first use; the server stores only the invite hash. runtime/invites.txt contains plaintext codes and must stay outside Git.

Repository layout

annotation_platform/
├── annotation_platform/   # HTTP server, SQLite store, import and export
│   └── static/            # framework-free frontend
├── scripts/               # demo data and invite tools
├── tests/                 # concurrency, safety, and page smoke tests
├── assets/                # English-only project figures
└── runtime/               # local database and audit logs, ignored by Git

Testing

python -m unittest discover -s tests -v
python -m compileall -q annotation_platform scripts tests

The tests cover partial-record filtering, placeholder safety, correction handling, the demo database, HTTP APIs, and the main pages.

Public data boundary

The repository contains synthetic fixtures only. Do not commit real annotation databases, audit logs, invite codes, student images, identity mappings, private screenshots, credentials, internal hosts, or exported datasets. See SECURITY.md.

Collaboration

AlignLedger is intended as a readable base for teams that need stronger review logic than a temporary labeling page. Domain adapters, private deployment, and training-export integration are available through WeChat znxzsy.

License

MIT

현재 순위

  • 215

    과소평가 · 활발한데 무명

    100 스타 · 0 fork · 총 스타 수(오름차순)

    과소평가 →

최근 30일 추이

누적 스타 추이

순위 추이

README에 뱃지를 붙여보세요 · znxzsy/AlignLedger[![README에 뱃지를 붙여보세요](https://git.vaiox.xyz/api/badge/znxzsy/AlignLedger.svg)](https://git.vaiox.xyz/ko/repo/znxzsy/AlignLedger)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/ko/repo/znxzsy/AlignLedger"><img src="https://git.vaiox.xyz/api/badge/znxzsy/AlignLedger.svg" alt="README에 뱃지를 붙여보세요" height="20"></a>

← 랭킹으로

GitHub Hot Board타임머신발견联系我们 · Contact