fde-framework 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fde_framework-0.1.0/.gitignore +31 -0
- fde_framework-0.1.0/CHANGELOG.md +90 -0
- fde_framework-0.1.0/LICENSE +202 -0
- fde_framework-0.1.0/PKG-INFO +449 -0
- fde_framework-0.1.0/README.md +412 -0
- fde_framework-0.1.0/examples/invoice-extraction/README.md +88 -0
- fde_framework-0.1.0/framework/approaches/ansible-playbook.md +22 -0
- fde_framework-0.1.0/framework/approaches/assisted-deterministic.md +37 -0
- fde_framework-0.1.0/framework/approaches/audit-only.md +23 -0
- fde_framework-0.1.0/framework/approaches/boundary-and-audit.md +18 -0
- fde_framework-0.1.0/framework/approaches/cascade.md +32 -0
- fde_framework-0.1.0/framework/approaches/classical-ml.md +21 -0
- fde_framework-0.1.0/framework/approaches/compose.md +18 -0
- fde_framework-0.1.0/framework/approaches/decision-log.md +21 -0
- fde_framework-0.1.0/framework/approaches/deterministic-masking.md +18 -0
- fde_framework-0.1.0/framework/approaches/deterministic.md +25 -0
- fde_framework-0.1.0/framework/approaches/direct-call.md +10 -0
- fde_framework-0.1.0/framework/approaches/episodic-store.md +17 -0
- fde_framework-0.1.0/framework/approaches/explainability-record.md +14 -0
- fde_framework-0.1.0/framework/approaches/field-match.md +15 -0
- fde_framework-0.1.0/framework/approaches/finetune.md +29 -0
- fde_framework-0.1.0/framework/approaches/fixed-sequence.md +19 -0
- fde_framework-0.1.0/framework/approaches/gitops.md +18 -0
- fde_framework-0.1.0/framework/approaches/governed-tools.md +18 -0
- fde_framework-0.1.0/framework/approaches/graph-retrieval.md +22 -0
- fde_framework-0.1.0/framework/approaches/judged.md +15 -0
- fde_framework-0.1.0/framework/approaches/keyword-search.md +11 -0
- fde_framework-0.1.0/framework/approaches/kubernetes-manifests.md +19 -0
- fde_framework-0.1.0/framework/approaches/labelled-metrics.md +14 -0
- fde_framework-0.1.0/framework/approaches/llm-extraction.md +26 -0
- fde_framework-0.1.0/framework/approaches/llm-scrubbing.md +20 -0
- fde_framework-0.1.0/framework/approaches/llm.md +23 -0
- fde_framework-0.1.0/framework/approaches/local-embedding.md +28 -0
- fde_framework-0.1.0/framework/approaches/managed-api.md +49 -0
- fde_framework-0.1.0/framework/approaches/managed-embedding.md +22 -0
- fde_framework-0.1.0/framework/approaches/manual-runbook.md +32 -0
- fde_framework-0.1.0/framework/approaches/model-planner.md +19 -0
- fde_framework-0.1.0/framework/approaches/ocr-pipeline.md +13 -0
- fde_framework-0.1.0/framework/approaches/optimisation-reasoning.md +30 -0
- fde_framework-0.1.0/framework/approaches/optimisation.md +19 -0
- fde_framework-0.1.0/framework/approaches/passthrough.md +11 -0
- fde_framework-0.1.0/framework/approaches/role-scoped-authority.md +19 -0
- fde_framework-0.1.0/framework/approaches/segmentation.md +29 -0
- fde_framework-0.1.0/framework/approaches/self-hosted.md +38 -0
- fde_framework-0.1.0/framework/approaches/serverless-gpu.md +27 -0
- fde_framework-0.1.0/framework/approaches/speech-transcription.md +21 -0
- fde_framework-0.1.0/framework/approaches/structured-logs.md +11 -0
- fde_framework-0.1.0/framework/approaches/systemd-unit.md +30 -0
- fde_framework-0.1.0/framework/approaches/terraform-module.md +22 -0
- fde_framework-0.1.0/framework/approaches/text-extraction.md +14 -0
- fde_framework-0.1.0/framework/approaches/traced.md +24 -0
- fde_framework-0.1.0/framework/approaches/vector-search.md +17 -0
- fde_framework-0.1.0/framework/approaches/video-ingestion.md +16 -0
- fde_framework-0.1.0/framework/approaches/windowed-ingestion.md +25 -0
- fde_framework-0.1.0/framework/approaches/working-state.md +13 -0
- fde_framework-0.1.0/framework/cases/churn-scoring.md +45 -0
- fde_framework-0.1.0/framework/cases/route-planning.md +44 -0
- fde_framework-0.1.0/framework/cases/structured-extraction.md +48 -0
- fde_framework-0.1.0/framework/cases/studio-style.md +46 -0
- fde_framework-0.1.0/framework/components/accountability.md +20 -0
- fde_framework-0.1.0/framework/components/deployment.md +19 -0
- fde_framework-0.1.0/framework/components/embedding.md +23 -0
- fde_framework-0.1.0/framework/components/evaluation.md +13 -0
- fde_framework-0.1.0/framework/components/governance.md +19 -0
- fde_framework-0.1.0/framework/components/integration.md +13 -0
- fde_framework-0.1.0/framework/components/memory.md +21 -0
- fde_framework-0.1.0/framework/components/observability.md +13 -0
- fde_framework-0.1.0/framework/components/perception.md +15 -0
- fde_framework-0.1.0/framework/components/planning.md +15 -0
- fde_framework-0.1.0/framework/components/provisioning.md +17 -0
- fde_framework-0.1.0/framework/components/reasoning.md +20 -0
- fde_framework-0.1.0/framework/components/redaction.md +18 -0
- fde_framework-0.1.0/framework/components/representation.md +13 -0
- fde_framework-0.1.0/framework/components/retrieval.md +13 -0
- fde_framework-0.1.0/framework/components/serving.md +20 -0
- fde_framework-0.1.0/framework/dimensions/accelerator.md +29 -0
- fde_framework-0.1.0/framework/dimensions/access_model.md +25 -0
- fde_framework-0.1.0/framework/dimensions/arrival_rate.md +19 -0
- fde_framework-0.1.0/framework/dimensions/availability_target.md +23 -0
- fde_framework-0.1.0/framework/dimensions/cheap_path_coverage.md +21 -0
- fde_framework-0.1.0/framework/dimensions/confidence_calibrated.md +30 -0
- fde_framework-0.1.0/framework/dimensions/container_competence.md +22 -0
- fde_framework-0.1.0/framework/dimensions/corpus_size.md +13 -0
- fde_framework-0.1.0/framework/dimensions/data_residency.md +36 -0
- fde_framework-0.1.0/framework/dimensions/environment_lifetime.md +19 -0
- fde_framework-0.1.0/framework/dimensions/existing_cluster.md +22 -0
- fde_framework-0.1.0/framework/dimensions/existing_iac_tool.md +25 -0
- fde_framework-0.1.0/framework/dimensions/external_systems.md +15 -0
- fde_framework-0.1.0/framework/dimensions/hosting.md +45 -0
- fde_framework-0.1.0/framework/dimensions/human_waiting.md +41 -0
- fde_framework-0.1.0/framework/dimensions/input_format.md +29 -0
- fde_framework-0.1.0/framework/dimensions/interpretability_required.md +24 -0
- fde_framework-0.1.0/framework/dimensions/labelled_count.md +15 -0
- fde_framework-0.1.0/framework/dimensions/latency_budget_ms.md +16 -0
- fde_framework-0.1.0/framework/dimensions/licence_posture.md +28 -0
- fde_framework-0.1.0/framework/dimensions/operates_after_handover.md +25 -0
- fde_framework-0.1.0/framework/dimensions/output_shape.md +29 -0
- fde_framework-0.1.0/framework/dimensions/provisioning_api.md +18 -0
- fde_framework-0.1.0/framework/dimensions/query_pattern.md +25 -0
- fde_framework-0.1.0/framework/dimensions/recall_span.md +22 -0
- fde_framework-0.1.0/framework/dimensions/sensitivity_present.md +22 -0
- fde_framework-0.1.0/framework/interfaces/Generator.md +5 -0
- fde_framework-0.1.0/framework/interfaces/Guard.md +5 -0
- fde_framework-0.1.0/framework/interfaces/Mapper.md +5 -0
- fde_framework-0.1.0/framework/interfaces/ModelServer.md +5 -0
- fde_framework-0.1.0/framework/interfaces/Parser.md +5 -0
- fde_framework-0.1.0/framework/interfaces/Planner.md +5 -0
- fde_framework-0.1.0/framework/interfaces/Retriever.md +5 -0
- fde_framework-0.1.0/framework/interfaces/Scorer.md +5 -0
- fde_framework-0.1.0/framework/interfaces/Store.md +5 -0
- fde_framework-0.1.0/framework/interfaces/ToolBoundary.md +5 -0
- fde_framework-0.1.0/framework/interfaces/Tracer.md +5 -0
- fde_framework-0.1.0/framework/locales/eu-gdpr.md +51 -0
- fde_framework-0.1.0/framework/locales/in-dpdp.md +46 -0
- fde_framework-0.1.0/framework/patterns/ansible-playbook.md +9 -0
- fde_framework-0.1.0/framework/patterns/assisted-deterministic.md +11 -0
- fde_framework-0.1.0/framework/patterns/audit-only.md +9 -0
- fde_framework-0.1.0/framework/patterns/boundary-and-audit.md +12 -0
- fde_framework-0.1.0/framework/patterns/cascade-reasoning.md +10 -0
- fde_framework-0.1.0/framework/patterns/cascade-representation.md +10 -0
- fde_framework-0.1.0/framework/patterns/cascade-retrieval.md +10 -0
- fde_framework-0.1.0/framework/patterns/classical-ml-reasoning.md +15 -0
- fde_framework-0.1.0/framework/patterns/classical-ml.md +13 -0
- fde_framework-0.1.0/framework/patterns/compose.md +9 -0
- fde_framework-0.1.0/framework/patterns/decision-log.md +9 -0
- fde_framework-0.1.0/framework/patterns/deterministic-masking.md +9 -0
- fde_framework-0.1.0/framework/patterns/deterministic.md +12 -0
- fde_framework-0.1.0/framework/patterns/direct-call.md +12 -0
- fde_framework-0.1.0/framework/patterns/episodic-store.md +13 -0
- fde_framework-0.1.0/framework/patterns/explainability-record.md +9 -0
- fde_framework-0.1.0/framework/patterns/field-match.md +12 -0
- fde_framework-0.1.0/framework/patterns/finetune-representation.md +14 -0
- fde_framework-0.1.0/framework/patterns/finetune.md +12 -0
- fde_framework-0.1.0/framework/patterns/fixed-sequence.md +12 -0
- fde_framework-0.1.0/framework/patterns/gitops.md +9 -0
- fde_framework-0.1.0/framework/patterns/governed-tools.md +13 -0
- fde_framework-0.1.0/framework/patterns/graph-retrieval.md +14 -0
- fde_framework-0.1.0/framework/patterns/judged.md +14 -0
- fde_framework-0.1.0/framework/patterns/keyword-search.md +12 -0
- fde_framework-0.1.0/framework/patterns/kubernetes-manifests.md +9 -0
- fde_framework-0.1.0/framework/patterns/labelled-metrics.md +13 -0
- fde_framework-0.1.0/framework/patterns/llm-representation.md +17 -0
- fde_framework-0.1.0/framework/patterns/llm-scrubbing.md +9 -0
- fde_framework-0.1.0/framework/patterns/llm.md +12 -0
- fde_framework-0.1.0/framework/patterns/local-embedding.md +9 -0
- fde_framework-0.1.0/framework/patterns/managed-api.md +12 -0
- fde_framework-0.1.0/framework/patterns/managed-embedding.md +9 -0
- fde_framework-0.1.0/framework/patterns/manual-runbook.md +9 -0
- fde_framework-0.1.0/framework/patterns/model-planner.md +13 -0
- fde_framework-0.1.0/framework/patterns/ocr-pipeline.md +13 -0
- fde_framework-0.1.0/framework/patterns/optimisation-reasoning.md +15 -0
- fde_framework-0.1.0/framework/patterns/optimisation.md +13 -0
- fde_framework-0.1.0/framework/patterns/passthrough.md +12 -0
- fde_framework-0.1.0/framework/patterns/role-scoped-authority.md +9 -0
- fde_framework-0.1.0/framework/patterns/segmentation.md +12 -0
- fde_framework-0.1.0/framework/patterns/self-hosted.md +14 -0
- fde_framework-0.1.0/framework/patterns/serverless-gpu.md +12 -0
- fde_framework-0.1.0/framework/patterns/speech-transcription.md +10 -0
- fde_framework-0.1.0/framework/patterns/structured-logs.md +12 -0
- fde_framework-0.1.0/framework/patterns/systemd-unit.md +9 -0
- fde_framework-0.1.0/framework/patterns/terraform-module.md +9 -0
- fde_framework-0.1.0/framework/patterns/text-extraction.md +12 -0
- fde_framework-0.1.0/framework/patterns/traced.md +13 -0
- fde_framework-0.1.0/framework/patterns/vector-search.md +14 -0
- fde_framework-0.1.0/framework/patterns/video-ingestion.md +9 -0
- fde_framework-0.1.0/framework/patterns/windowed-ingestion.md +12 -0
- fde_framework-0.1.0/framework/patterns/working-state.md +12 -0
- fde_framework-0.1.0/framework/stacks/langgraph.md +9 -0
- fde_framework-0.1.0/framework/stacks/local-judge.md +9 -0
- fde_framework-0.1.0/framework/stacks/mcp.md +9 -0
- fde_framework-0.1.0/framework/stacks/ollama.md +19 -0
- fde_framework-0.1.0/framework/stacks/openai-judge.md +9 -0
- fde_framework-0.1.0/framework/stacks/opentelemetry.md +9 -0
- fde_framework-0.1.0/framework/stacks/ortools.md +9 -0
- fde_framework-0.1.0/framework/stacks/pgvector.md +9 -0
- fde_framework-0.1.0/framework/stacks/plain-python.md +9 -0
- fde_framework-0.1.0/framework/stacks/qdrant.md +9 -0
- fde_framework-0.1.0/framework/stacks/tesseract.md +9 -0
- fde_framework-0.1.0/framework/stacks/vllm.md +9 -0
- fde_framework-0.1.0/framework/stacks/whisper.md +15 -0
- fde_framework-0.1.0/framework/stacks/xgboost.md +9 -0
- fde_framework-0.1.0/framework/templates/accountability/decision-log.plain.py.j2 +64 -0
- fde_framework-0.1.0/framework/templates/accountability/explainability-record.plain.py.j2 +90 -0
- fde_framework-0.1.0/framework/templates/deployment/compose.plain.py.j2 +36 -0
- fde_framework-0.1.0/framework/templates/deployment/kubernetes-manifests.plain.py.j2 +36 -0
- fde_framework-0.1.0/framework/templates/deployment/systemd-unit.plain.py.j2 +36 -0
- fde_framework-0.1.0/framework/templates/embedding/local-embedding.plain.py.j2 +71 -0
- fde_framework-0.1.0/framework/templates/embedding/managed-embedding.plain.py.j2 +76 -0
- fde_framework-0.1.0/framework/templates/evaluation/field-match.plain.py.j2 +146 -0
- fde_framework-0.1.0/framework/templates/evaluation/judged.local-judge.py.j2 +100 -0
- fde_framework-0.1.0/framework/templates/evaluation/judged.openai-judge.py.j2 +70 -0
- fde_framework-0.1.0/framework/templates/evaluation/judged.plain.py.j2 +89 -0
- fde_framework-0.1.0/framework/templates/evaluation/labelled-metrics.plain.py.j2 +64 -0
- fde_framework-0.1.0/framework/templates/evaluation/labelled-metrics.xgboost.py.j2 +72 -0
- fde_framework-0.1.0/framework/templates/governance/audit-only.plain.py.j2 +98 -0
- fde_framework-0.1.0/framework/templates/governance/boundary-and-audit.plain.py.j2 +142 -0
- fde_framework-0.1.0/framework/templates/governance/role-scoped-authority.plain.py.j2 +63 -0
- fde_framework-0.1.0/framework/templates/integration/direct-call.plain.py.j2 +63 -0
- fde_framework-0.1.0/framework/templates/integration/governed-tools.mcp.py.j2 +124 -0
- fde_framework-0.1.0/framework/templates/integration/governed-tools.plain.py.j2 +153 -0
- fde_framework-0.1.0/framework/templates/memory/episodic-store.pgvector.py.j2 +118 -0
- fde_framework-0.1.0/framework/templates/memory/episodic-store.plain.py.j2 +147 -0
- fde_framework-0.1.0/framework/templates/memory/working-state.plain.py.j2 +48 -0
- fde_framework-0.1.0/framework/templates/observability/structured-logs.plain.py.j2 +61 -0
- fde_framework-0.1.0/framework/templates/observability/traced.opentelemetry.py.j2 +65 -0
- fde_framework-0.1.0/framework/templates/observability/traced.plain.py.j2 +132 -0
- fde_framework-0.1.0/framework/templates/perception/ocr-pipeline.plain.py.j2 +71 -0
- fde_framework-0.1.0/framework/templates/perception/ocr-pipeline.tesseract.py.j2 +80 -0
- fde_framework-0.1.0/framework/templates/perception/passthrough.plain.py.j2 +41 -0
- fde_framework-0.1.0/framework/templates/perception/speech-transcription.plain.py.j2 +37 -0
- fde_framework-0.1.0/framework/templates/perception/speech-transcription.whisper.py.j2 +39 -0
- fde_framework-0.1.0/framework/templates/perception/text-extraction.plain.py.j2 +88 -0
- fde_framework-0.1.0/framework/templates/perception/video-ingestion.plain.py.j2 +35 -0
- fde_framework-0.1.0/framework/templates/perception/windowed-ingestion.plain.py.j2 +69 -0
- fde_framework-0.1.0/framework/templates/planning/fixed-sequence.plain.py.j2 +46 -0
- fde_framework-0.1.0/framework/templates/planning/model-planner.langgraph.py.j2 +89 -0
- fde_framework-0.1.0/framework/templates/planning/model-planner.plain.py.j2 +82 -0
- fde_framework-0.1.0/framework/templates/planning/optimisation.ortools.py.j2 +90 -0
- fde_framework-0.1.0/framework/templates/planning/optimisation.plain.py.j2 +71 -0
- fde_framework-0.1.0/framework/templates/provisioning/ansible-playbook.plain.py.j2 +29 -0
- fde_framework-0.1.0/framework/templates/provisioning/gitops.plain.py.j2 +29 -0
- fde_framework-0.1.0/framework/templates/provisioning/manual-runbook.plain.py.j2 +29 -0
- fde_framework-0.1.0/framework/templates/provisioning/terraform-module.plain.py.j2 +29 -0
- fde_framework-0.1.0/framework/templates/reasoning/cascade.plain.py.j2 +86 -0
- fde_framework-0.1.0/framework/templates/reasoning/classical-ml.plain.py.j2 +74 -0
- fde_framework-0.1.0/framework/templates/reasoning/classical-ml.xgboost.py.j2 +104 -0
- fde_framework-0.1.0/framework/templates/reasoning/finetune.plain.py.j2 +73 -0
- fde_framework-0.1.0/framework/templates/reasoning/llm.plain.py.j2 +114 -0
- fde_framework-0.1.0/framework/templates/reasoning/optimisation.ortools.py.j2 +90 -0
- fde_framework-0.1.0/framework/templates/reasoning/optimisation.plain.py.j2 +58 -0
- fde_framework-0.1.0/framework/templates/redaction/deterministic-masking.plain.py.j2 +44 -0
- fde_framework-0.1.0/framework/templates/redaction/llm-scrubbing.plain.py.j2 +40 -0
- fde_framework-0.1.0/framework/templates/representation/assisted.plain.py.j2 +86 -0
- fde_framework-0.1.0/framework/templates/representation/cascade.plain.py.j2 +119 -0
- fde_framework-0.1.0/framework/templates/representation/classical-ml.plain.py.j2 +74 -0
- fde_framework-0.1.0/framework/templates/representation/classical-ml.xgboost.py.j2 +104 -0
- fde_framework-0.1.0/framework/templates/representation/deterministic.plain.py.j2 +101 -0
- fde_framework-0.1.0/framework/templates/representation/finetune.plain.py.j2 +68 -0
- fde_framework-0.1.0/framework/templates/representation/llm.plain.py.j2 +94 -0
- fde_framework-0.1.0/framework/templates/representation/segmentation.plain.py.j2 +68 -0
- fde_framework-0.1.0/framework/templates/retrieval/cascade.plain.py.j2 +86 -0
- fde_framework-0.1.0/framework/templates/retrieval/graph-retrieval.pgvector.py.j2 +88 -0
- fde_framework-0.1.0/framework/templates/retrieval/graph-retrieval.plain.py.j2 +74 -0
- fde_framework-0.1.0/framework/templates/retrieval/graph-retrieval.qdrant.py.j2 +71 -0
- fde_framework-0.1.0/framework/templates/retrieval/keyword-search.plain.py.j2 +104 -0
- fde_framework-0.1.0/framework/templates/retrieval/vector-search.pgvector.py.j2 +100 -0
- fde_framework-0.1.0/framework/templates/retrieval/vector-search.plain.py.j2 +84 -0
- fde_framework-0.1.0/framework/templates/retrieval/vector-search.qdrant.py.j2 +60 -0
- fde_framework-0.1.0/framework/templates/serving/managed-api.plain.py.j2 +74 -0
- fde_framework-0.1.0/framework/templates/serving/self-hosted.ollama.py.j2 +47 -0
- fde_framework-0.1.0/framework/templates/serving/self-hosted.plain.py.j2 +117 -0
- fde_framework-0.1.0/framework/templates/serving/self-hosted.vllm.py.j2 +77 -0
- fde_framework-0.1.0/framework/templates/serving/serverless-gpu.plain.py.j2 +62 -0
- fde_framework-0.1.0/pyproject.toml +77 -0
- fde_framework-0.1.0/src/fde/__init__.py +3 -0
- fde_framework-0.1.0/src/fde/architect.py +152 -0
- fde_framework-0.1.0/src/fde/cli.py +2107 -0
- fde_framework-0.1.0/src/fde/costing.py +292 -0
- fde_framework-0.1.0/src/fde/decide.py +297 -0
- fde_framework-0.1.0/src/fde/decompose.py +54 -0
- fde_framework-0.1.0/src/fde/deploy.py +371 -0
- fde_framework-0.1.0/src/fde/emit.py +1309 -0
- fde_framework-0.1.0/src/fde/evolution.py +265 -0
- fde_framework-0.1.0/src/fde/factlog.py +369 -0
- fde_framework-0.1.0/src/fde/gates.py +480 -0
- fde_framework-0.1.0/src/fde/graph.py +435 -0
- fde_framework-0.1.0/src/fde/implement.py +250 -0
- fde_framework-0.1.0/src/fde/intake/__init__.py +0 -0
- fde_framework-0.1.0/src/fde/intake/answers.py +154 -0
- fde_framework-0.1.0/src/fde/intake/documents.py +121 -0
- fde_framework-0.1.0/src/fde/intake/interview.py +218 -0
- fde_framework-0.1.0/src/fde/intake/llm_reader.py +336 -0
- fde_framework-0.1.0/src/fde/intake/prose.py +387 -0
- fde_framework-0.1.0/src/fde/intake/samples.py +369 -0
- fde_framework-0.1.0/src/fde/models/__init__.py +0 -0
- fde_framework-0.1.0/src/fde/models/base.py +86 -0
- fde_framework-0.1.0/src/fde/models/fact.py +37 -0
- fde_framework-0.1.0/src/fde/models/profile.py +159 -0
- fde_framework-0.1.0/src/fde/models/respondent.py +34 -0
- fde_framework-0.1.0/src/fde/models/schema.py +430 -0
- fde_framework-0.1.0/src/fde/moves.py +136 -0
- fde_framework-0.1.0/src/fde/ops.py +349 -0
- fde_framework-0.1.0/src/fde/predicate.py +106 -0
- fde_framework-0.1.0/src/fde/realization.py +109 -0
- fde_framework-0.1.0/src/fde/registry.py +162 -0
- fde_framework-0.1.0/src/fde/scan.py +479 -0
- fde_framework-0.1.0/src/fde/space.py +172 -0
- fde_framework-0.1.0/src/fde/workflow.py +233 -0
- fde_framework-0.1.0/tests/__init__.py +0 -0
- fde_framework-0.1.0/tests/conftest.py +13 -0
- fde_framework-0.1.0/tests/models/__init__.py +0 -0
- fde_framework-0.1.0/tests/models/test_profile.py +166 -0
- fde_framework-0.1.0/tests/test_access_and_sensitivity.py +166 -0
- fde_framework-0.1.0/tests/test_answers.py +148 -0
- fde_framework-0.1.0/tests/test_cascade.py +173 -0
- fde_framework-0.1.0/tests/test_cli_engagement.py +66 -0
- fde_framework-0.1.0/tests/test_cli_evolution.py +439 -0
- fde_framework-0.1.0/tests/test_cli_gates.py +386 -0
- fde_framework-0.1.0/tests/test_cli_intake.py +294 -0
- fde_framework-0.1.0/tests/test_cli_kb.py +68 -0
- fde_framework-0.1.0/tests/test_cli_robustness.py +103 -0
- fde_framework-0.1.0/tests/test_cli_samples.py +116 -0
- fde_framework-0.1.0/tests/test_costing.py +45 -0
- fde_framework-0.1.0/tests/test_coverage.py +159 -0
- fde_framework-0.1.0/tests/test_dead_zones.py +247 -0
- fde_framework-0.1.0/tests/test_decide.py +234 -0
- fde_framework-0.1.0/tests/test_decompose.py +183 -0
- fde_framework-0.1.0/tests/test_deploy.py +256 -0
- fde_framework-0.1.0/tests/test_documents.py +113 -0
- fde_framework-0.1.0/tests/test_embedding.py +98 -0
- fde_framework-0.1.0/tests/test_emit.py +778 -0
- fde_framework-0.1.0/tests/test_evolution.py +201 -0
- fde_framework-0.1.0/tests/test_factlog.py +226 -0
- fde_framework-0.1.0/tests/test_gates.py +430 -0
- fde_framework-0.1.0/tests/test_implement.py +248 -0
- fde_framework-0.1.0/tests/test_interview.py +289 -0
- fde_framework-0.1.0/tests/test_llm_reader.py +217 -0
- fde_framework-0.1.0/tests/test_locales.py +172 -0
- fde_framework-0.1.0/tests/test_memory_retrieval.py +195 -0
- fde_framework-0.1.0/tests/test_more_templates.py +199 -0
- fde_framework-0.1.0/tests/test_moves.py +218 -0
- fde_framework-0.1.0/tests/test_multimodal.py +162 -0
- fde_framework-0.1.0/tests/test_ops.py +153 -0
- fde_framework-0.1.0/tests/test_package.py +4 -0
- fde_framework-0.1.0/tests/test_prose.py +504 -0
- fde_framework-0.1.0/tests/test_realization.py +142 -0
- fde_framework-0.1.0/tests/test_registry.py +228 -0
- fde_framework-0.1.0/tests/test_remaining.py +204 -0
- fde_framework-0.1.0/tests/test_reversibility.py +126 -0
- fde_framework-0.1.0/tests/test_samples.py +242 -0
- fde_framework-0.1.0/tests/test_sanitisation.py +189 -0
- fde_framework-0.1.0/tests/test_scan.py +404 -0
- fde_framework-0.1.0/tests/test_schema.py +273 -0
- fde_framework-0.1.0/tests/test_serving.py +137 -0
- fde_framework-0.1.0/tests/test_shipped_registry.py +165 -0
- fde_framework-0.1.0/tests/test_space.py +214 -0
- fde_framework-0.1.0/tests/test_stack_swap.py +120 -0
- fde_framework-0.1.0/tests/test_templates.py +301 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
!.env.example
|
|
3
|
+
# Client engagement workspaces. Never committed.
|
|
4
|
+
# Env / secrets
|
|
5
|
+
# OS / editor
|
|
6
|
+
# Python
|
|
7
|
+
# Raw, unsanitized material. Nothing here is ever committed.
|
|
8
|
+
# Sanitisation denylist. Contains the names it exists to keep out.
|
|
9
|
+
# Supplied material and derived seed. Re-expressed as framework/ templates; never committed raw.
|
|
10
|
+
# Working notes and research. Not part of the product.
|
|
11
|
+
*.egg-info/
|
|
12
|
+
*.py[cod]
|
|
13
|
+
*.swp
|
|
14
|
+
.DS_Store
|
|
15
|
+
.coverage
|
|
16
|
+
.env
|
|
17
|
+
.env.*
|
|
18
|
+
.idea/
|
|
19
|
+
.pytest_cache/
|
|
20
|
+
.ruff_cache/
|
|
21
|
+
.sanitisation-denylist
|
|
22
|
+
.venv/
|
|
23
|
+
__pycache__/
|
|
24
|
+
build/
|
|
25
|
+
coverage.xml
|
|
26
|
+
dist/
|
|
27
|
+
docs/
|
|
28
|
+
engagements/
|
|
29
|
+
inbox/
|
|
30
|
+
seed/
|
|
31
|
+
venv/
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Notable changes, oldest last. Format follows [Keep a Changelog](https://keepachangelog.com/);
|
|
4
|
+
the project is pre-release, so everything sits under 0.1.0 until the first tag.
|
|
5
|
+
|
|
6
|
+
## [Unreleased]
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- End-to-end pipeline: prose/document/sample/interview/hardware-scan intake →
|
|
10
|
+
append-only fact log with dimension-dependent provenance → permutation
|
|
11
|
+
space → seven gates (data access hard; baseline, readiness, scope drift,
|
|
12
|
+
security review,
|
|
13
|
+
offline evaluability, licence compatibility waivable with recorded
|
|
14
|
+
reasons) → evidence-citing decision engine → architect → `fde build`
|
|
15
|
+
emitting code, evals, deploy assets, ops runbook, `ARCHITECTURE.md` and
|
|
16
|
+
`RISKS.md`.
|
|
17
|
+
- Hardware scan (`fde scan`) with measurement-only DETECTED provenance and
|
|
18
|
+
silicon-gated optimisation advice; dated costing (`fde cost`) with the
|
|
19
|
+
naive figure beside the real one.
|
|
20
|
+
- Evolution loop: overrides honoured on the next run, build-time
|
|
21
|
+
predictions, `fde observe` → trigger calibration, `fde retro` case
|
|
22
|
+
capture, human-gated `fde kb ingest-case` (cases land
|
|
23
|
+
`sanitization: pending`; CI refuses pending).
|
|
24
|
+
- Registry tooling: `fde kb validate` (cross-links, topology vocabulary),
|
|
25
|
+
`fde kb gaps` (work items: evidence stubs, unweighted dimensions, stale
|
|
26
|
+
stacks), `fde kb sweep` (profile shapes no approach can serve, each with
|
|
27
|
+
a reproducing example).
|
|
28
|
+
- Knowledge registry: 26 dimensions, 49 approaches, 53 patterns, 14 stacks,
|
|
29
|
+
16 components, 2 locales, 70+ templates — all data, no code.
|
|
30
|
+
- Scope axes on every dimension (functional, non-functional, data,
|
|
31
|
+
environment, operational, commercial): `fde status` and the emitted
|
|
32
|
+
architecture document group by them, and `fde ask --scope` runs one axis
|
|
33
|
+
at a time.
|
|
34
|
+
- Hybrid as a first-class hosting topology, with the boundary between the
|
|
35
|
+
two halves enforced in emitted code.
|
|
36
|
+
- Locale packs (`fde locale`): jurisdiction presets at weakest provenance
|
|
37
|
+
plus dated obligations emitted as COMPLIANCE.md.
|
|
38
|
+
- `fde reuse`: the client's existing stack outranks adoption when it serves.
|
|
39
|
+
- A security-review gate: a system living in the client's environment or
|
|
40
|
+
touching their systems blocks until their security function has seen it
|
|
41
|
+
(`fde security-review`), because the review nobody scheduled is the
|
|
42
|
+
engagement-killer every public playbook names.
|
|
43
|
+
- `arrival_rate` and `availability_target` dimensions: flow sizing read by
|
|
44
|
+
`fde cost --root`, and an availability target the emitted slo.md carries.
|
|
45
|
+
- Emitted `evals/acceptance.md` (blind user-acceptance protocol) and
|
|
46
|
+
`evals/load.py` (p95 against the stated budget; fails until the pipeline
|
|
47
|
+
is implemented, like the harness).
|
|
48
|
+
- `access_model` moves the governance decision (role-scoped authority),
|
|
49
|
+
`sensitivity_present` earns a redaction component in the crossed case
|
|
50
|
+
(sensitive fields, data free to leave), and `fde triage` ranks candidate
|
|
51
|
+
problems by decidability, honestly labelled.
|
|
52
|
+
- `fde frame --reader llm`: a model proposes facts for what the
|
|
53
|
+
deterministic reader left open -- validated against the registry,
|
|
54
|
+
landing at weakest provenance, hosted path refused unless data may
|
|
55
|
+
leave, local OpenAI-compatible endpoints always allowed.
|
|
56
|
+
- Multi-modal input: input_format holds peers (photos AND documents AND
|
|
57
|
+
telemetry, voice, video); perception fans one instance per modality.
|
|
58
|
+
- Judge-based evaluation reaches the emitted harness: freeform systems
|
|
59
|
+
are graded by model comparison against the reference via app/llm.py
|
|
60
|
+
(local endpoint first-class; hosted refused inside a boundary).
|
|
61
|
+
- fde cost unit economics (--price-per-seat): cost per workflow against
|
|
62
|
+
revenue per seat, with the cascade/caching/loop-bound levers priced.
|
|
63
|
+
- fde scan recommends a local runtime and models sized to the measured
|
|
64
|
+
hardware, dated.
|
|
65
|
+
- fde implement --holdout: cases the delivery never shipped, against
|
|
66
|
+
memorized greens.
|
|
67
|
+
- The LLM as proposer at every seam: fde kb suggest mines briefs for
|
|
68
|
+
recogniser gaps (verbatim-citation guard, boundary-gated), fde frame
|
|
69
|
+
retains briefs so spans stay meaningful, and fde kb export-training
|
|
70
|
+
builds the fine-tune corpus -- adoption governed by the corpus's own
|
|
71
|
+
finetune rule.
|
|
72
|
+
- Emitted code carries the engagement's numbers: templates receive the
|
|
73
|
+
settled profile, and a build ends by naming its finishing move
|
|
74
|
+
(fde implement, with the holdout when one exists).
|
|
75
|
+
- `fde implement`: drives a coding agent until the emitted evals pass,
|
|
76
|
+
with the evals, boundary, controls and decision documents hashed as a
|
|
77
|
+
fence -- an agent that edits the exam is caught, reverted, and stopped.
|
|
78
|
+
- Sanitisation gate in CI: allowed paths only, history scan, credential and
|
|
79
|
+
PII patterns, denylist, no AI attribution, no pending cases.
|
|
80
|
+
|
|
81
|
+
### Hardened
|
|
82
|
+
- Three adversarial review rounds (2026-08-26 → 2026-08-27): 54 findings in
|
|
83
|
+
round one, 39 in round two, 15 in round three, every fix pinned by a
|
|
84
|
+
regression test. Includes closing a hard-gate bypass (zero-width-space
|
|
85
|
+
attestations), a path traversal in case ingestion, markdown injection in
|
|
86
|
+
the generated risk page, and an emitted critic that ran after the
|
|
87
|
+
irreversible step it guards.
|
|
88
|
+
|
|
89
|
+
## [0.1.0] — unreleased target
|
|
90
|
+
First tagged release. The repository is public under Apache 2.0.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|