feat: data-research-toolbox automation controls#11
Merged
Conversation
Add the critical missing controls for the data-research-toolbox-automation capability (OpenSpec fleet-automation-closure): - refresh_manifest.py: structured manifest with source watermark, bounds, timeout, idempotency, retries, output counts, quality signal, freshness, and durable failure state. Zero output where non-zero is expected fails quality verification and does not advance freshness. - warm_update.py: records each overlay step (enrich_citations, refresh_abstracts, build_author_graph, export_ch, web_build) into the manifest. - activation.py: privacy-safe Foundry emission (search_outcome, result_inspection, saved_action). No query text, paper IDs, or user IDs. - api.py /healthz: structured build/live/revision/errors/latency/CH reachability/last-refresh-watermark evidence. - web/functions/api/health.ts: public Pages health with independent surfaces.landing / surfaces.search / surfaces.rag. - Docs: data-map.md, refresh-manifest.md, foundry.md, experiments.md. - Tests: test_refresh_manifest.py (quality-gate scenarios); test_api_smoke.py updated for new healthz shape. No corpus expansion, ranking rewrite, paid data, migration, or deploy. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the
data-research-toolbox-automationcapability from the fleet-automation-closure OpenSpec store — critical missing controls for refresh lifecycle, search activation evidence, public/API health, Foundry sanitization, and bounded experiments.refresh_manifest.py— structured manifest (source watermark, bounds, timeout, idempotency, retries, output counts, quality signal, freshness, durable failure state). Zero output where non-zero is expected fails quality verification and does NOT advance freshness.warm_update.py— records each overlay step (enrich_citations,refresh_abstracts,build_author_graph,export_ch,web_build) intodata/refresh-manifest.json.activation.py— privacy-safe Foundry emission (search_outcome,result_inspection,saved_action). No query text, paper IDs, or user IDs.api.py /healthz— structured build/live/revision/errors/latency/CH reachability/last-refresh-watermark (was{ok: true}).web/functions/api/health.ts— new public Pages health Function with independentsurfaces.landing/surfaces.search/surfaces.ragso a live landing cannot conceal broken search./search,/semantic-search,/papers/{paper_id}.data-map.md,refresh-manifest.md,foundry.md,experiments.md+ ops index.Non-goals (per spec)
No corpus expansion, ranking rewrite, paid data, production migration, automatic deploy, or promotion to My Work.
Test plan
uv run pytest— 35 passed, 17 skipped (golden needsGOLDEN_RAG_URL)./scripts/check-docs.sh— docs validation OKtest_refresh_manifest.pycovers the quality-gate scenario (zero output does not advance freshness)test_api_smoke.pyupdated for new structured/healthzshape/healthzand Pages/api/healthprobe against production (task 3.2)Generated with Devin