Add Governed Form Filling doctrine (CERFA + any form, modular skills)#44
Draft
ifanjuang wants to merge 1 commit into
Draft
Add Governed Form Filling doctrine (CERFA + any form, modular skills)#44ifanjuang wants to merge 1 commit into
ifanjuang wants to merge 1 commit into
Conversation
67a3c8c to
0c393f1
Compare
Generic governed filling of any structured document from dossier records and authorized sources. Obtain the template itself: provided library, a curated whitelist of template sites, or discovery; handle any format (docx/pdf, fielded or flat) where a flat template needs a verified, reusable field map; confirm current official version (e.g. public-procurement DC/ATTRI/EXE families). Each field is a claim (value + status + source + date); per-field resolution loop with fallback (known -> source A -> source B -> ask). Guardrails: entity verification, dated regulatory sources, no submission/signature, scope isolation, pre-transmission minimization, resumable save. Cross-field consistency; governed reuse of confirmed facts across documents (to_reconfirm / superseded); completeness/readiness summary (described, never asserted); failure/unavailability handling. Modular decomposition into reusable skills (classify-document, fetch-form-template, resolve-known, retrieve-source, verify-entity, fill-fields, raise-doubt, render-annotated, save-provenance) as a fan-out-then-synthesis composition; skills never call each other. Method only; readers, fillers and connectors are adapters outside Pantheon. Concrete catalogues and template-site lists live dated in domain packs. https://claude.ai/code/session_01UDCR8Dmp16xpFnwqJwsrPH
0c393f1 to
ca76988
Compare
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.
Why
User's first concrete example: from a project database, prepare a required document (a CERFA — permis de construire, déclaration préalable, autorisation de travaux ERP, permis d'aménager — or any administrative form). Find which one, where to look, retrieve, verify, fill what is certain, ask when in doubt, document every value's source, save, and produce a downloadable annotated draft. Then: make it modular / several skills.
What
docs/governance/GOVERNED_FORM_FILLING.md— generic governed filling of any structured document:known/retrieved/inferred/unverified/entity_to_confirm/conflicting) + source + date. Rendered as inline "to verify / to fill" comments.classify-document,resolve-known,retrieve-source,verify-entity,fill-fields,raise-doubt,render-annotated,save-provenance— each a manifest + envelope, never calling each other, returning candidates, degrading gracefully. Fan-out-then-synthesis topology; the composition is a Workflow Manifest, not a runtime.CERFA is the first cited instance; the rule is generic for any administrative form.
Placement
Method + field discipline in Pantheon. The whitelist of concrete sources lives in
EXTERNAL_TOOLS_POLICY.md; retrieval, entity check, PDF fill and contact sync are adapters outside Pantheon. Doubts surface viaUSER_DECISION_GATE/REVIEW_QUEUE; provenance saved viaCORE_RECORDS_MODEL(#43).Indexing
MODULES.mdandAUTHORITY_INDEX.mdupdated here.STATUS.md/README.mdto index when #42 lands.Boundary
Documentation only. No form filler, PDF writer, OCR, scraper, API connector, contact sync or runtime. Submission and signature remain human. CI lint verified locally (0 failures).
https://claude.ai/code/session_01UDCR8Dmp16xpFnwqJwsrPH
Generated by Claude Code