text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
---
status: complete
phase: 01-core-runtime-and-contracts
source: [.planning/phases/01-core-runtime-and-contracts/01-01-SUMMARY.md, .planning/phases/01-core-runtime-and-contracts/01-02-SUMMARY.md, .planning/phases/01-core-runtime-and-contracts/01-03-SUMMARY.md, .planning/phases/01-core-runtime-and-contracts/01-04-SUMMA... | adapter-lab | .planning/phases/01-core-runtime-and-contracts/01-UAT.md | Markdown | fd65c634d203207ddcdbc7cd047ddee1a3b7feacfb09b7df70a06218687aec86 | 0 | 759 |
---
phase: 01
slug: core-runtime-and-contracts
status: verified
nyquist_compliant: true
wave_0_complete: true
created: 2026-05-26
---
# Phase 01 - Validation Strategy
> Per-phase validation contract for feedback sampling during execution.
---
## Test Infrastructure
| Property | Value |
|----------|-------|
| **Fra... | adapter-lab | .planning/phases/01-core-runtime-and-contracts/01-VALIDATION.md | Markdown | 8ccc17c0f0ac218aa256eb5fe33b16a56987d27315261790d382ba247e94b741 | 0 | 896 |
# Manual-Only Verifications
All Phase 1 behaviors have automated verification. Manual review is limited to confirming that generated templates contain no tenant data, secrets, or misleading production defaults.
---
## Validation Sign-Off
- [x] All tasks have automated verify commands or Wave 0 dependencies
- [x] Sa... | adapter-lab | .planning/phases/01-core-runtime-and-contracts/01-VALIDATION.md | Markdown | 1e6f54273e80bca8abcf939e8fe815718f8343505d59d2551a3ba0f3489e202f | 1 | 126 |
---
phase: 01-core-runtime-and-contracts
status: passed
created: 2026-05-29
requirements:
accounted_for:
- FND-01
- FND-03
- FND-07
- FND-08
- FND-09
- FND-10
- FND-11
- FND-12
human_verification: []
gaps: []
---
# Phase 01 Verification
Phase 01 goal verified: the package foundation ... | adapter-lab | .planning/phases/01-core-runtime-and-contracts/01-VERIFICATION.md | Markdown | 56a0dd9ae9a7ba4bada4d654b2163e58cb43d063dc63011f67b5179f07839be8 | 0 | 643 |
---
phase: 02-enterprise-controls-and-offline-guardrails
plan: 02-01
title: Doctor checks, deployment-mode declarations, egress allowlists, and network fail-closed enforcement
type: tdd
wave: 1
depends_on: []
files_modified:
- src/adapterlab/contracts/policy.py
- src/adapterlab/contracts/schema_export.py
- src/ad... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-01-PLAN.md | Markdown | 60aec26543a225273b7d40550a6e34c2d0476ceb142e6bad5fad49045ff0acba | 0 | 896 |
02-enterprise-controls-and-offline-guardrails/02-VALIDATION.md`
- `src/adapterlab/contracts/config.py`
- `src/adapterlab/sdk/errors.py`
- `src/adapterlab/sdk/output.py`
</read_first>
<action>Create tests in `tests/contracts/test_policy_models.py`, `tests/policy/test_egress.py`, `tests/doctor/t... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-01-PLAN.md | Markdown | 13e1e0a3d0dd1127319eee37c32c0c58725c7eaa88ae89be55c7dbd226895b76 | 1 | 896 |
policy, model-cache path presence, signer reference syntax, mirror/wheelhouse metadata presence, audit/log destination paths, identity config presence, and secret-reference syntax. Add `adapterlab doctor --json` to `src/adapterlab/cli.py` using `CommandResult`.</action>
<acceptance_criteria>
- `src/adapterlab... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-01-PLAN.md | Markdown | decaac776d46136840a4d3839ac9551fcc85012acf10c15c504a89a83d18a2d3 | 2 | 613 |
---
phase: 02-enterprise-controls-and-offline-guardrails
plan: 02-01
subsystem: policy
tags: [doctor, egress, deployment-mode, airgap, cli]
requires:
- phase: 01-core-runtime-and-contracts
provides: CLI/SDK contracts, schema exports, stable errors, and init templates
provides:
- Deployment and egress policy con... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-01-SUMMARY.md | Markdown | 8343570d96a92ae3ea5c29483fb9f925c8ecd2125a44954e785d461fce6b7821 | 0 | 740 |
---
phase: 02-enterprise-controls-and-offline-guardrails
plan: 02-02
title: Append-only audit log, structured logs, local metrics, and experiment-tracking foundation
type: tdd
wave: 2
depends_on: [02-01]
files_modified:
- src/adapterlab/observability/__init__.py
- src/adapterlab/observability/audit.py
- src/adapt... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-02-PLAN.md | Markdown | e71e495ad1bd80e65190d80510c024ec1d18f50970c47b32e651662d905395d8 | 0 | 896 |
observability/test_logging.py` asserts fields named `password`, `secret`, `token`, `hsm_pin`, and `private_key` are redacted.
- `tests/observability/test_metrics.py` asserts metrics can be written as local text or JSON without network.
- `tests/observability/test_experiments.py` asserts experiment metadata ... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-02-PLAN.md | Markdown | 0663229b8dab35dc28c4d5965a085551198607525860179b828f004cb2ae4f99 | 1 | 896 |
records contain `run_id`, `parameters`, `metrics`, `artifact_refs`, `command`, and `tags`.
- Artifact refs are stored as serialized `ArtifactRef` objects, not mutable-only paths.
- Secret-like parameter values are redacted before write.
- `uv run pytest tests/observability/test_experiments.py -q` exit... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-02-PLAN.md | Markdown | ddda2be058b884a62318d0674d852dad8489ad22ad2796ffbba8a4ed2259303a | 2 | 197 |
---
phase: 02-enterprise-controls-and-offline-guardrails
plan: 02-02
subsystem: observability
tags: [audit, jsonl, metrics, experiments, redaction]
requires:
- phase: 02-01
provides: Policy and doctor foundations
provides:
- Append-only audit writer
- Structured local command logs
- Local metrics snapshots
... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-02-SUMMARY.md | Markdown | 8b7d0cc2209aa3370c0f65e8feb2778084d2e2d93543f1f830a59cdc44bbf98f | 0 | 642 |
---
phase: 02-enterprise-controls-and-offline-guardrails
plan: 02-03
title: Offline identity source, RBAC role gates, role-change audit, and secret-reference redaction
type: tdd
wave: 3
depends_on: [02-01, 02-02]
files_modified:
- src/adapterlab/contracts/security.py
- src/adapterlab/contracts/schema_export.py
- ... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-03-PLAN.md | Markdown | 2ffdb9caa4536e572ff37ecbda15065dfe91149b10a98859b541dfa784705325 | 0 | 896 |
value is stored or logged.</action>
<acceptance_criteria>
- `tests/contracts/test_security_models.py` asserts invalid roles and malformed secret refs fail validation.
- `tests/security/test_rbac.py` asserts viewer cannot perform operator actions, operator cannot approve gates, and approver cannot sign.
... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-03-PLAN.md | Markdown | dee2f8633a6968966eb5766fe8b3b3e23c8e312ece0de675f9864f99b82148a0 | 1 | 896 |
/templates/README.md`
- `tests/init/test_init_scaffold.py`
- `tests/init/test_init_privacy.py`
</read_first>
<action>Add managed templates `identity.yaml` and `policies/secrets.yaml` to the init scaffold. Templates must include local role examples using safe placeholder identifiers and secret refere... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-03-PLAN.md | Markdown | 10fc556eac8de4e56e294cee06d156d0bc6fc1f891614c1b329e39771a1a9392 | 2 | 309 |
---
phase: 02-enterprise-controls-and-offline-guardrails
plan: 02-03
subsystem: security
tags: [identity, rbac, secrets, redaction]
requires:
- phase: 02-01
provides: GateFailure and policy foundation
- phase: 02-02
provides: Audit and redaction foundation
provides:
- Offline identity config contracts
-... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-03-SUMMARY.md | Markdown | fffac078e8708d19ee1a9db251fdfc168ce34121f0c272e854225079ef812a90 | 0 | 673 |
---
phase: 02-enterprise-controls-and-offline-guardrails
plan: 02-04
title: CycloneDX SBOM, build provenance, uv.lock, hash-pinned exports, and wheelhouse verification metadata
type: tdd
wave: 2
depends_on: [02-01]
files_modified:
- src/adapterlab/contracts/supply_chain.py
- src/adapterlab/contracts/schema_export.p... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-04-PLAN.md | Markdown | f3ba85cf34747527c38807208936a003ce4bf084a1d5fb9e0bb03c344ad4effc | 0 | 896 |
/supply_chain/test_provenance.py` expects Python version, platform, package version, schema digests, lockfile ref, and SBOM digest.
- `tests/supply_chain/test_wheelhouse.py` expects `uv.lock` and hash/export metadata checks.
- `tests/cli/test_supply_chain_cli.py` expects parseable JSON for supply-chain read... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-04-PLAN.md | Markdown | f8a63da8788bf42e89ff6f8c2c2be4c2f01a109bebeade8d3dda8fd7cc3ef6d6 | 1 | 896 |
doctor`. Reuse `CommandResult` and keep all outputs local and redacted.</action>
<acceptance_criteria>
- CLI JSON output for supply-chain commands is parseable and written to stdout only.
- Doctor report includes SBOM/provenance/wheelhouse readiness checks.
- Missing wheelhouse metadata produces a... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-04-PLAN.md | Markdown | 6fc1582706fdf3bb5b2226e1486f84e27b3625fe3a7d6d152d59341d6497aa3f | 2 | 222 |
---
phase: 02-enterprise-controls-and-offline-guardrails
plan: 02-04
subsystem: supply-chain
tags: [sbom, provenance, wheelhouse, uv]
requires:
- phase: 02-01
provides: Doctor readiness foundation
provides:
- CycloneDX-compatible local SBOM payload
- Build provenance metadata
- Wheelhouse readiness checks
a... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-04-SUMMARY.md | Markdown | 53718efec1a1e4f3f2bb723ee2b3a3887806def28083e56b6bfef00fdf38604e | 0 | 630 |
---
phase: 02-enterprise-controls-and-offline-guardrails
plan: 02-05
title: Airgapped no-network tests and enterprise deployment, mirror, plugin, signer, secret, and threat-model documentation
type: tdd
wave: 4
depends_on: [02-01, 02-02, 02-03, 02-04]
files_modified:
- tests/offline/test_no_network.py
- tests/priva... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-05-PLAN.md | Markdown | 2695f36021a0aa9bed62f6e003fd7be50ace1bb61c24f8adafe1fdcc5cdfd9ee | 0 | 896 |
forbidden.</action>
<acceptance_criteria>
- `tests/offline/test_no_network.py` contains a socket-blocking fixture or uses one from `tests/conftest.py`.
- Airgapped command tests fail if any command attempts to open a socket.
- Privacy tests include fixture strings for `BEGIN PRIVATE KEY`, `hsm_pin... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-05-PLAN.md | Markdown | 6ceb4acff7dec72fd0dc99c497e25f52572690091a1fef4ac8d175869c355edf | 1 | 896 |
docs/operations.md`
- `docs/threat-model.md`
- `src/adapterlab/templates/`
</read_first>
<action>Update docs, scaffold templates, and sample output fixtures until privacy regression tests prove no raw PII values, canary strings, HSM PINs, private key blocks, API keys, signing secrets, or forbidden p... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-05-PLAN.md | Markdown | 7d6fed183a772da10788b2fa64ca5e8db2e40af3b2963f947cf35bb1dce8c81e | 2 | 327 |
---
phase: 02-enterprise-controls-and-offline-guardrails
plan: 02-05
subsystem: offline-docs
tags: [no-network, privacy, docs, deployment]
requires:
- phase: 02-01
provides: Policy and doctor foundation
- phase: 02-02
provides: Redacted evidence sinks
- phase: 02-03
provides: Identity/RBAC and secret ... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-05-SUMMARY.md | Markdown | e617a622a15e40cc6a33d7698dad29f7e74bd758a62de0734cea298f83423e14 | 0 | 756 |
# Phase 2: Enterprise Controls and Offline Guardrails - Context
**Gathered:** 2026-05-26
**Status:** Ready for planning
<domain>
## Phase Boundary
Phase 2 turns the Phase 1 foundation into an enterprise-operable offline lab. It delivers `adapterlab doctor`, deployment-mode egress enforcement, append-only audit and s... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-CONTEXT.md | Markdown | 309f4115a494a5aee15ec7fc5109cec24deb1a3914900977efde6d42330fe8f5 | 0 | 896 |
token material never appear in evidence.
### Offline Identity, RBAC, and Secrets
- **D-14:** Identity is offline-compatible and file/config backed in v1. Use tenant-managed YAML/JSON identity and role assignments as the first implementation surface; do not introduce SaaS identity providers.
- **D-15:** RBAC is enforce... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-CONTEXT.md | Markdown | 6000e2070c8dc8e9070eafedfbbd71d913f3dc3aec096a4734d53ee206446dcd | 1 | 896 |
Vision and Research
- `vision.md` sections 2.2-2.3 - Manifest-centered data flow and trust boundaries.
- `vision.md` sections 9.1-9.4 - Reproducibility, provenance, security, and plugin extensibility constraints.
- `vision.md` sections 10-11 - CLI command surface, global flags, exit codes, and SDK reference patterns.
-... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-CONTEXT.md | Markdown | 92c61b86b94159e99a400a9bff5a4fe59a66e292cfb64361d5206fd1eba9681f | 2 | 874 |
# Phase 2: Enterprise Controls and Offline Guardrails - Discussion Log
> **Audit trail only.** Do not use as input to planning, research, or execution agents.
> Decisions are captured in CONTEXT.md - this log preserves the alternatives considered.
**Date:** 2026-05-26
**Phase:** 2-enterprise-controls-and-offline-guar... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-DISCUSSION-LOG.md | Markdown | 0845d97c8b331420e3248fca0885f16dc3dc1d86f6eeb1345480585ddbad5f23 | 0 | 896 |
build provenance, and wheelhouse readiness metadata. | yes |
| Remote supply-chain services | Require online SBOM/provenance services. | |
| Documentation-only posture | Explain offline install posture without machine-checkable evidence. | |
**User's choice:** Auto-selected local standards-compatible evidence (recomme... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-DISCUSSION-LOG.md | Markdown | d23690e0e7588dd9538e2b7f874c4c3a21b0eafc51b0f3b47c6d5c9238b645c0 | 1 | 181 |
# Phase 02 - Pattern Map
## Codebase State
Phase 1 established a small SDK-first Python package:
- `src/adapterlab/cli.py` owns Typer command wiring, JSON flag handling, stderr error handling, and command result rendering.
- `src/adapterlab/sdk/errors.py` owns stable public errors and exit-code mapping.
- `src/adapt... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-PATTERNS.md | Markdown | a1fdf30b050058ebaeae1a58b0ebb28abaf0de66b18faaeb50d94557121e1071 | 0 | 777 |
# Phase 2: Enterprise Controls and Offline Guardrails - Research
## RESEARCH COMPLETE
**Question answered:** What needs to be known to plan Phase 2 well?
## Scope Summary
Phase 2 is the enterprise-control foundation for every later ML stage. It should extend the Phase 1 SDK-first package with policy-aware execution... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-RESEARCH.md | Markdown | 4f0b9a9afa65aafbc10678c7bdacca6cfb5000e7b71d9fb79e61d2a4dc955913 | 0 | 896 |
values.
### Verification Commands
- Quick: `uv run pytest tests/policy tests/doctor tests/observability tests/security tests/supply_chain -q`
- CLI: `uv run pytest tests/cli -q`
- Offline/privacy: `uv run pytest tests/offline tests/privacy -q`
- Full: `uv run pytest -q`
- Lint: `uv run ruff check .`
## Risks and Pla... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-RESEARCH.md | Markdown | 17be31d4d7c618bfb0a86005e168d4ee766fda51a87d4052d375d5c0ba7236d8 | 1 | 352 |
---
phase: 02-enterprise-controls-and-offline-guardrails
status: clean
depth: deep
reviewed_commit: d696a2a
created: 2026-05-26
findings:
critical: 0
warning: 0
info: 0
---
# Phase 02 Code Review
Reviewed Phase 02 implementation commit `d696a2a` for correctness, security regressions, offline-mode regressions, a... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-REVIEW.md | Markdown | 336815c0e04440524cf975c75093a9b33a7812bb442233a18e84012ab1e73bf3 | 0 | 477 |
---
phase: 02
slug: enterprise-controls-and-offline-guardrails
status: verified
threats_open: 0
asvs_level: 3
created: 2026-05-26T20:15:00Z
updated: 2026-05-26T20:15:00Z
---
# Phase 02 — Security
Per-phase security contract for Phase 02: Enterprise Controls and Offline Guardrails.
## Trust Boundaries
| Boundary | D... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-SECURITY.md | Markdown | 005c6e8be52c368115cd1b09fd6257c02e02ff6a518129dd2a0fe8d8d9b0095d | 0 | 896 |
-SECRET-LEAK | Information Disclosure | Secret references | mitigate | `SecretRef` permits only approved reference schemes, rejects inline values, and `redacted_secret_ref()` hides reference targets. | closed |
| T-02-SAAS-IDP | Spoofing | Identity source | mitigate | Identity loading uses tenant-managed local YAML and... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-SECURITY.md | Markdown | 49c3591b706bffe1209ddc10c48a789b13dd7093225fdc11d4ff22d10e057e5d | 1 | 742 |
---
phase: 02
slug: enterprise-controls-and-offline-guardrails
status: verified
nyquist_compliant: true
wave_0_complete: true
created: 2026-05-26
---
# Phase 02 - Validation Strategy
> Per-phase validation contract for feedback sampling during execution.
---
## Test Infrastructure
| Property | Value |
|----------|... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-VALIDATION.md | Markdown | 3615d6d2d3602d79aaab51fd61d8a753385cd337bb40babb0de4dbd01bf1c0de | 0 | 896 |
/`, `tests/offline/`, and `tests/privacy/` exist before their first tests are added.
- [x] Shared test fixtures can block socket/network calls for airgapped tests.
- [x] Privacy fixture strings for secrets, HSM PINs, private key markers, canaries, and PII-like values are centralized so scans are consistent.
---
## Ma... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-VALIDATION.md | Markdown | 633fdf6ed75af0dcdf453a3d759661d7a13c2b23cceb1bdeb37bcc25b9db15e4 | 1 | 214 |
---
phase: 02-enterprise-controls-and-offline-guardrails
status: passed
created: 2026-05-26
verified_commit: d696a2a
requirements:
accounted_for:
- FND-02
- FND-04
- FND-05
- FND-06
- OPS-01
- OPS-02
- OPS-03
- OPS-05
- OPS-06
- OPS-07
- OPS-08
- OPS-12
- OPS-14
hum... | adapter-lab | .planning/phases/02-enterprise-controls-and-offline-guardrails/02-VERIFICATION.md | Markdown | ee0416427f64eb99335881ccd2fd5b5818d5177fecbaafb662d14ffad0addc95 | 0 | 832 |
---
phase: 03-provenance-preserving-ingest
plan: 03-01
title: Loader and source connector framework for local paths, mounted shares, SMB-style sources, tenant S3-compatible sources, and DMS exports
type: tdd
wave: 1
depends_on: []
files_modified:
- pyproject.toml
- uv.lock
- src/adapterlab/contracts/ingest.py
-... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-01-PLAN.md | Markdown | 5513e484bff8d8368fd6d1279ca8bf3776db6ede72b52bb4cd9bc70a76b9a0b6 | 0 | 896 |
adapterlab/cli.py`
- `tests/cli/test_doctor_cli.py`
</read_first>
<action>Create failing tests for `SourceConfig`, `SourceRecord`, `ExtractedRecord`, connector enumeration, local fixture loading, deny-on-airgapped SMB/S3/DMS-style access, loader plugin evidence fields, and `adapterlab ingest --config SOUR... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-01-PLAN.md | Markdown | 6a80ffdbfae380decdc9f8ea7e622774aedbea01e821fe51111ac54f4f707beb | 1 | 896 |
ingest/loaders.py` with deterministic fixture-capable loaders for PDF, DOCX, HTML, EML, Markdown, text, CSV, Parquet, and JSONL that emit `ExtractedRecord` values and safe metadata.</action>
<acceptance_criteria>
- Local connector recursively enumerates fixture files and emits stable source records.
- S... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-01-PLAN.md | Markdown | 10477523afc79e0d5b8f61d9febcf227dac31d6c882978f11d5ad3b3c383e1ba | 2 | 709 |
---
phase: 03-provenance-preserving-ingest
plan: 03-01
subsystem: ingest
tags: [typer, pydantic, connectors, loaders, plugins]
requires:
- phase: 02-enterprise-controls-and-offline-guardrails
provides: egress policy, plugin trust, CLI output contracts
provides:
- SDK ingest entrypoint with source connector and ... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-01-SUMMARY.md | Markdown | 664d50bbeebfbc59a946c7883bfb82e4150408365a4eccbd25588a0e25702662 | 0 | 809 |
---
phase: 03-provenance-preserving-ingest
plan: 03-02
title: Provenance model, canonical corpus schema, source metadata, chunking, and content-addressed sidecars
type: tdd
wave: 2
depends_on: [03-01]
files_modified:
- src/adapterlab/contracts/ingest.py
- src/adapterlab/contracts/schema_export.py
- src/adapterlab... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-02-PLAN.md | Markdown | d2d0ef02ff45548a66b7cd66821f5fb9962d8d0506746a03c14deba447b36524 | 0 | 896 |
, deterministic `doc_id`, normalization metadata, optional sentence/sliding-window chunk records, `ArtifactRef` outputs for corpus/sidecars/manifests, and `ingest.manifest.json` references.</action>
<acceptance_criteria>
- `tests/ingest/test_corpus_manifest.py` asserts `corpus.parquet` has required columns `d... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-02-PLAN.md | Markdown | 99d39f761f8160ac757c7cea17f3ca34ca823524d7cd6c807269406704b00455 | 1 | 896 |
- `src/adapterlab/ingest/pipeline.py`
- `src/adapterlab/contracts/schema_export.py`
</read_first>
<action>Add `IngestManifest` and assembly helpers that record input refs/hashes, config refs, loader/plugin evidence, egress decisions, output refs for corpus and sidecars, normalization/chunking config, and ... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-02-PLAN.md | Markdown | 156f72e67cf272d3a369d078e7b23eec603e1190fa5ff0976688ba03d47af765 | 2 | 366 |
---
phase: 03-provenance-preserving-ingest
plan: 03-02
subsystem: ingest
tags: [pyarrow, parquet, artifact-ref, manifests, chunking]
requires:
- phase: 03-provenance-preserving-ingest
provides: source records and extracted records from 03-01
provides:
- Canonical `corpus.parquet` writer
- Ingest manifest asse... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-02-SUMMARY.md | Markdown | 265ab76bc461d986ce217066031cbb7672170da6101f57761026df09bfecb65f | 0 | 705 |
---
phase: 03-provenance-preserving-ingest
plan: 03-03
title: Language detection, quarantine, normalization, and multilingual fixture coverage
type: tdd
wave: 3
depends_on: [03-02]
files_modified:
- src/adapterlab/contracts/ingest.py
- src/adapterlab/ingest/language.py
- src/adapterlab/ingest/quarantine.py
- sr... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-03-PLAN.md | Markdown | c733ca0a308a588df438d6c820f679ff25cb869d457c9a0cced3b8d639f9dad3 | 0 | 896 |
.
- Tests assert low-confidence records create quarantine sidecar refs and do not appear as training-eligible corpus rows by default.
- Tests assert fixture files contain fictional text only and no private key, HSM PIN, or raw secret markers.
- `uv run pytest tests/ingest/test_language_quarantine.py -... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-03-PLAN.md | Markdown | 99c9308740d63926d8e449b794b7add735b13c1c40f6a23ca486a7151e5faec9 | 1 | 896 |
derived outputs and find no raw secret or forbidden PII values.
- `uv run pytest tests/ingest/test_language_quarantine.py tests/ingest/test_corpus_manifest.py tests/privacy/test_enterprise_outputs.py -q` exits 0.
</acceptance_criteria>
<verify>uv run pytest tests/ingest/test_language_quarantine.py tests/i... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-03-PLAN.md | Markdown | 3481330204aaf06776e614d938678bf6713a0a122b6adeab94555269267b1dd3 | 2 | 240 |
---
phase: 03-provenance-preserving-ingest
plan: 03-03
subsystem: ingest
tags: [language, quarantine, fixtures, multilingual]
requires:
- phase: 03-provenance-preserving-ingest
provides: corpus and manifest contracts from 03-02
provides:
- Deterministic fixture language detector
- Quarantine sidecar support
... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-03-SUMMARY.md | Markdown | 09fe19b07331bb5ad8d892b475e0721f2e31cfeb95d744764f3cc751ae05c2f8 | 0 | 648 |
---
phase: 03-provenance-preserving-ingest
plan: 03-04
title: PII recognizer loading, destructive redaction, reversible redaction, key references, and privacy-safe redaction sidecars
type: tdd
wave: 3
depends_on: [03-02]
files_modified:
- src/adapterlab/contracts/ingest.py
- src/adapterlab/ingest/redaction.py
- s... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-04-PLAN.md | Markdown | 6a723a02e22cff7cd68b2bf4d2c76701d04b6c94ecb85fdc58c087c9e1b1679b | 0 | 896 |
include entity type, span/range, score, operator, recognizer name/version, and replacement marker.
- Tests assert aggregate PII summaries are grouped by entity type/count only.
- Tests assert reversible sidecar refs are absent unless reversible mode is explicitly enabled.
- `uv run pytest tests/ingest... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-04-PLAN.md | Markdown | 47ffce9d336fdde35d9c3139a4419da54731d3bc29d093851d9b836e2121d966 | 1 | 896 |
or stable key.
- `ingest.manifest.json` includes PII summary counts by entity type and recognizer, not raw values.
- CLI JSON reports redaction counts without text snippets or raw entity values.
- `uv run pytest tests/ingest/test_redaction.py tests/privacy/test_enterprise_outputs.py tests/ingest/test_... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-04-PLAN.md | Markdown | bb64ee129a036506a5b9bf8f36f5c8c9059f8c43e66518e6958c5e966b35ce32 | 2 | 259 |
---
phase: 03-provenance-preserving-ingest
plan: 03-04
subsystem: ingest
tags: [pii, redaction, privacy, secrets]
requires:
- phase: 02-enterprise-controls-and-offline-guardrails
provides: redaction helpers, secret refs, RBAC foundations
provides:
- Deterministic PII recognizer/redactor
- Metadata-only redact... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-04-SUMMARY.md | Markdown | 9eb65c0886537359a85873970b847daac440adcb75f25ce9a7a311eea3f8cbbf | 0 | 589 |
---
phase: 03-provenance-preserving-ingest
plan: 03-05
title: Exact and near deduplication, ingest manifest completion, privacy regression checks, and corpus validation tests
type: tdd
wave: 4
depends_on: [03-03, 03-04]
files_modified:
- src/adapterlab/ingest/dedup.py
- src/adapterlab/ingest/manifest.py
- src/ada... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-05-PLAN.md | Markdown | 0f4883a0265141f43c03217092a836471d295d6d4d9aad63d3725edff5312d3f | 0 | 896 |
corpus validation, socket-blocked `adapterlab ingest --json`, and privacy scans over all final ingest artifacts.</action>
<acceptance_criteria>
- `tests/ingest/test_dedup_manifest.py` asserts exact duplicates share a cluster and only one row has `dedup_keep=true`.
- Tests assert near duplicates receive ... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-05-PLAN.md | Markdown | a701ca4b029caa529c3f8b349e43eb3fdff2ab9679e5a491fff566eab983caf4 | 1 | 896 |
/test_enterprise_outputs.py`
- `tests/ingest/`
- `.planning/phases/03-provenance-preserving-ingest/03-VALIDATION.md`
- `docs/deployment-modes.md`
</read_first>
<action>Update offline and privacy regression tests to include the final ingest command and artifacts. Fix any leakage, hidden network... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-05-PLAN.md | Markdown | 6dbda8056caa4e1ac73610ee58466ec05a6713eb5f6daf31e989694ec9183586 | 2 | 414 |
---
phase: 03-provenance-preserving-ingest
plan: 03-05
subsystem: ingest
tags: [dedup, manifest, no-network, privacy, validation]
requires:
- phase: 03-provenance-preserving-ingest
provides: source, corpus, language, and redaction slices
provides:
- Deterministic exact and near deduplication
- Full ingest pip... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-05-SUMMARY.md | Markdown | 5f83256adcb739c90656b1091980467f1f96bf1ec5619438c98e4dd8f56cc96f | 0 | 728 |
# Phase 3: Provenance-Preserving Ingest - Context
**Gathered:** 2026-05-26
**Status:** Ready for planning
<domain>
## Phase Boundary
Phase 3 delivers the ingest subsystem that turns tenant-controlled source documents into a canonical, privacy-safe corpus. It covers source connector contracts, local representative lo... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-CONTEXT.md | Markdown | dbf5396e5d01a0b9fa231eaeae3e1831bbde6d1c38aa4f263e2a76019613b39a | 0 | 896 |
as metadata, not a control-flow branch. Use BCP-47 tags with confidence at paragraph or chunk granularity, and keep DE/EN/PL/IT/HU as required fixture languages rather than a hardcoded limit.
- **D-12:** Low-confidence language records are routed to quarantine and excluded from training by default. Quarantine evidence ... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-CONTEXT.md | Markdown | 883571c728ca76e29b369503a36d2c56c8cf19837a61881428cc7596ee26f273 | 1 | 896 |
decisions.
- `.planning/REQUIREMENTS.md` - Phase 3 requirement IDs: ING-01 through ING-12 and OPS-09.
- `.planning/ROADMAP.md` - Phase 3 goal, success criteria, dependencies, and planned work items.
- `.planning/STATE.md` - Current project position and known workflow/commit notes.
### Prior Phase Decisions
- `.plannin... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-CONTEXT.md | Markdown | 076b929e28ebfa882ff73749cf7c08a8bd331ec90e1b488902920ef4af47d107 | 2 | 896 |
.py` provide the allowlist/trust evidence model for loaders, PII recognizers, and language detectors.
- `src/adapterlab/security/redaction.py`, `src/adapterlab/observability/`, and related tests provide privacy-safe evidence patterns for logs, audit events, metrics, and experiment metadata.
- `src/adapterlab/cli.py` pr... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-CONTEXT.md | Markdown | 279d3911463ca4ef1a8a9c430eb73d323b28ea3287bc63bec7a9adee86c9b577 | 3 | 617 |
# Phase 3: Provenance-Preserving Ingest - Discussion Log
> **Audit trail only.** Do not use as input to planning, research, or execution agents.
> Decisions are captured in CONTEXT.md - this log preserves the alternatives considered.
**Date:** 2026-05-26
**Phase:** 3-Provenance-Preserving Ingest
**Areas discussed:** ... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-DISCUSSION-LOG.md | Markdown | da541cabedb4fec04530f95110a865128dea025a506f2f0deef9478b2012acae | 0 | 896 |
. | |
| Untracked filtering | Rejected because training inclusion decisions must be auditable. | |
**User's choice:** Auto-selected recommended default: deterministic exact-then-near dedup with evidence.
**Notes:** The implementation can start conservative for tiny fixtures while preserving contracts for MinHash/SimHa... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-DISCUSSION-LOG.md | Markdown | 650e5bb4b01d1a22e0d5c0d3412d243822bb6cf2c8830495185a461c8b815dc3 | 1 | 147 |
# Phase 03 - Pattern Map
## Codebase State
Phase 3 builds on a compact SDK-first package with these relevant established areas:
- `src/adapterlab/cli.py` owns Typer command wiring, JSON flag handling, error mapping, and command result rendering.
- `src/adapterlab/contracts/*` owns strict Pydantic contracts and deter... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-PATTERNS.md | Markdown | 1b7f4dfc17adc11277ad4b78bd691163baa14bc299f9045554cfc4e80f6eb147 | 0 | 866 |
# Phase 3: Provenance-Preserving Ingest - Research
## RESEARCH COMPLETE
**Question answered:** What needs to be known to plan Phase 3 well?
## Scope Summary
Phase 3 creates the ingest subsystem that turns tenant-controlled files and connector-backed exports into a canonical redacted corpus. The phase must extend th... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-RESEARCH.md | Markdown | 138887effc23d7b574470f3ccf3a73e58b3e2f9420c4b253489cec2c5ef3b3ad | 0 | 896 |
and Fixtures
- Run exact dedup before near-duplicate clustering. Exact dedup can use normalized text hashes. Near dedup can start with a deterministic fixture-scale implementation while preserving MinHash/SimHash-style extension points.
- Dedup decisions must be auditable. Corpus rows need cluster IDs and keep flags; ... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-RESEARCH.md | Markdown | a01112e8b9a72f67f1f3c2c1cacf6c14632dba975108742bb1d1a3e81c567c68 | 1 | 679 |
---
phase: 03
slug: provenance-preserving-ingest
status: verified
nyquist_compliant: true
wave_0_complete: true
created: 2026-05-26
---
# Phase 03 - Validation Strategy
> Per-phase validation contract for feedback sampling during execution.
---
## Test Infrastructure
| Property | Value |
|----------|-------|
| **F... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-VALIDATION.md | Markdown | 64990f59be50643beb0678dd2f4c0432f7844eee081863548912278d22f32ac0 | 0 | 896 |
files.*
---
## Wave 0 Requirements
- [x] `tests/ingest/` exists before first ingest tests are added.
- [x] Tiny sanitized fixture corpus exists for DE/EN/PL/IT/HU.
- [x] Privacy sentinel strings are centralized and never written to evidence outputs.
- [x] Ingest contract schemas are exported and included in schema d... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-VALIDATION.md | Markdown | ed50516b7e04a2f49a7c7b44f5a5d2a674123afbaf3a2d2b10d8b690cb23b911 | 1 | 245 |
---
phase: 03-provenance-preserving-ingest
status: passed
created: 2026-05-26
verified_commit: 53d4303
requirements:
accounted_for:
- ING-01
- ING-02
- ING-03
- ING-04
- ING-05
- ING-06
- ING-07
- ING-08
- ING-09
- ING-10
- ING-11
- ING-12
- OPS-09
human_verificatio... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-VERIFICATION.md | Markdown | 751cccbb2893958d36da93fc8230bdc1c324288ffc5ae7096856c775ec0d4eb0 | 0 | 896 |
.yaml --dry-run --json`
- Result: passed; reported 8 sources and 8 loaders without writing corpus artifacts.
- `uv run adapterlab ingest --config tests/fixtures/ingest/source.yaml --json`
- Result: passed; wrote content-addressed `corpus.parquet` and `ingest.manifest.json` refs and aggregate language/dedup stats.
... | adapter-lab | .planning/phases/03-provenance-preserving-ingest/03-VERIFICATION.md | Markdown | 0148ecc84de698b3c9c5e65132dea4a085818391a7d72da406ebd33e9591e07b | 1 | 173 |
---
phase: 04-synthetic-dataset-generation
plan: 04-01
title: Synthesis config, strategy protocol, canonical dataset schemas, source provenance, and license fields
type: tdd
wave: 1
depends_on: []
files_modified:
- src/adapterlab/contracts/synthesis.py
- src/adapterlab/contracts/schema_export.py
- src/adapterlab/... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-01-PLAN.md | Markdown | 47d84ad198001631ffa56bfb35d4ac2d44fdd9b2671c053bd7456c23ad4e6799 | 0 | 896 |
-LOSS | medium | SFT/preference records and model refs include license fields that later manifests and model cards can preserve. |
</threat_model>
<tasks>
<task id="04-01-01" type="red">
<name>Add failing synthesis contract and config tests</name>
<read_first>
- `.planning/phases/04-synthetic-dataset-g... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-01-PLAN.md | Markdown | a975d5fc461406b2b8c1d1ee650533113d71493c8a4e85ed923320eab0c643ee | 1 | 896 |
`.
- `SynthManifest` includes inputs, configs, strategies, models, filters, outputs, canaries, seeds, license metadata, egress decisions, and plugin evidence.
- `uv run pytest tests/contracts/test_synthesis_models.py tests/contracts/test_schema_exports.py -q` exits 0.
</acceptance_criteria>
<verify>... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-01-PLAN.md | Markdown | 43df31ba64035c1dd94f9f0ed0a7c0755dcd63b0a1a2cb0f96f0399ffab82b39 | 2 | 881 |
---
phase: 04-synthetic-dataset-generation
plan: 04-01
subsystem: contracts
tags: [pydantic, schemas, synthesis, jsonl, config]
requires:
- phase: 03-provenance-preserving-ingest
provides: canonical corpus and ingest manifest contracts consumed by synthesis
provides:
- Strict synthesis config, dataset record, m... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-01-SUMMARY.md | Markdown | c58d54e6041b6830202a962a883c29427bdc1d15eaab28121ea76e064ad038ae | 0 | 896 |
-gated destinations.
- Kept dataset rows as simple JSONL-oriented Pydantic records while preserving adapter-lab provenance fields.
- Added `synth.yaml` to init scaffolding and validates it through the same contract-validation path as existing templates.
## Deviations from Plan
None - plan executed exactly as written.... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-01-SUMMARY.md | Markdown | b6c8d7d7feec256b32fe3b2f39c4c6f5f1844f30076e09bd0d2ced40534b210f | 1 | 203 |
---
phase: 04-synthetic-dataset-generation
plan: 04-02
title: Grounded Bonito-compatible, Magpie-style, Self-Instruct-compatible, and human-seed strategy implementations
type: tdd
wave: 2
depends_on: [04-01]
files_modified:
- src/adapterlab/synthesis/records.py
- src/adapterlab/synthesis/strategies.py
- src/adapt... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-02-PLAN.md | Markdown | 2b127d22b0f3438d7b75d8bfb5e10fc2e157602e005495e8dc4f44f55761fca1 | 0 | 896 |
>Create failing tests for corpus row loading, SFT JSONL serialization, deterministic Bonito-compatible, Magpie-style, Self-Instruct-compatible, and human-seed strategy outputs, pipeline artifact writes, and `adapterlab synthesize --config PATH --json` output.</action>
<acceptance_criteria>
- `tests/synthesis/... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-02-PLAN.md | Markdown | b3cc6a004f64b4c28d86de241f8d55a38d4379e945b648c4d6b79adcd63e528e | 1 | 896 |
`self_instruct`, and `human_seed`.
- `uv run pytest tests/synthesis/test_strategies.py -q` exits 0.
</acceptance_criteria>
<verify>uv run pytest tests/synthesis/test_strategies.py -q</verify>
</task>
<task id="04-02-04" type="refactor">
<name>Wire SFT pipeline and synthesize CLI</name>
<read_... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-02-PLAN.md | Markdown | a0c752911df320b823cf7c2e6a7d8b3f675b53f4f80d98b80fdd29ccc325a4ee | 2 | 636 |
---
phase: 04-synthetic-dataset-generation
plan: 04-02
subsystem: synthesis
tags: [jsonl, corpus, strategies, cli, artifacts]
requires:
- phase: 04-synthetic-dataset-generation
provides: synthesis contracts and config loader from 04-01
provides:
- Deterministic built-in SFT strategies
- Content-addressed SFT ... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-02-SUMMARY.md | Markdown | 881af6226f70e7dceee29e8d2bac329b1d9f2a329292d2e505e113c9fdce0420 | 0 | 896 |
test_pipeline.py tests/cli/test_synthesis_cli.py -q` passed.
- `uv run ruff check src/adapterlab/synthesis src/adapterlab/cli.py tests/synthesis tests/cli/test_synthesis_cli.py` passed.
---
*Phase: 04-synthetic-dataset-generation*
*Completed: 2026-05-26*
| adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-02-SUMMARY.md | Markdown | 913cf554b44bd9c6cdd2f64a7a60cbe2823a27df0b6ea43633c9138adcb74025 | 1 | 69 |
---
phase: 04-synthetic-dataset-generation
plan: 04-03
title: Preference-pair generation, teacher and judge model resolution, egress-policy integration, and quality filter pipeline
type: tdd
wave: 3
depends_on: [04-01, 04-02]
files_modified:
- src/adapterlab/synthesis/models.py
- src/adapterlab/synthesis/filters.py... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-03-PLAN.md | Markdown | 563f9db340021a2495a16b3bda07fddcedb4ec14e9d0246ca31f691c71ac2928 | 0 | 896 |
/threat_model>
<tasks>
<task id="04-03-01" type="red">
<name>Add failing model resolver, filter, and preference tests</name>
<read_first>
- `.planning/phases/04-synthetic-dataset-generation/04-CONTEXT.md`
- `src/adapterlab/contracts/synthesis.py`
- `src/adapterlab/policy/egress.py`
- ... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-03-PLAN.md | Markdown | e858d69707f336fc07f7c84b363d58d21c4e703be104cc73234beb0678a2cf8a | 1 | 896 |
language consistency, length bounds, repetition, toxicity placeholder, canary leakage marker checks, reward threshold, schema validation, and duplicate fingerprint checks. Return updated accepted/rejected records plus `QualityFilterResult` evidence with deterministic order and privacy-safe reason codes.</action>
<a... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-03-PLAN.md | Markdown | 1981dc69c2f4c91fa2819e7239107f956ca7955d1393d962f887c7495542e200 | 2 | 688 |
---
phase: 04-synthetic-dataset-generation
plan: 04-03
subsystem: synthesis
tags: [preference-data, egress-policy, filters, jsonl]
requires:
- phase: 04-synthetic-dataset-generation
provides: synthesis contracts, config loader, strategies, and pipeline from 04-01 and 04-02
provides:
- Local-first synthesis mode... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-03-SUMMARY.md | Markdown | e9f3ef6098cd0db1d0743fa89be0592593d0bb84c0ca658708b6be7e5da08a2d | 0 | 896 |
no external provider or network configuration required.
## Next Phase Readiness
Plan 04-04 can complete canary tracking, manifest output, and privacy/offline verification on top of the now-filtered synthesis pipeline.
## Self-Check: PASSED
- `uv run pytest tests/synthesis/test_model_resolution.py tests/synthesis/te... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-03-SUMMARY.md | Markdown | 6bd5b988b8dba0132a31d1febe28f08f0ed01246e0226fa83c10cd0c6481dc78 | 1 | 132 |
---
phase: 04-synthetic-dataset-generation
plan: 04-04
title: Canary handling, synth manifests, deterministic tests, and privacy-safe report/bundle guarantees
type: tdd
wave: 4
depends_on: [04-01, 04-02, 04-03]
files_modified:
- src/adapterlab/synthesis/canary.py
- src/adapterlab/synthesis/manifest.py
- src/adapt... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-04-PLAN.md | Markdown | 3edc8c098cafa7213bc727eb764cc94aa63c8284362a7bc28b95671d026f6610 | 0 | 896 |
adapterlab/ingest/manifest.py`
- `tests/privacy/test_enterprise_outputs.py`
- `tests/offline/test_no_network.py`
</read_first>
<action>Create failing tests for hashed canary evidence, optional protected insertion, complete `SynthManifest` assembly, manifest artifact writes, deterministic reruns, pri... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-04-PLAN.md | Markdown | 3e7a24c84aa1f786b44d6c408a7eb5d7f655b8056ed335103bd7b47bd07023a5 | 1 | 896 |
a serialized `ArtifactRef`.
- Manifest outputs include keys `sft` when SFT records exist, `pref` when preference records exist, and `manifest` in CLI result data.
- Manifest `inputs` include the corpus ref and optional ingest manifest ref.
- Manifest `seeds` includes configured seed `1234` in the fixt... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-04-PLAN.md | Markdown | 3eb085eb41a1a1c3fb4d6287da261180ee051a671e37b4179d8e767c5ac65fbb | 2 | 656 |
---
phase: 04-synthetic-dataset-generation
plan: 04-04
subsystem: synthesis
tags: [canaries, manifests, privacy, offline, verification]
requires:
- phase: 04-synthetic-dataset-generation
provides: filtered SFT and preference synthesis pipeline from 04-01 through 04-03
provides:
- Hashed synthesis canary evidenc... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-04-SUMMARY.md | Markdown | bff069e6150f578249eccb5b7d3b0928c06894c427247c075aa0ffcf870e2138 | 0 | 896 |
after copying the needed corpus blob into the synthesis fixture store.
## User Setup Required
None - fixture synthesis runs entirely from local files.
## Next Phase Readiness
Phase 5 can consume `sft_ref`, optional `pref_ref`, and `manifest_ref` as stable stage-boundary inputs.
## Self-Check: PASSED
- `uv run pyt... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-04-SUMMARY.md | Markdown | 18d06835e6a0223f4ebbc1f55d774226344b446243c625bbd8952606e5e0455a | 1 | 174 |
# Phase 4: Synthetic Dataset Generation - Context
**Gathered:** 2026-05-26
**Status:** Ready for planning
<domain>
## Phase Boundary
Phase 4 delivers the synthesis subsystem that turns immutable Phase 3 `corpus.parquet` outputs into canonical instruction-tuning and preference datasets. It covers `synth.yaml`, strate... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-CONTEXT.md | Markdown | caa3df790924816f709baca30f10e92cc27f313330ed323d4be72cb2a1a2a3c1 | 0 | 896 |
teacher models resolve from local artifact refs by default. Airgapped mode must refuse synthesis-time public fetches and implicit library downloads.
- **D-12:** Restricted mode may resolve tenant internal mirrors or services only through the existing egress policy service; connected mode may use public or closed/API te... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-CONTEXT.md | Markdown | 3c78870c650c62ffb2473bfcc2285d9654a866856a796b0a8c5d85866870e3d9 | 1 | 896 |
synthesis artifacts use `ArtifactRef` through the local content-addressed store. Manifests reference artifacts by digest, size, media type, backend, and key rather than mutable paths alone.
- **D-27:** Licensing metadata must travel from source corpus and generator/model refs into output records and the manifest, so la... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-CONTEXT.md | Markdown | 89084480f69b4f2cc03be0a17a00c60dae88c58fbbd8c239f098d3f1433dbc3f | 2 | 896 |
, redaction, dedup, and `IngestManifest` contracts that synthesis consumes.
- `src/adapterlab/ingest/pipeline.py` - Existing SDK pipeline structure and artifact-store usage for a stage command.
- `src/adapterlab/ingest/manifest.py` - Manifest assembly pattern for stage-specific manifests with aggregate privacy-safe sta... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-CONTEXT.md | Markdown | fde2990e936ba260ffb66c06a8e96b50dd9ee9a1c31046cb1732b397432b0c31 | 3 | 896 |
src/adapterlab/contracts/` and schema exports under `schemas/`.
- Add synthesis services under a new `src/adapterlab/synthesis/` or `src/adapterlab/synth/` package, keeping config loading, corpus reading, strategy execution, filtering, canary handling, output writing, and manifest assembly separable behind typed contra... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-CONTEXT.md | Markdown | f42e6ea692e93cfbc01e95085c7be7880650ce57fb170a3bb510d67c479ff37c | 4 | 484 |
# Phase 4: Synthetic Dataset Generation - Discussion Log
> **Audit trail only.** Do not use as input to planning, research, or execution agents.
> Decisions are captured in CONTEXT.md — this log preserves the alternatives considered.
**Date:** 2026-05-26
**Phase:** 4-Synthetic Dataset Generation
**Areas discussed:** ... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-DISCUSSION-LOG.md | Markdown | e4c4df1bcbfe63f5a8e4eb9f9d5392917476ee66979944549d6dbcc6f1f28d2c | 0 | 896 |
---
## Canary and Privacy Handling
| Option | Description | Selected |
|--------|-------------|----------|
| Hashed canary evidence with protected dataset insertion | Allows later verification while keeping cleartext canaries out of manifests, logs, reports, dashboards, and bundles. | ✓ |
| Cleartext canary metadata ... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-DISCUSSION-LOG.md | Markdown | c1e661a56d0ea7a09e2a42966a163281344f7bb75db688c9204e7fb84ccceb39 | 1 | 479 |
# Phase 04 - Pattern Map
## Codebase State
Phase 4 builds on a compact SDK-first Python package with a completed ingest stage:
- `src/adapterlab/cli.py` owns Typer command wiring, JSON flag handling, error mapping, and command result rendering.
- `src/adapterlab/contracts/*` owns strict Pydantic contracts and determ... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-PATTERNS.md | Markdown | 1da44d4cfe1d2cf1a8cf8c0a8f3629c67146ae5d797f3bf72704b0e1ba512e08 | 0 | 896 |
Typer app, `--json`, `CommandResult`, stderr errors |
| Privacy tests | `tests/privacy/test_enterprise_outputs.py` | Sentinel scan pattern |
| Offline tests | `tests/offline/test_no_network.py` | Socket-blocking fixture pattern |
## Planning Notes
- Keep the four roadmap plans aligned to the synthesis pipeline while ... | adapter-lab | .planning/phases/04-synthetic-dataset-generation/04-PATTERNS.md | Markdown | 051634620ff5458a4a29183a836963c2b275da80487cc813069157c781b9202b | 1 | 142 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.