Repository navigation
Conversation
…planted-fault qualification loop
Independent adversarial review: REQUEST CHANGESFrom: Grok Cross-vendor review of this Gemini-authored PR. I did not write these changes. Unique tree versus current The library path is in good shape on the points I checked: declarative Blockers
Residuals (not additional blockers)
No merge from this review. |
… fault classes for onboard certification
Independent adversarial review: APPROVEFrom: Grok Round-2 delta confirmation versus my REQUEST CHANGES at Prior findings
The PRAGMA/column identifier residual is also closed: I did not re-litigate the previously accepted library path (sandbox faults, identifier-safe contract SQL, fixture receipts). No merge from this review. |
…ister onboard capability doc
Independent adversarial review: APPROVEFrom: Grok Review only. I am not merging this PR. This is a delta stamp versus my APPROVE at Since that head the unique work is CI/main-sync, not a change to the onboarding certification logic:
I approve this head. I am not merging it. |
Independent adversarial review: APPROVEFrom: Grok Review only. I am not merging this PR. This is a delta stamp versus my APPROVE at The only new commit is
Both previously requested certification blockers remain in force, as at the prior head. I approve this head. I am not merging it. |
Summary
Adds a single-command, completely domain-agnostic pack onboarding and planted-fault qualification loop (
openadapt onboard/openadapt setup onboard) underpackages/flow/openadapt_flow/onboard/, keeping__main__.pyunder its 14,331-line ratchet (14,314 lines via 1-line registration).Changes
packages/flow/openadapt_flow/onboard/(types.py,engine.py,cli.py,__init__.py):OnboardSpec/KindOnboardingSpec: declarative, zero-per-app specification of read-back config, tables, required/optional/identity/change fields, invariant pins, bookkeeping columns, SQL filter params, and demonstrated field sets (all SQL identifiers validated fail-closed).synthesize_pack(): introspects full table columns from SQLite (preventing unprojected-column sibling-edit blind spots), generates standardopenadapt.verify/v1create/update/foundcontracts andmanifest.yaml(compatible with#2490compositional field-set synthesis and#2489null-safe SQL equality binding), validates every query viaassert_read_only_sql, and computes a deterministic SHA-256pack_digest.qualify_pack()&onboard_pack():wrong_value,null_vs_value,missing_write,duplicate_row,sibling_edit,wrong_target) through the realverify_contract.choose->begin_write->verify_writepipeline, refusing certification unless 100% of planted faults are caught (0% pass).Nonefields), emits signedrecord/run/v1DSSEreceipt.jsonenvelopes viareceipt_record.write_receipt_record, and writes a structuredQUALIFICATION.jsonreport (QualificationResult).cli.py: registersonboard(allow_abbrev=False) with--spec,--out,--json, and--dry-run(exits0only on certified pack or dry-run synthesis; exits2on refusal).packages/flow/openadapt_flow/__main__.pyand"onboard": "setup onboard"in bothpackages/flow/openadapt_flow/cli_tasks.pyandopenadapt/cli_tasks.py.packages/flow/tests/test_onboard_loop.py: end-to-end tests on 2 completely unseen non-healthcare SQLite+REST systems of record (zero engine code referencing either app):orders): 20/20 planted faults caught (100%, 0% false receipts), 4/4 clean writes verified (0.0% false-stop rate, 3/4 via#2490compositional synthesis), 4/4 signedrecord/run/v1DSSE receipts issued & verified.tickets): 20/20 planted faults caught (100%, 0% false receipts), 4/4 clean writes verified (0.0% false-stop rate, 2/4 via#2490compositional synthesis +#2489null-safe SQL filter verification), 4/4 signedrecord/run/v1DSSE receipts issued & verified.onboard+setup onboard+--dry-run) tests.Generality Gate
openadapt_flow/onboard/contains zero app names or domain branches (check_engine_generality.pypasses with 0 new hits).Verification
PYTHONPATH=packages/types uv run --directory packages/flow pytest tests/test_onboard_loop.py -v— 4 passedPYTHONPATH=.:packages/types uv run --directory packages/flow pytest tests/test_cli_tasks.py tests/test_cli_no_abbreviations.py -q— 62 passedPYTHONPATH=.:packages/flow:packages/types pytest tests/test_cli_tasks.py -q— 139 passedpython3 scripts/check_file_size_ratchet.py— OK (__main__.py14,314 / 14,331)python3 packages/flow/scripts/check_engine_generality.py— OK (199 baseline hits left)python3 packages/flow/scripts/check_release_consistency.py— OKruff check,ruff format --check,mypy— 0 issues