decision-trace-reconstructor 0.1.2__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.
- decision_trace_reconstructor-0.1.2/.github/dependabot.yml +10 -0
- decision_trace_reconstructor-0.1.2/.github/workflows/ci.yml +147 -0
- decision_trace_reconstructor-0.1.2/.github/workflows/release.yml +27 -0
- decision_trace_reconstructor-0.1.2/.markdownlint-cli2.jsonc +14 -0
- decision_trace_reconstructor-0.1.2/.pre-commit-config.yaml +23 -0
- decision_trace_reconstructor-0.1.2/CHANGELOG.md +63 -0
- decision_trace_reconstructor-0.1.2/CITATION.cff +45 -0
- decision_trace_reconstructor-0.1.2/LICENSE +189 -0
- decision_trace_reconstructor-0.1.2/MANIFEST.in +20 -0
- decision_trace_reconstructor-0.1.2/Makefile +26 -0
- decision_trace_reconstructor-0.1.2/PKG-INFO +173 -0
- decision_trace_reconstructor-0.1.2/README.md +91 -0
- decision_trace_reconstructor-0.1.2/codemeta.json +68 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/README.md +21 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/agentframework.md +23 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/anthropic.md +23 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/bedrock.md +23 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/crewai.md +23 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/generic-jsonl.md +29 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/langsmith.md +23 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/mcp.md +23 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/openai-agents.md +23 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/otlp.md +23 -0
- decision_trace_reconstructor-0.1.2/docs/adapters/pydantic-ai.md +23 -0
- decision_trace_reconstructor-0.1.2/docs/architecture.md +29 -0
- decision_trace_reconstructor-0.1.2/docs/development.md +38 -0
- decision_trace_reconstructor-0.1.2/docs/installation.md +60 -0
- decision_trace_reconstructor-0.1.2/docs/report.qmd +381 -0
- decision_trace_reconstructor-0.1.2/docs/reports.md +54 -0
- decision_trace_reconstructor-0.1.2/docs/roadmap.md +23 -0
- decision_trace_reconstructor-0.1.2/docs/schemas/cells.schema.json +124 -0
- decision_trace_reconstructor-0.1.2/docs/schemas/generic_jsonl_mapping.schema.json +223 -0
- decision_trace_reconstructor-0.1.2/docs/schemas/named_incidents.schema.json +196 -0
- decision_trace_reconstructor-0.1.2/docs/schemas/per_property.schema.json +59 -0
- decision_trace_reconstructor-0.1.2/docs/schemas/per_scenario.schema.json +124 -0
- decision_trace_reconstructor-0.1.2/examples/agentframework_basic_agent/README.md +19 -0
- decision_trace_reconstructor-0.1.2/examples/agentframework_basic_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/agentframework_basic_agent/expected_output/fragments.json +204 -0
- decision_trace_reconstructor-0.1.2/examples/agentframework_basic_agent/expected_output/trace.jsonld +421 -0
- decision_trace_reconstructor-0.1.2/examples/agentframework_basic_agent/input/events.jsonl +15 -0
- decision_trace_reconstructor-0.1.2/examples/anthropic_basic_agent/README.md +20 -0
- decision_trace_reconstructor-0.1.2/examples/anthropic_basic_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/anthropic_basic_agent/expected_output/fragments.json +635 -0
- decision_trace_reconstructor-0.1.2/examples/anthropic_basic_agent/expected_output/trace.jsonld +918 -0
- decision_trace_reconstructor-0.1.2/examples/anthropic_basic_agent/input/messages_history.jsonl +6 -0
- decision_trace_reconstructor-0.1.2/examples/bedrock_basic_agent/README.md +50 -0
- decision_trace_reconstructor-0.1.2/examples/bedrock_basic_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/bedrock_basic_agent/expected_output/fragments.json +170 -0
- decision_trace_reconstructor-0.1.2/examples/bedrock_basic_agent/expected_output/trace.jsonld +435 -0
- decision_trace_reconstructor-0.1.2/examples/bedrock_basic_agent/input/sessions.json +76 -0
- decision_trace_reconstructor-0.1.2/examples/crewai_basic_agent/README.md +19 -0
- decision_trace_reconstructor-0.1.2/examples/crewai_basic_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/crewai_basic_agent/expected_output/fragments.json +211 -0
- decision_trace_reconstructor-0.1.2/examples/crewai_basic_agent/expected_output/trace.jsonld +421 -0
- decision_trace_reconstructor-0.1.2/examples/crewai_basic_agent/input/events.jsonl +16 -0
- decision_trace_reconstructor-0.1.2/examples/generic_jsonl_basic_agent/README.md +28 -0
- decision_trace_reconstructor-0.1.2/examples/generic_jsonl_basic_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/generic_jsonl_basic_agent/expected_output/fragments.json +131 -0
- decision_trace_reconstructor-0.1.2/examples/generic_jsonl_basic_agent/expected_output/trace.jsonld +348 -0
- decision_trace_reconstructor-0.1.2/examples/generic_jsonl_basic_agent/input/agent_log.jsonl +7 -0
- decision_trace_reconstructor-0.1.2/examples/generic_jsonl_basic_agent/input/mapping.yaml +28 -0
- decision_trace_reconstructor-0.1.2/examples/langsmith_basic_agent/README.md +125 -0
- decision_trace_reconstructor-0.1.2/examples/langsmith_basic_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/langsmith_basic_agent/expected_output/fragments.json +147 -0
- decision_trace_reconstructor-0.1.2/examples/langsmith_basic_agent/expected_output/trace.jsonld +431 -0
- decision_trace_reconstructor-0.1.2/examples/langsmith_basic_agent/input/runs.json +119 -0
- decision_trace_reconstructor-0.1.2/examples/mcp_basic_agent/README.md +19 -0
- decision_trace_reconstructor-0.1.2/examples/mcp_basic_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/mcp_basic_agent/expected_output/fragments.json +186 -0
- decision_trace_reconstructor-0.1.2/examples/mcp_basic_agent/expected_output/trace.jsonld +428 -0
- decision_trace_reconstructor-0.1.2/examples/mcp_basic_agent/input/transcript.jsonl +14 -0
- decision_trace_reconstructor-0.1.2/examples/oep_code_review_agent/README.md +24 -0
- decision_trace_reconstructor-0.1.2/examples/oep_code_review_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/oep_code_review_agent/input/code_review_agent.jsonl +6 -0
- decision_trace_reconstructor-0.1.2/examples/oep_code_review_agent/input/mapping.v0.yaml +42 -0
- decision_trace_reconstructor-0.1.2/examples/openai_agents_basic_agent/README.md +18 -0
- decision_trace_reconstructor-0.1.2/examples/openai_agents_basic_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/openai_agents_basic_agent/expected_output/fragments.json +215 -0
- decision_trace_reconstructor-0.1.2/examples/openai_agents_basic_agent/expected_output/trace.jsonld +530 -0
- decision_trace_reconstructor-0.1.2/examples/openai_agents_basic_agent/input/trace.json +179 -0
- decision_trace_reconstructor-0.1.2/examples/otlp_basic_agent/README.md +78 -0
- decision_trace_reconstructor-0.1.2/examples/otlp_basic_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/otlp_basic_agent/expected_output/fragments.json +154 -0
- decision_trace_reconstructor-0.1.2/examples/otlp_basic_agent/expected_output/trace.jsonld +361 -0
- decision_trace_reconstructor-0.1.2/examples/otlp_basic_agent/input/spans.json +197 -0
- decision_trace_reconstructor-0.1.2/examples/pydantic_ai_basic_agent/README.md +19 -0
- decision_trace_reconstructor-0.1.2/examples/pydantic_ai_basic_agent/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/pydantic_ai_basic_agent/expected_output/fragments.json +351 -0
- decision_trace_reconstructor-0.1.2/examples/pydantic_ai_basic_agent/expected_output/trace.jsonld +541 -0
- decision_trace_reconstructor-0.1.2/examples/pydantic_ai_basic_agent/input/runs.jsonl +3 -0
- decision_trace_reconstructor-0.1.2/examples/replit_drop_database/README.md +142 -0
- decision_trace_reconstructor-0.1.2/examples/replit_drop_database/expected_output/feasibility.json +53 -0
- decision_trace_reconstructor-0.1.2/examples/replit_drop_database/expected_output/summary.txt +22 -0
- decision_trace_reconstructor-0.1.2/examples/replit_drop_database/expected_output/trace.jsonld +297 -0
- decision_trace_reconstructor-0.1.2/examples/replit_drop_database/input/fragments.json +61 -0
- decision_trace_reconstructor-0.1.2/examples/replit_drop_database/run.py +153 -0
- decision_trace_reconstructor-0.1.2/pyproject.toml +146 -0
- decision_trace_reconstructor-0.1.2/results/cells.json +86 -0
- decision_trace_reconstructor-0.1.2/results/cells.jsonld +170 -0
- decision_trace_reconstructor-0.1.2/results/named_incidents.json +161 -0
- decision_trace_reconstructor-0.1.2/results/named_incidents.jsonld +804 -0
- decision_trace_reconstructor-0.1.2/results/per_property.json +44 -0
- decision_trace_reconstructor-0.1.2/results/per_scenario.json +1822 -0
- decision_trace_reconstructor-0.1.2/results/per_scenario.jsonld +2592 -0
- decision_trace_reconstructor-0.1.2/ro-crate-metadata.json +181 -0
- decision_trace_reconstructor-0.1.2/scripts/export_schemas.py +58 -0
- decision_trace_reconstructor-0.1.2/setup.cfg +4 -0
- decision_trace_reconstructor-0.1.2/src/decision_trace_reconstructor.egg-info/PKG-INFO +173 -0
- decision_trace_reconstructor-0.1.2/src/decision_trace_reconstructor.egg-info/SOURCES.txt +391 -0
- decision_trace_reconstructor-0.1.2/src/decision_trace_reconstructor.egg-info/dependency_links.txt +1 -0
- decision_trace_reconstructor-0.1.2/src/decision_trace_reconstructor.egg-info/entry_points.txt +2 -0
- decision_trace_reconstructor-0.1.2/src/decision_trace_reconstructor.egg-info/requires.txt +77 -0
- decision_trace_reconstructor-0.1.2/src/decision_trace_reconstructor.egg-info/top_level.txt +1 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/__init__.py +3 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/__init__.py +56 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/_payloads.py +18 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/_time.py +60 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/__init__.py +15 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/activity_handlers.py +80 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/architecture.py +35 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/cli.py +7 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/cli_handler.py +47 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/cli_parser.py +74 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/common.py +59 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/events.py +106 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/fragment_common.py +103 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/fragments.py +38 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/handlers.py +66 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/lifecycle_handlers.py +96 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/message_fragments.py +112 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/pipeline.py +53 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/state.py +57 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/agentframework/tool_fragments.py +49 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/__init__.py +15 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/cli.py +102 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/common.py +41 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/events.py +57 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/fragment_common.py +51 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/fragments.py +22 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/message_fragments.py +19 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/message_payloads.py +54 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/pipeline.py +143 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/request_fragments.py +72 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/response_fragments.py +90 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/tool_builders.py +84 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/tool_fragments.py +101 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/anthropic/tool_rules.py +53 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/__init__.py +29 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/actor_common.py +33 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/cli.py +7 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/cli_args.py +55 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/cli_handler.py +64 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/cli_parser.py +72 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/common.py +30 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/fragment_common.py +43 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/fragment_context.py +45 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/fragments.py +8 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/human_common.py +17 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/io.py +52 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/live.py +126 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/live_memory.py +19 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/live_pagination.py +33 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/memory_common.py +16 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/normalize.py +15 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/normalize_common.py +30 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/normalize_events.py +84 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/normalize_sessions.py +90 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/options.py +18 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/pipeline.py +56 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/session_fragments.py +95 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/tool_common.py +71 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/trace_fragments.py +41 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/trace_llm_fragments.py +101 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/trace_orchestration_fragments.py +121 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/bedrock/trace_terminal_fragments.py +83 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/__init__.py +15 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/activity_fragments.py +119 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/activity_handlers.py +130 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/architecture.py +51 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/cli.py +7 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/cli_handler.py +43 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/cli_parser.py +77 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/common.py +49 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/events.py +68 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/fragment_common.py +51 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/fragments.py +31 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/handlers.py +58 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/lifecycle_fragments.py +75 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/lifecycle_handlers.py +152 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/pipeline.py +55 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/crewai/state.py +51 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/__init__.py +35 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/cli.py +7 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/cli_handler.py +57 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/cli_parser.py +70 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/common.py +84 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/followups.py +66 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/fragments.py +66 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/io.py +46 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/mapping.py +108 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/paths.py +92 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/payloads.py +30 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/pipeline.py +65 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/record_fields.py +53 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/record_fragments.py +69 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/record_kind.py +45 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/state_mutation.py +50 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/utils.py +15 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/validation.py +70 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/generic_jsonl/yaml.py +146 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/__init__.py +19 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/cli.py +7 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/cli_handler.py +84 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/cli_parser.py +84 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/common.py +69 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/fragment_builders.py +139 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/fragment_common.py +98 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/fragment_predicates.py +34 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/fragments.py +57 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/network.py +54 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/pipeline.py +50 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/langsmith/runs.py +49 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/__init__.py +21 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/capability_fragments.py +47 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/cli.py +118 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/common.py +36 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/events.py +125 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/fragment_common.py +93 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/fragments.py +8 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/notification_fragments.py +61 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/pipeline.py +95 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/resource_prompt_fragments.py +42 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/response_fragments.py +35 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/mcp/tool_fragments.py +68 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/__init__.py +20 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/cli.py +7 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/cli_handler.py +95 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/cli_parser.py +75 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/common.py +24 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/computer_fragments.py +47 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/events.py +95 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/fragment_builders.py +48 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/fragment_common.py +162 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/fragments.py +23 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/function_fragments.py +66 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/message_fragments.py +80 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/model_fragments.py +49 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/pipeline.py +91 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/retrieval_fragments.py +69 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/special_fragments.py +40 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/openai_agents/tool_fragments.py +14 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/__init__.py +29 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/cli.py +7 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/cli_args.py +46 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/cli_handler.py +70 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/cli_parser.py +67 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/common.py +105 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/fragment_builders.py +23 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/fragment_common.py +83 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/fragment_payloads.py +75 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/fragments.py +52 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/loaders.py +80 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/misc_fragments.py +106 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/model_fragments.py +37 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/normalize.py +73 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/pipeline.py +111 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/record_normalize.py +84 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/time_ids.py +58 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/tool_fragments.py +76 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/otlp/value_normalize.py +89 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/__init__.py +15 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/architecture.py +14 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/cli.py +7 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/cli_handler.py +44 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/cli_parser.py +75 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/common.py +31 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/events.py +130 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/fragment_common.py +38 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/fragments.py +26 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/handlers.py +87 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/pipeline.py +63 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/prompt_fragments.py +68 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/run_fragments.py +70 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/state.py +38 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/tool_fragments.py +95 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/adapters/pydantic_ai/tool_handlers.py +49 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/cli/__init__.py +48 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/cli/__main__.py +8 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/cli/adapter_registry.py +41 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/cli/evaluation.py +67 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/cli/ingest.py +55 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/cli/ingest_common.py +25 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/cli/ingest_common_args.py +113 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/cli/ingest_handler_common.py +39 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/cli/ingest_schema_handlers.py +53 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/cli/reconstruct.py +156 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/core/__init__.py +0 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/core/architecture.py +32 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/core/boundary.py +98 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/core/chain.py +58 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/core/fragment.py +133 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/core/manifest.py +83 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/core/temporal.py +49 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/evaluation/__init__.py +0 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/evaluation/defaults.py +8 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/evaluation/metrics.py +139 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/evaluation/run_named.py +128 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/evaluation/run_synthetic.py +47 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/evaluation/synthetic_console.py +87 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/evaluation/synthetic_evaluation.py +90 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/evaluation/synthetic_outputs.py +101 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/__init__.py +0 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/aggregation.py +158 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/classification.py +38 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/classification_rules.py +140 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/feasibility.py +48 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/feasibility_helpers.py +30 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/mapper.py +19 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/modes.py +44 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/operational_modes.py +45 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/properties.py +25 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/mapping/property_fillers.py +26 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/output/__init__.py +30 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/output/generic_jsonl_models.py +84 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/output/model_types.py +77 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/output/models.py +65 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/output/prov_context.py +64 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/output/prov_identifiers.py +33 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/output/prov_jsonld.py +135 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/output/prov_nodes.py +116 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/output/result_models.py +132 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/pipeline.py +91 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/py.typed +0 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/synthetic/__init__.py +0 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/synthetic/agentic_generator.py +140 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/synthetic/baseline_generator.py +124 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/synthetic/generator.py +69 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/synthetic/named_incidents.py +246 -0
- decision_trace_reconstructor-0.1.2/src/reconstructor/synthetic/scenario.py +23 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_agentframework.py +115 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_anthropic.py +114 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_bedrock.py +114 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_crewai.py +105 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_generic_jsonl.py +118 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_langsmith.py +123 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_mcp.py +115 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_oep_code_review.py +77 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_openai_agents.py +116 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_otlp.py +112 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_pydantic_ai.py +115 -0
- decision_trace_reconstructor-0.1.2/tests/integration/test_example_replit.py +109 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/agentframework/test_agentframework_adapter.py +400 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/agentframework/test_agentframework_cli.py +251 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/anthropic/test_anthropic_adapter.py +404 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/anthropic/test_anthropic_cli.py +136 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/bedrock/test_bedrock_adapter.py +503 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/bedrock/test_bedrock_cli.py +242 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/crewai/test_crewai_adapter.py +400 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/crewai/test_crewai_cli.py +230 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/generic_jsonl/test_generic_jsonl_adapter.py +270 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/generic_jsonl/test_generic_jsonl_cli.py +183 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/generic_jsonl/test_generic_jsonl_edges.py +197 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/generic_jsonl/test_generic_jsonl_utils.py +100 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/langsmith/test_langsmith_adapter.py +334 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/langsmith/test_langsmith_cli.py +102 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/langsmith/test_langsmith_network.py +103 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/mcp/test_mcp_adapter.py +445 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/mcp/test_mcp_cli.py +201 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/openai_agents/test_openai_agents_adapter.py +340 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/openai_agents/test_openai_agents_cli.py +142 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/otlp/test_otlp_adapter.py +393 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/otlp/test_otlp_cli.py +244 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/otlp/test_otlp_edges.py +223 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/pydantic_ai/test_pydantic_ai_adapter.py +343 -0
- decision_trace_reconstructor-0.1.2/tests/unit/adapters/pydantic_ai/test_pydantic_ai_cli.py +247 -0
- decision_trace_reconstructor-0.1.2/tests/unit/cli/test_adapter_registry.py +71 -0
- decision_trace_reconstructor-0.1.2/tests/unit/cli/test_evaluation_command.py +61 -0
- decision_trace_reconstructor-0.1.2/tests/unit/cli/test_module_entrypoint.py +20 -0
- decision_trace_reconstructor-0.1.2/tests/unit/cli/test_reconstruct_command.py +95 -0
- decision_trace_reconstructor-0.1.2/tests/unit/cli/test_schema_commands.py +51 -0
- decision_trace_reconstructor-0.1.2/tests/unit/contracts/test_adapter_golden_contracts.py +342 -0
- decision_trace_reconstructor-0.1.2/tests/unit/contracts/test_public_api.py +144 -0
- decision_trace_reconstructor-0.1.2/tests/unit/core/test_core_helpers.py +91 -0
- decision_trace_reconstructor-0.1.2/tests/unit/core/test_manifest.py +58 -0
- decision_trace_reconstructor-0.1.2/tests/unit/evaluation/test_evaluation_metrics.py +101 -0
- decision_trace_reconstructor-0.1.2/tests/unit/evaluation/test_parquet_writer.py +73 -0
- decision_trace_reconstructor-0.1.2/tests/unit/evaluation/test_run_synthetic_helpers.py +181 -0
- decision_trace_reconstructor-0.1.2/tests/unit/evaluation/test_runner_entrypoints.py +89 -0
- decision_trace_reconstructor-0.1.2/tests/unit/output/test_output_models.py +91 -0
- decision_trace_reconstructor-0.1.2/tests/unit/output/test_prov_jsonld.py +125 -0
- decision_trace_reconstructor-0.1.2/tests/unit/output/test_public_output_modules.py +35 -0
- decision_trace_reconstructor-0.1.2/tests/unit/pipeline/test_pipeline.py +205 -0
- decision_trace_reconstructor-0.1.2/tests/unit/synthetic/test_synthetic_generator.py +136 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ci-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
name: "Test (Python ${{ matrix.python-version }})"
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
strategy:
|
|
18
|
+
fail-fast: false
|
|
19
|
+
matrix:
|
|
20
|
+
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Set up Python
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: ${{ matrix.python-version }}
|
|
28
|
+
cache: pip
|
|
29
|
+
|
|
30
|
+
- name: Install package with dev + parquet extras
|
|
31
|
+
run: |
|
|
32
|
+
python -m pip install --upgrade pip
|
|
33
|
+
pip install -e '.[dev,parquet]'
|
|
34
|
+
|
|
35
|
+
- name: Run pytest
|
|
36
|
+
run: |
|
|
37
|
+
pytest -v --cov=reconstructor --cov-report=xml --cov-report=term
|
|
38
|
+
|
|
39
|
+
- name: Verify Pydantic round-trip on results/
|
|
40
|
+
run: |
|
|
41
|
+
python -c "
|
|
42
|
+
import json
|
|
43
|
+
from pathlib import Path
|
|
44
|
+
from reconstructor.output.models import (
|
|
45
|
+
CellResults, NamedIncidentResults, PerPropertyTable, PerScenarioResults,
|
|
46
|
+
)
|
|
47
|
+
for f, c in [
|
|
48
|
+
('cells.json', CellResults),
|
|
49
|
+
('per_property.json', PerPropertyTable),
|
|
50
|
+
('per_scenario.json', PerScenarioResults),
|
|
51
|
+
('named_incidents.json', NamedIncidentResults),
|
|
52
|
+
]:
|
|
53
|
+
raw = json.loads(Path(f'results/{f}').read_text())
|
|
54
|
+
assert c.model_validate(raw).model_dump(mode='json') == raw
|
|
55
|
+
print(f'OK {f}')
|
|
56
|
+
"
|
|
57
|
+
|
|
58
|
+
- name: Verify worked example reproduces bit-identically
|
|
59
|
+
run: |
|
|
60
|
+
cd examples/replit_drop_database
|
|
61
|
+
python run.py --out out/
|
|
62
|
+
diff -ru expected_output out
|
|
63
|
+
|
|
64
|
+
- name: Re-run synthetic eval (smoke test, smaller seeds-per-cell)
|
|
65
|
+
run: |
|
|
66
|
+
decision-trace evaluate synthetic --seeds-per-cell 3 --out /tmp/decision_trace_smoke
|
|
67
|
+
test -f /tmp/decision_trace_smoke/cells.json
|
|
68
|
+
test -f /tmp/decision_trace_smoke/cells.jsonld
|
|
69
|
+
test -f /tmp/decision_trace_smoke/per_scenario.json
|
|
70
|
+
test -f /tmp/decision_trace_smoke/per_scenario.jsonld
|
|
71
|
+
|
|
72
|
+
test-all-extras:
|
|
73
|
+
name: "Test (all adapter extras)"
|
|
74
|
+
runs-on: ubuntu-latest
|
|
75
|
+
steps:
|
|
76
|
+
- uses: actions/checkout@v4
|
|
77
|
+
|
|
78
|
+
- name: Set up Python
|
|
79
|
+
uses: actions/setup-python@v5
|
|
80
|
+
with:
|
|
81
|
+
python-version: "3.13"
|
|
82
|
+
cache: pip
|
|
83
|
+
|
|
84
|
+
- name: Install package with all adapter extras
|
|
85
|
+
run: |
|
|
86
|
+
python -m pip install --upgrade pip
|
|
87
|
+
pip install -e '.[all,dev]'
|
|
88
|
+
|
|
89
|
+
- name: Run pytest with every adapter importable
|
|
90
|
+
run: |
|
|
91
|
+
pytest -q
|
|
92
|
+
|
|
93
|
+
lint:
|
|
94
|
+
name: Lint + Type-check
|
|
95
|
+
runs-on: ubuntu-latest
|
|
96
|
+
steps:
|
|
97
|
+
- uses: actions/checkout@v4
|
|
98
|
+
- uses: actions/setup-python@v5
|
|
99
|
+
with:
|
|
100
|
+
python-version: "3.13"
|
|
101
|
+
cache: pip
|
|
102
|
+
- run: |
|
|
103
|
+
python -m pip install --upgrade pip
|
|
104
|
+
pip install -e '.[dev]'
|
|
105
|
+
- name: Ruff
|
|
106
|
+
run: ruff check src tests scripts
|
|
107
|
+
- name: Ruff format check
|
|
108
|
+
run: ruff format --check src tests scripts
|
|
109
|
+
- name: Mypy
|
|
110
|
+
run: mypy src
|
|
111
|
+
|
|
112
|
+
docs:
|
|
113
|
+
name: Docs lint
|
|
114
|
+
runs-on: ubuntu-latest
|
|
115
|
+
steps:
|
|
116
|
+
- uses: actions/checkout@v4
|
|
117
|
+
- name: Markdownlint
|
|
118
|
+
uses: DavidAnson/markdownlint-cli2-action@v18
|
|
119
|
+
with:
|
|
120
|
+
config: .markdownlint-cli2.jsonc
|
|
121
|
+
globs: |
|
|
122
|
+
README.md
|
|
123
|
+
CHANGELOG.md
|
|
124
|
+
docs/**/*.md
|
|
125
|
+
examples/**/*.md
|
|
126
|
+
|
|
127
|
+
metadata:
|
|
128
|
+
name: Metadata validation
|
|
129
|
+
runs-on: ubuntu-latest
|
|
130
|
+
steps:
|
|
131
|
+
- uses: actions/checkout@v4
|
|
132
|
+
- uses: actions/setup-python@v5
|
|
133
|
+
with:
|
|
134
|
+
python-version: "3.13"
|
|
135
|
+
cache: pip
|
|
136
|
+
- name: Install validators
|
|
137
|
+
run: pip install build cffconvert jsonschema twine
|
|
138
|
+
- name: Validate CITATION.cff
|
|
139
|
+
run: cffconvert --validate
|
|
140
|
+
- name: Validate ro-crate-metadata.json is valid JSON
|
|
141
|
+
run: python -c "import json; json.loads(open('ro-crate-metadata.json').read())"
|
|
142
|
+
- name: Validate codemeta.json is valid JSON
|
|
143
|
+
run: python -c "import json; json.loads(open('codemeta.json').read())"
|
|
144
|
+
- name: Build sdist and wheel
|
|
145
|
+
run: python -m build
|
|
146
|
+
- name: Validate built package metadata
|
|
147
|
+
run: python -m twine check dist/*
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
name: Build & Publish
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
id-token: write
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v6
|
|
19
|
+
- uses: actions/setup-python@v6
|
|
20
|
+
with:
|
|
21
|
+
python-version: "3.11"
|
|
22
|
+
- name: Install build tools
|
|
23
|
+
run: pip install build
|
|
24
|
+
- name: Build sdist and wheel
|
|
25
|
+
run: python -m build
|
|
26
|
+
- name: Publish to PyPI
|
|
27
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: local
|
|
3
|
+
hooks:
|
|
4
|
+
- id: ruff-check
|
|
5
|
+
name: ruff check
|
|
6
|
+
entry: python -m ruff check
|
|
7
|
+
language: system
|
|
8
|
+
types_or: [python, pyi]
|
|
9
|
+
args: [src, tests, scripts]
|
|
10
|
+
pass_filenames: false
|
|
11
|
+
- id: ruff-format
|
|
12
|
+
name: ruff format
|
|
13
|
+
entry: python -m ruff format --check
|
|
14
|
+
language: system
|
|
15
|
+
types_or: [python, pyi]
|
|
16
|
+
args: [src, tests, scripts]
|
|
17
|
+
pass_filenames: false
|
|
18
|
+
- id: mypy
|
|
19
|
+
name: mypy
|
|
20
|
+
entry: python -m mypy src
|
|
21
|
+
language: system
|
|
22
|
+
types_or: [python, pyi]
|
|
23
|
+
pass_filenames: false
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the Decision Trace Reconstructor are documented here. Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres to [Semantic Versioning](https://semver.org/).
|
|
4
|
+
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Release workflow publishing to PyPI via trusted publishing, triggered by tag pushes and by manual dispatch (used once to publish the existing v0.1.2 line).
|
|
10
|
+
|
|
11
|
+
## [0.1.2] - 2026-06-12
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Vendored OEP contract example (`examples/oep_code_review_agent/`) pinning the generic-jsonl mapping, JSONL projection, and expected feasibility report from the Operational Evidence Plane integration, with `tests/integration/test_example_oep_code_review.py` replaying the ingest-and-reconstruct path so a breaking change to the mapping parser or feasibility shape fails in this repository's CI rather than only downstream.
|
|
16
|
+
- CI job that installs `.[all,dev]` and runs the test suite with every optional adapter importable, so adapter dependency breakage is caught in this repository.
|
|
17
|
+
- Dependabot configuration for pip dependencies and GitHub Actions.
|
|
18
|
+
- CI concurrency group cancelling superseded pull-request runs.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Consolidated the duplicated adapter timestamp coercion helpers into `reconstructor.adapters._time` (plain, millisecond-heuristic, and lenient float-string variants) and the duplicated hashed content-field summary into `reconstructor.adapters._payloads`. Adapter behavior is unchanged: the pinned worked-example outputs remain byte-identical, and the LangSmith and OTLP variants keep their intentionally different semantics.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- `reconstructor.__version__` now matches the released package version; `decision-trace --version` had continued to report 0.1.0 after the v0.1.1 release.
|
|
27
|
+
|
|
28
|
+
## [0.1.1] - 2026-05-27
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- `parse_simple_yaml` now accepts the empty flow-mapping notation `{}` as an empty dict, mirroring the existing handling for `[]` as an empty list. This allows operators to declare "no follow-up absorption" in Generic JSONL mapping configs as `absorb_followups: {}`. Non-empty flow mappings (for example `{a: 1}`) continue to be rejected, but now with an explicit `ValueError` rather than silently coerced to a string. Regression covered in `tests/unit/adapters/generic_jsonl/test_generic_jsonl_utils.py`.
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- Generic JSONL adapter docs (`docs/adapters/generic-jsonl.md`) gained a "Minimal Mapping (No Follow-Up Absorption)" section that links to the Operational Evidence Plane's pinned `mapping.v0.yaml` as a real-world example of the no-`absorb_followups` shape, alongside the existing `examples/generic_jsonl_basic_agent/` example which demonstrates the paired tool-call / tool-result pattern.
|
|
37
|
+
|
|
38
|
+
## [0.1.0] - 2026-04-28
|
|
39
|
+
|
|
40
|
+
Initial public release of the Decision Trace Reconstructor: a reproducible toolkit for reconstructing decision traces from agent, orchestration, telemetry, and public-incident evidence.
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
|
|
44
|
+
- Six-stage reconstruction pipeline: fragment collection, temporal ordering, chain assembly, decision-boundary detection, decision-event schema mapping, and feasibility reporting.
|
|
45
|
+
- CLI entry point `decision-trace` with commands for reconstruction, synthetic evaluation, named-incident evaluation, schema export, and adapter-specific ingest flows.
|
|
46
|
+
- Ten executable regime adapters: LangSmith/LangGraph, OpenTelemetry GenAI OTLP, AWS Bedrock AgentCore, OpenAI Agents SDK, Anthropic Messages/Computer Use, MCP, CrewAI, Microsoft Agent Framework/AutoGen, Pydantic AI, and Generic JSONL.
|
|
47
|
+
- Worked examples and golden-output integration tests for representative agent stacks, plus the `replit_drop_database` public-incident fixture.
|
|
48
|
+
- Synthetic scenario generator for the architecture × stack-coverage evaluation matrix and named-incident fixtures.
|
|
49
|
+
- Structured output layer with Pydantic v2 models, JSON Schema export, W3C PROV-O JSON-LD, and optional Parquet output.
|
|
50
|
+
- Quarto report template rendering evaluation artifacts from `results/*.json`.
|
|
51
|
+
- Scientific release metadata and packaging files: `CITATION.cff`, `codemeta.json`, `ro-crate-metadata.json`, `MANIFEST.in`, Apache-2.0 license, and Python 3.11+ package metadata.
|
|
52
|
+
- CI and local quality gates for pytest, Ruff, mypy, package build, and metadata validation.
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
|
|
56
|
+
- README, report, and release metadata now describe the public artifact set without citing unpublished companion papers.
|
|
57
|
+
- Release packaging now includes documentation, examples, results, tests, scripts, and scientific metadata in the source distribution.
|
|
58
|
+
|
|
59
|
+
### Fixed
|
|
60
|
+
|
|
61
|
+
- Replaced Python's randomized string `hash()` with a SHA-256-based deterministic seed for reproducible synthetic evaluations across processes, hosts, and Python versions.
|
|
62
|
+
- Temporal ordering now respects `parent_trace_id` causality before timestamp tie-breaking, with deterministic fallback for cycles.
|
|
63
|
+
- `make check` now includes Ruff format checking, matching the documented local release gate.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: >-
|
|
3
|
+
If you use the Decision Trace Reconstructor in academic work, please
|
|
4
|
+
cite it via the metadata below. It is the reference implementation of
|
|
5
|
+
the Decision Evidence Maturity Model (DEMM) property-level
|
|
6
|
+
reconstructability assessment.
|
|
7
|
+
type: software
|
|
8
|
+
title: "Decision Trace Reconstructor"
|
|
9
|
+
abstract: >-
|
|
10
|
+
Post-hoc reconstruction of multi-step decision chains from fragmentary
|
|
11
|
+
evidence, with decision-event schema mapping and authorization-envelope substitution
|
|
12
|
+
for ML-opaque steps. Reference implementation of the property-level
|
|
13
|
+
reconstructability assessment used by the Decision Evidence Maturity Model
|
|
14
|
+
(DEMM).
|
|
15
|
+
authors:
|
|
16
|
+
- family-names: Solozobov
|
|
17
|
+
given-names: Oleg
|
|
18
|
+
orcid: "https://orcid.org/0009-0009-0105-7459"
|
|
19
|
+
version: 0.1.2
|
|
20
|
+
date-released: 2026-06-12
|
|
21
|
+
doi: 10.5281/zenodo.19851573
|
|
22
|
+
identifiers:
|
|
23
|
+
- type: doi
|
|
24
|
+
value: 10.5281/zenodo.19851573
|
|
25
|
+
description: "Concept DOI (latest version, auto-tracks)"
|
|
26
|
+
- type: doi
|
|
27
|
+
value: 10.5281/zenodo.20673396
|
|
28
|
+
description: "DOI of v0.1.2 snapshot"
|
|
29
|
+
- type: doi
|
|
30
|
+
value: 10.5281/zenodo.20409680
|
|
31
|
+
description: "DOI of v0.1.1 snapshot"
|
|
32
|
+
- type: doi
|
|
33
|
+
value: 10.5281/zenodo.19851574
|
|
34
|
+
description: "DOI of v0.1.0 snapshot"
|
|
35
|
+
license: Apache-2.0
|
|
36
|
+
keywords:
|
|
37
|
+
- governance evidence
|
|
38
|
+
- decision trace reconstruction
|
|
39
|
+
- agentic AI governance
|
|
40
|
+
- decision event schema
|
|
41
|
+
- DEMM
|
|
42
|
+
- post-hoc audit
|
|
43
|
+
- W3C PROV-O
|
|
44
|
+
repository-code: "https://decisiontrace.org/reconstructor"
|
|
45
|
+
url: "https://decisiontrace.org/reconstructor/v0.1.2"
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work.
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including
|
|
48
|
+
the original version of the Work and any modifications or additions
|
|
49
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
50
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
52
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
53
|
+
means any form of electronic, verbal, or written communication sent
|
|
54
|
+
to the Licensor or its representatives, including but not limited to
|
|
55
|
+
communication on electronic mailing lists, source code control systems,
|
|
56
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
57
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
58
|
+
excluding communication that is conspicuously marked or otherwise
|
|
59
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
60
|
+
|
|
61
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
62
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
63
|
+
subsequently incorporated within the Work.
|
|
64
|
+
|
|
65
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
69
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
70
|
+
Work and such Derivative Works in Source or Object form.
|
|
71
|
+
|
|
72
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
(except as stated in this section) patent license to make, have made,
|
|
76
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
77
|
+
where such license applies only to those patent claims licensable
|
|
78
|
+
by such Contributor that are necessarily infringed by their
|
|
79
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
80
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
81
|
+
institute patent litigation against any entity (including a
|
|
82
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
83
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
84
|
+
or contributory patent infringement, then any patent licenses
|
|
85
|
+
granted to You under this License for that Work shall terminate
|
|
86
|
+
as of the date such litigation is filed.
|
|
87
|
+
|
|
88
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
89
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
90
|
+
modifications, and in Source or Object form, provided that You
|
|
91
|
+
meet the following conditions:
|
|
92
|
+
|
|
93
|
+
(a) You must give any other recipients of the Work or
|
|
94
|
+
Derivative Works a copy of this License; and
|
|
95
|
+
|
|
96
|
+
(b) You must cause any modified files to carry prominent notices
|
|
97
|
+
stating that You changed the files; and
|
|
98
|
+
|
|
99
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
100
|
+
that You distribute, all copyright, patent, trademark, and
|
|
101
|
+
attribution notices from the Source form of the Work,
|
|
102
|
+
excluding those notices that do not pertain to any part of
|
|
103
|
+
the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
106
|
+
distribution, then any Derivative Works that You distribute must
|
|
107
|
+
include a readable copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding any notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
119
|
+
that such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions stated in this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions.
|
|
133
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
134
|
+
the terms of any separate license agreement you may have executed
|
|
135
|
+
with Licensor regarding such Contributions.
|
|
136
|
+
|
|
137
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
138
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
139
|
+
except as required for reasonable and customary use in describing the
|
|
140
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
141
|
+
|
|
142
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
143
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
144
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
145
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
146
|
+
implied, including, without limitation, any warranties or conditions
|
|
147
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
148
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
149
|
+
appropriateness of using or redistributing the Work and assume any
|
|
150
|
+
risks associated with Your exercise of permissions under this License.
|
|
151
|
+
|
|
152
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
153
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
154
|
+
unless required by applicable law (such as deliberate and grossly
|
|
155
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
156
|
+
liable to You for damages, including any direct, indirect, special,
|
|
157
|
+
incidental, or consequential damages of any character arising as a
|
|
158
|
+
result of this License or out of the use or inability to use the
|
|
159
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
160
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
161
|
+
other commercial damages or losses), even if such Contributor
|
|
162
|
+
has been advised of the possibility of such damages.
|
|
163
|
+
|
|
164
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
165
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
166
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
173
|
+
of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
Copyright 2026 Oleg Solozobov
|
|
178
|
+
|
|
179
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
180
|
+
you may not use this file except in compliance with the License.
|
|
181
|
+
You may obtain a copy of the License at
|
|
182
|
+
|
|
183
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
184
|
+
|
|
185
|
+
Unless required by applicable law or agreed to in writing, software
|
|
186
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
187
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
188
|
+
See the License for the specific language governing permissions and
|
|
189
|
+
limitations under the License.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
include CHANGELOG.md
|
|
2
|
+
include CITATION.cff
|
|
3
|
+
include codemeta.json
|
|
4
|
+
include ro-crate-metadata.json
|
|
5
|
+
include Makefile
|
|
6
|
+
include .markdownlint-cli2.jsonc
|
|
7
|
+
include .pre-commit-config.yaml
|
|
8
|
+
|
|
9
|
+
graft .github
|
|
10
|
+
graft docs
|
|
11
|
+
graft examples
|
|
12
|
+
graft results
|
|
13
|
+
graft scripts
|
|
14
|
+
graft tests
|
|
15
|
+
|
|
16
|
+
prune examples/*/out
|
|
17
|
+
|
|
18
|
+
global-exclude __pycache__
|
|
19
|
+
global-exclude *.py[cod]
|
|
20
|
+
global-exclude .DS_Store
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
PYTHON ?= python
|
|
2
|
+
|
|
3
|
+
.PHONY: install-dev test lint format format-check typecheck build check
|
|
4
|
+
|
|
5
|
+
install-dev:
|
|
6
|
+
$(PYTHON) -m pip install -e '.[dev,parquet]'
|
|
7
|
+
|
|
8
|
+
test:
|
|
9
|
+
$(PYTHON) -m pytest -q
|
|
10
|
+
|
|
11
|
+
lint:
|
|
12
|
+
$(PYTHON) -m ruff check src tests scripts
|
|
13
|
+
|
|
14
|
+
format:
|
|
15
|
+
$(PYTHON) -m ruff format src tests scripts
|
|
16
|
+
|
|
17
|
+
format-check:
|
|
18
|
+
$(PYTHON) -m ruff format --check src tests scripts
|
|
19
|
+
|
|
20
|
+
typecheck:
|
|
21
|
+
$(PYTHON) -m mypy src
|
|
22
|
+
|
|
23
|
+
build:
|
|
24
|
+
$(PYTHON) -m build
|
|
25
|
+
|
|
26
|
+
check: lint format-check typecheck test build
|