specfact-cli 0.50.1__tar.gz → 0.51.1__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.
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/PKG-INFO +3 -2
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/README.md +2 -1
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/pyproject.toml +1 -1
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/bundled-module-registry/index.json +3 -3
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/__init__.py +1 -1
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/__init__.py +1 -1
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/cli.py +3 -1
- specfact_cli-0.51.1/src/specfact_cli/evidence.py +74 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/init/module-package.yaml +3 -3
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/init/src/first_run_selection.py +5 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/module_packages.py +11 -0
- specfact_cli-0.51.1/src/specfact_cli/traceability.py +284 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/.gitignore +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/LICENSE +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/keys/README.md +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/keys/module-signing-public.pem +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/mappings/node-async.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/mappings/python-async.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/mappings/speckit-default.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/schemas/deviation.schema.json +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/schemas/plan.schema.json +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/schemas/protocol.schema.json +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/github-action.yml.j2 +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/persona/architect.md.j2 +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/persona/developer.md.j2 +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/persona/product-owner.md.j2 +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/plan.bundle.yaml.j2 +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/policies/kanban.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/policies/mixed.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/policies/safe.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/policies/scrum.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/pr-template.md.j2 +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/protocol.yaml.j2 +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/resources/templates/telemetry.yaml.example +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/__main__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/adapters/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/adapters/ado.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/adapters/backlog_base.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/adapters/base.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/adapters/github.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/adapters/openspec.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/adapters/openspec_parser.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/adapters/registry.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/adapters/speckit.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/agents/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/agents/analyze_agent.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/agents/base.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/agents/plan_agent.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/agents/registry.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/agents/sync_agent.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/ambiguity_scanner.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/code_analyzer.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/constitution_evidence_extractor.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/contract_extractor.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/control_flow_analyzer.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/graph_analyzer.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/relationship_mapper.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/requirement_extractor.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/test_pattern_extractor.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/backlog/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/backlog/adapters/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/backlog/adapters/base.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/backlog/converter.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/backlog/filters.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/backlog/mappers/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/backlog/mappers/ado_mapper.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/backlog/mappers/base.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/backlog/mappers/github_mapper.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/backlog/mappers/template_config.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/_bundle_shim.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/analyze.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/contract_cmd.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/drift.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/enforce.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/generate.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/import_cmd.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/init.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/migrate.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/plan.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/project_cmd.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/repro.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/sdd.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/spec.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/sync.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/update.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/commands/validate.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/common/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/common/bundle_factory.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/common/logger_setup.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/common/logging_utils.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/common/text_utils.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/common/utils.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/comparators/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/comparators/plan_comparator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/contracts/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/contracts/crosshair_props.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/contracts/module_interface.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/enrichers/constitution_enricher.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/enrichers/plan_enricher.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/generators/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/generators/contract_generator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/generators/openapi_extractor.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/generators/persona_exporter.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/generators/plan_generator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/generators/protocol_generator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/generators/report_generator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/generators/task_generator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/generators/test_to_openapi.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/generators/workflow_generator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/groups/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/groups/codebase_group.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/groups/govern_group.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/groups/member_group.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/groups/project_group.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/groups/spec_group.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/importers/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/importers/speckit_converter.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/importers/speckit_scanner.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/integrations/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/integrations/specmatic.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/merge/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/merge/resolver.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/migrations/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/migrations/plan_migrator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/backlog_item.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/bridge.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/capabilities.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/change.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/contract.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/deviation.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/dor_config.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/enforcement.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/module_package.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/persona_template.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/plan.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/project.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/protocol.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/quality.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/requirements.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/sdd.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/source_tracking.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/task.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/models/validation.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modes/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modes/detector.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modes/router.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/_bundle_import.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/init/src/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/init/src/app.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/init/src/commands.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/module_io_shim.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/module_registry/module-package.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/module_registry/src/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/module_registry/src/app.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/module_registry/src/commands.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/upgrade/module-package.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/upgrade/src/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/upgrade/src/app.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/upgrade/src/commands.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/parsers/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/parsers/persona_importer.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/alias_manager.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/bootstrap.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/bridge_registry.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/crypto_validator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/custom_registries.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/dependency_resolver.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/extension_registry.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/help_cache.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/marketplace_client.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/metadata.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/module_availability.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/module_discovery.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/module_grouping.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/module_installer.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/module_lifecycle.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/module_security.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/module_state.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/registry/registry.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/requirements/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/requirements/context.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/resources/semgrep/async.yml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/resources/semgrep/code-quality.yml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/resources/semgrep/feature-detection.yml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/runtime.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/bridge_probe.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/bridge_sync.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/bridge_sync_openspec_md_parse.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/bridge_sync_requirement_from_proposal.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/bridge_sync_requirement_helpers.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/bridge_sync_tasks_from_proposal.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/bridge_sync_what_changes_format.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/bridge_sync_write_openspec_from_proposal.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/bridge_watch.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/change_detector.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/code_to_spec.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/drift_detector.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/repository_sync.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/spec_to_code.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/spec_to_tests.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/watcher.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/sync/watcher_enhanced.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/telemetry.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/templates/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/templates/defaults/defect_v1.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/templates/defaults/enabler_v1.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/templates/defaults/spike_v1.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/templates/defaults/user_story_v1.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/templates/frameworks/scrum/user_story_v1.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/templates/personas/product-owner/user_story_v1.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/templates/providers/ado/work_item_v1.yaml +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/templates/registry.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/templates/specification_templates.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/acceptance_criteria.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/auth_tokens.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/bundle_converters.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/bundle_loader.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/code_change_detector.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/console.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/content_sanitizer.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/context_detection.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/contract_predicates.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/enrichment_context.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/enrichment_parser.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/env_manager.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/feature_keys.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/git.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/github_annotations.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/icontract_helpers.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/ide_setup.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/incremental_check.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/metadata.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/optional_deps.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/performance.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/persona_ownership.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/progress.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/progressive_disclosure.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/project_artifact_write.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/prompts.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/sdd_discovery.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/source_scanner.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/startup_checks.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/structure.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/structured_io.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/suggestions.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/terminal.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/utils/yaml_utils.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validation/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validation/command_audit.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/agile_validation.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/change_proposal_integration.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/cli_first_validator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/contract_validator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/fsm.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/repro_checker.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/schema.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/contract_populator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/crosshair_runner.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/crosshair_summary.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/dependency_installer.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/framework_detector.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/frameworks/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/frameworks/base.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/frameworks/django.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/frameworks/drf.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/frameworks/fastapi.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/frameworks/flask.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/harness_generator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/models.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/orchestrator.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/specmatic_runner.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/validators/sidecar/unannotated_detector.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/versioning/__init__.py +0 -0
- {specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/versioning/analyzer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: specfact-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.51.1
|
|
4
4
|
Summary: AI-bloat defense CLI for Python teams. Run deterministic code review, cleanup forecasts, and spec/contract evidence for AI-assisted and brownfield delivery.
|
|
5
5
|
Project-URL: Homepage, https://github.com/nold-ai/specfact-cli
|
|
6
6
|
Project-URL: Repository, https://github.com/nold-ai/specfact-cli.git
|
|
@@ -436,7 +436,7 @@ Optional module-deep paths include:
|
|
|
436
436
|
|
|
437
437
|
## Module system
|
|
438
438
|
|
|
439
|
-
Official workflow behavior ships from `nold-ai/specfact-cli-modules`. The core CLI owns bootstrap, runtime contracts, trust checks, logging, and the grouped command surface. Installed modules add families such as `project`, `backlog`, `code`, `spec`, and `
|
|
439
|
+
Official workflow behavior ships from `nold-ai/specfact-cli-modules`. The core CLI owns bootstrap, runtime contracts, trust checks, logging, and the grouped command surface. Installed modules add families such as `project`, `backlog`, `code`, `spec`, `govern`, and `requirements`.
|
|
440
440
|
|
|
441
441
|
Install examples:
|
|
442
442
|
|
|
@@ -446,6 +446,7 @@ specfact module install nold-ai/specfact-backlog
|
|
|
446
446
|
specfact module install nold-ai/specfact-codebase
|
|
447
447
|
specfact module install nold-ai/specfact-code-review
|
|
448
448
|
specfact module install nold-ai/specfact-govern
|
|
449
|
+
specfact module install nold-ai/specfact-requirements
|
|
449
450
|
```
|
|
450
451
|
|
|
451
452
|
If startup warns that modules are missing or outdated, run:
|
|
@@ -153,7 +153,7 @@ Optional module-deep paths include:
|
|
|
153
153
|
|
|
154
154
|
## Module system
|
|
155
155
|
|
|
156
|
-
Official workflow behavior ships from `nold-ai/specfact-cli-modules`. The core CLI owns bootstrap, runtime contracts, trust checks, logging, and the grouped command surface. Installed modules add families such as `project`, `backlog`, `code`, `spec`, and `
|
|
156
|
+
Official workflow behavior ships from `nold-ai/specfact-cli-modules`. The core CLI owns bootstrap, runtime contracts, trust checks, logging, and the grouped command surface. Installed modules add families such as `project`, `backlog`, `code`, `spec`, `govern`, and `requirements`.
|
|
157
157
|
|
|
158
158
|
Install examples:
|
|
159
159
|
|
|
@@ -163,6 +163,7 @@ specfact module install nold-ai/specfact-backlog
|
|
|
163
163
|
specfact module install nold-ai/specfact-codebase
|
|
164
164
|
specfact module install nold-ai/specfact-code-review
|
|
165
165
|
specfact module install nold-ai/specfact-govern
|
|
166
|
+
specfact module install nold-ai/specfact-requirements
|
|
166
167
|
```
|
|
167
168
|
|
|
168
169
|
If startup warns that modules are missing or outdated, run:
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "specfact-cli"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.51.1"
|
|
8
8
|
description = "AI-bloat defense CLI for Python teams. Run deterministic code review, cleanup forecasts, and spec/contract evidence for AI-assisted and brownfield delivery."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"modules": [
|
|
3
3
|
{
|
|
4
|
-
"checksum_sha256": "
|
|
5
|
-
"download_url": "https://github.com/nold-ai/specfact-cli/releases/download/init-0.1.
|
|
4
|
+
"checksum_sha256": "df16eec4a1b9634feb449ea22c23c324d55b55e35468ebffc63ba18786b3976c",
|
|
5
|
+
"download_url": "https://github.com/nold-ai/specfact-cli/releases/download/init-0.1.43.tar.gz",
|
|
6
6
|
"id": "init",
|
|
7
|
-
"latest_version": "0.1.
|
|
7
|
+
"latest_version": "0.1.43"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"checksum_sha256": "35c592374b209224af9a826c21efa66947cc16bf680b20ee0463f44bee4f9b59",
|
|
@@ -87,6 +87,7 @@ KNOWN_BUNDLE_GROUP_OR_SHIM_NAMES: frozenset[str] = frozenset(
|
|
|
87
87
|
"project",
|
|
88
88
|
"spec",
|
|
89
89
|
"govern",
|
|
90
|
+
"requirements",
|
|
90
91
|
"contract",
|
|
91
92
|
"sdd",
|
|
92
93
|
"generate",
|
|
@@ -110,6 +111,7 @@ _INVOKED_TO_MARKETPLACE_MODULE: dict[str, str] = {
|
|
|
110
111
|
"govern": "nold-ai/specfact-govern",
|
|
111
112
|
"enforce": "nold-ai/specfact-govern",
|
|
112
113
|
"patch": "nold-ai/specfact-govern",
|
|
114
|
+
"requirements": "nold-ai/specfact-requirements",
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
# Removed flat root aliases -> canonical grouped replacement (see docs/migration/migration-guide.md).
|
|
@@ -418,7 +420,7 @@ Transform your development workflow with automated quality gates,
|
|
|
418
420
|
runtime contract validation, and state machine workflows.
|
|
419
421
|
|
|
420
422
|
Run **specfact init** or **specfact module install** to add workflow bundles
|
|
421
|
-
(backlog, code, project, spec, govern).
|
|
423
|
+
(backlog, code, project, spec, govern, requirements).
|
|
422
424
|
|
|
423
425
|
**Backlog Management**: Use `specfact backlog refine` for AI-assisted template-driven
|
|
424
426
|
refinement of backlog items from GitHub Issues, Azure DevOps, and other tools.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"""Core machine-readable evidence envelope contracts."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from collections.abc import Mapping
|
|
6
|
+
from types import MappingProxyType
|
|
7
|
+
from typing import Literal
|
|
8
|
+
|
|
9
|
+
from beartype import beartype
|
|
10
|
+
from icontract import ensure
|
|
11
|
+
from pydantic import AliasChoices, BaseModel, ConfigDict, Field, computed_field, field_serializer, field_validator
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@beartype
|
|
15
|
+
class EvidenceResultSummary(BaseModel):
|
|
16
|
+
"""Pass, failure, and advisory totals for one evidence category."""
|
|
17
|
+
|
|
18
|
+
model_config = ConfigDict(frozen=True, populate_by_name=True, serialize_by_alias=True)
|
|
19
|
+
|
|
20
|
+
pass_count: int = Field(
|
|
21
|
+
default=0, ge=0, validation_alias=AliasChoices("pass", "pass_count"), serialization_alias="pass"
|
|
22
|
+
)
|
|
23
|
+
fail_count: int = Field(
|
|
24
|
+
default=0, ge=0, validation_alias=AliasChoices("fail", "fail_count"), serialization_alias="fail"
|
|
25
|
+
)
|
|
26
|
+
advisory_count: int = Field(
|
|
27
|
+
default=0,
|
|
28
|
+
ge=0,
|
|
29
|
+
validation_alias=AliasChoices("advisory", "advisory_count"),
|
|
30
|
+
serialization_alias="advisory",
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@beartype
|
|
35
|
+
class EvidenceEnvelope(BaseModel):
|
|
36
|
+
"""Core-only envelope; runtime emitters belong to the modules repository."""
|
|
37
|
+
|
|
38
|
+
model_config = ConfigDict(frozen=True)
|
|
39
|
+
|
|
40
|
+
schema_version: Literal["1.0"] = "1.0"
|
|
41
|
+
profile: str = Field(..., min_length=1)
|
|
42
|
+
validation_results: Mapping[str, EvidenceResultSummary] = Field(default_factory=dict)
|
|
43
|
+
|
|
44
|
+
@field_validator("validation_results", mode="after")
|
|
45
|
+
@classmethod
|
|
46
|
+
def _freeze_validation_results(
|
|
47
|
+
cls, results: Mapping[str, EvidenceResultSummary]
|
|
48
|
+
) -> Mapping[str, EvidenceResultSummary]:
|
|
49
|
+
"""Copy result summaries into a read-only mapping for stable verdicts."""
|
|
50
|
+
return MappingProxyType({name: summary.model_copy(deep=True) for name, summary in results.items()})
|
|
51
|
+
|
|
52
|
+
@field_serializer("validation_results")
|
|
53
|
+
def _serialize_validation_results(self, results: Mapping[str, EvidenceResultSummary]) -> dict[str, dict[str, int]]:
|
|
54
|
+
"""Emit immutable results using the standardized JSON summary keys."""
|
|
55
|
+
return {name: summary.model_dump(by_alias=True) for name, summary in results.items()}
|
|
56
|
+
|
|
57
|
+
@computed_field
|
|
58
|
+
@property
|
|
59
|
+
@ensure(lambda result: result in {"PASS", "PASS_WITH_ADVISORY", "FAIL"})
|
|
60
|
+
def overall_verdict(self) -> Literal["PASS", "PASS_WITH_ADVISORY", "FAIL"]:
|
|
61
|
+
"""Derive the immutable CI verdict from validation result summaries."""
|
|
62
|
+
summaries = self.validation_results.values()
|
|
63
|
+
if any(summary.fail_count for summary in summaries):
|
|
64
|
+
return "FAIL"
|
|
65
|
+
if any(summary.advisory_count for summary in summaries):
|
|
66
|
+
return "PASS_WITH_ADVISORY"
|
|
67
|
+
return "PASS"
|
|
68
|
+
|
|
69
|
+
@computed_field
|
|
70
|
+
@property
|
|
71
|
+
@ensure(lambda result: result in {0, 1})
|
|
72
|
+
def ci_exit_code(self) -> int:
|
|
73
|
+
"""Return the CI exit code derived from the immutable verdict."""
|
|
74
|
+
return 1 if self.overall_verdict == "FAIL" else 0
|
{specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/init/module-package.yaml
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: init
|
|
2
|
-
version: 0.1.
|
|
2
|
+
version: 0.1.43
|
|
3
3
|
commands:
|
|
4
4
|
- init
|
|
5
5
|
category: core
|
|
@@ -17,5 +17,5 @@ publisher:
|
|
|
17
17
|
description: Initialize SpecFact workspace and bootstrap local configuration.
|
|
18
18
|
license: Apache-2.0
|
|
19
19
|
integrity:
|
|
20
|
-
checksum: sha256:
|
|
21
|
-
signature:
|
|
20
|
+
checksum: sha256:0addb2798172b9d6081de452c44e48b02effbffd4d6d1ba6528b20b17da366c6
|
|
21
|
+
signature: UsuEKTYI/jRHxXJGJ/WRkN79HhbjKaZPiXCFyjmGoHTytV0cHFDhgdKnc2POh9n70NwD50GecvZJNoCFlflBBQ==
|
{specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/modules/init/src/first_run_selection.py
RENAMED
|
@@ -146,6 +146,7 @@ _INSTALL_ALL_BUNDLES: tuple[str, ...] = (
|
|
|
146
146
|
"specfact-codebase",
|
|
147
147
|
"specfact-spec",
|
|
148
148
|
"specfact-govern",
|
|
149
|
+
"specfact-requirements",
|
|
149
150
|
)
|
|
150
151
|
|
|
151
152
|
# Includes marketplace-only bundles referenced by profiles (e.g. specfact-code-review).
|
|
@@ -158,6 +159,7 @@ MARKETPLACE_ONLY_BUNDLES: dict[str, str] = {
|
|
|
158
159
|
"specfact-codebase": "nold-ai/specfact-codebase",
|
|
159
160
|
"specfact-spec": "nold-ai/specfact-spec",
|
|
160
161
|
"specfact-govern": "nold-ai/specfact-govern",
|
|
162
|
+
"specfact-requirements": "nold-ai/specfact-requirements",
|
|
161
163
|
"specfact-code-review": "nold-ai/specfact-code-review",
|
|
162
164
|
}
|
|
163
165
|
|
|
@@ -170,6 +172,7 @@ BUNDLE_ALIAS_TO_CANONICAL: dict[str, str] = {
|
|
|
170
172
|
"code_review": "specfact-code-review",
|
|
171
173
|
"spec": "specfact-spec",
|
|
172
174
|
"govern": "specfact-govern",
|
|
175
|
+
"requirements": "specfact-requirements",
|
|
173
176
|
}
|
|
174
177
|
|
|
175
178
|
# Optional: names of *bundled* module dirs shipped inside this CLI wheel (see module_installer). Workflow
|
|
@@ -180,6 +183,7 @@ BUNDLE_TO_MODULE_NAMES: dict[str, list[str]] = {
|
|
|
180
183
|
"specfact-codebase": [],
|
|
181
184
|
"specfact-spec": [],
|
|
182
185
|
"specfact-govern": [],
|
|
186
|
+
"specfact-requirements": [],
|
|
183
187
|
"specfact-code-review": [],
|
|
184
188
|
}
|
|
185
189
|
|
|
@@ -194,6 +198,7 @@ BUNDLE_DISPLAY: dict[str, str] = {
|
|
|
194
198
|
"specfact-codebase": "Codebase quality (analyze, drift, validate, repro)",
|
|
195
199
|
"specfact-spec": "Spec & API (contract, spec, sdd, generate)",
|
|
196
200
|
"specfact-govern": "Governance (enforce, patch)",
|
|
201
|
+
"specfact-requirements": "Requirements evidence (requirements)",
|
|
197
202
|
"specfact-code-review": "Scored code review (code review gate)",
|
|
198
203
|
}
|
|
199
204
|
|
|
@@ -1252,6 +1252,17 @@ def _build_bundle_to_group() -> dict[str, tuple[str, str, Any]]:
|
|
|
1252
1252
|
"specfact-project": ("project", "Project lifecycle commands.", build_project_app),
|
|
1253
1253
|
"specfact-spec": ("spec", "Spec and contract commands: contract, api, sdd, generate.", build_spec_app),
|
|
1254
1254
|
"specfact-govern": ("govern", "Governance and quality gates: enforce, patch.", build_govern_app),
|
|
1255
|
+
"specfact-requirements": (
|
|
1256
|
+
"requirements",
|
|
1257
|
+
"Requirements evidence commands.",
|
|
1258
|
+
lambda: build_member_group(
|
|
1259
|
+
name="requirements",
|
|
1260
|
+
help_text="Requirements evidence commands.",
|
|
1261
|
+
members=(("requirements", "requirements"),),
|
|
1262
|
+
flatten_same_name="requirements",
|
|
1263
|
+
install_hint_module="nold-ai/specfact-requirements",
|
|
1264
|
+
),
|
|
1265
|
+
),
|
|
1255
1266
|
}
|
|
1256
1267
|
|
|
1257
1268
|
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"""Generic core artifact evidence index contracts and requirements adapter."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
from collections import Counter
|
|
7
|
+
from collections.abc import Sequence, Set
|
|
8
|
+
from enum import StrEnum
|
|
9
|
+
from typing import Literal
|
|
10
|
+
|
|
11
|
+
from beartype import beartype
|
|
12
|
+
from icontract import ensure, require
|
|
13
|
+
from pydantic import BaseModel, Field
|
|
14
|
+
|
|
15
|
+
from specfact_cli.models.project import ProjectBundle
|
|
16
|
+
from specfact_cli.models.requirements import RequirementInput
|
|
17
|
+
from specfact_cli.requirements.context import (
|
|
18
|
+
KNOWN_REQUIREMENT_CONTEXT_PROFILES,
|
|
19
|
+
STRICT_REQUIREMENT_CONTEXT_PROFILES,
|
|
20
|
+
RequirementContextValidationProfile,
|
|
21
|
+
load_requirements_from_bundle,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class ArtifactKind(StrEnum):
|
|
26
|
+
"""Normalized kinds that adapters may contribute to the evidence index."""
|
|
27
|
+
|
|
28
|
+
REQUIREMENT = "requirement"
|
|
29
|
+
ARCHITECTURE = "architecture"
|
|
30
|
+
SPECIFICATION = "specification"
|
|
31
|
+
CODE = "code"
|
|
32
|
+
TEST = "test"
|
|
33
|
+
CONTRACT = "contract"
|
|
34
|
+
OPENSPEC = "openspec"
|
|
35
|
+
SPECKIT = "speckit"
|
|
36
|
+
BACKLOG = "backlog"
|
|
37
|
+
ADR = "adr"
|
|
38
|
+
POLICY = "policy"
|
|
39
|
+
REVIEW = "review"
|
|
40
|
+
VALIDATION = "validation"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@beartype
|
|
44
|
+
class ArtifactLink(BaseModel):
|
|
45
|
+
"""Directed relationship between stable artifact identities."""
|
|
46
|
+
|
|
47
|
+
target: str = Field(..., min_length=1)
|
|
48
|
+
relation: str = Field(default="references", min_length=1)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@beartype
|
|
52
|
+
class ArtifactRecord(BaseModel):
|
|
53
|
+
"""Adapter-neutral evidence artifact with stable identity and fingerprint."""
|
|
54
|
+
|
|
55
|
+
identity: str = Field(..., min_length=1)
|
|
56
|
+
kind: ArtifactKind
|
|
57
|
+
locator: str = Field(..., min_length=1)
|
|
58
|
+
fingerprint: str = Field(..., min_length=1)
|
|
59
|
+
links: list[ArtifactLink] = Field(default_factory=list)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
@beartype
|
|
63
|
+
class ArtifactEvidenceIndex(BaseModel):
|
|
64
|
+
"""Deterministic core index; callers own persistence and rendering."""
|
|
65
|
+
|
|
66
|
+
schema_version: Literal["1"] = "1"
|
|
67
|
+
artifacts: list[ArtifactRecord] = Field(default_factory=list)
|
|
68
|
+
|
|
69
|
+
@ensure(lambda result: isinstance(result, str), "result must be JSON text")
|
|
70
|
+
def to_json(self) -> str:
|
|
71
|
+
"""Return canonical JSON suitable for a modules-owned persistence layer."""
|
|
72
|
+
return json.dumps(self.model_dump(mode="json"), sort_keys=True, separators=(",", ":"))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@beartype
|
|
76
|
+
class TraceabilityFinding(BaseModel):
|
|
77
|
+
"""Bounded index finding."""
|
|
78
|
+
|
|
79
|
+
code: str = Field(..., min_length=1)
|
|
80
|
+
identity: str = Field(..., min_length=1)
|
|
81
|
+
severity: Literal["warning", "error"]
|
|
82
|
+
location: str = Field(..., min_length=1)
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
@ensure(lambda result: isinstance(result, str), "result must be text")
|
|
86
|
+
def requirement_id(self) -> str:
|
|
87
|
+
"""Compatibility identifier for requirements-first callers."""
|
|
88
|
+
return self.identity.removeprefix("requirement:")
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@beartype
|
|
92
|
+
class ArtifactIndexBuildResult(BaseModel):
|
|
93
|
+
"""Index plus deterministic classifications and incremental rebuild facts."""
|
|
94
|
+
|
|
95
|
+
index: ArtifactEvidenceIndex
|
|
96
|
+
orphans: list[TraceabilityFinding] = Field(default_factory=list)
|
|
97
|
+
drift: list[TraceabilityFinding] = Field(default_factory=list)
|
|
98
|
+
ambiguities: list[TraceabilityFinding] = Field(default_factory=list)
|
|
99
|
+
contradictions: list[TraceabilityFinding] = Field(default_factory=list)
|
|
100
|
+
changed_identities: list[str] = Field(default_factory=list)
|
|
101
|
+
removed_identities: list[str] = Field(default_factory=list)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
TraceabilityResult = ArtifactIndexBuildResult
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def _severity(profile: str) -> Literal["warning", "error"]:
|
|
108
|
+
return "error" if profile in STRICT_REQUIREMENT_CONTEXT_PROFILES else "warning"
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
def _finding(code: str, identity: str, severity: Literal["warning", "error"]) -> TraceabilityFinding:
|
|
112
|
+
return TraceabilityFinding(code=code, identity=identity, severity=severity, location=f"artifacts[{identity}]")
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def _canonical_records(records: Sequence[ArtifactRecord]) -> tuple[list[ArtifactRecord], list[str]]:
|
|
116
|
+
grouped: dict[str, list[ArtifactRecord]] = {}
|
|
117
|
+
for record in records:
|
|
118
|
+
grouped.setdefault(record.identity, []).append(
|
|
119
|
+
record.model_copy(update={"links": sorted(record.links, key=lambda link: (link.target, link.relation))})
|
|
120
|
+
)
|
|
121
|
+
duplicates = sorted(identity for identity, values in grouped.items() if len(values) > 1)
|
|
122
|
+
canonical = [sorted(values, key=_record_signature)[0] for _, values in sorted(grouped.items())]
|
|
123
|
+
return canonical, duplicates
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def _record_signature(record: ArtifactRecord) -> str:
|
|
127
|
+
return json.dumps(record.model_dump(mode="json"), sort_keys=True, separators=(",", ":"))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def _incoming_links(records: Sequence[ArtifactRecord], identities: set[str]) -> Counter[str]:
|
|
131
|
+
return Counter(
|
|
132
|
+
link.target
|
|
133
|
+
for record in records
|
|
134
|
+
for link in record.links
|
|
135
|
+
if link.target in identities and link.target != record.identity
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def _orphan_findings(
|
|
140
|
+
records: Sequence[ArtifactRecord], incoming: Counter[str], severity: Literal["warning", "error"]
|
|
141
|
+
) -> list[TraceabilityFinding]:
|
|
142
|
+
return [
|
|
143
|
+
_finding("unlinked_artifact", record.identity, severity)
|
|
144
|
+
for record in records
|
|
145
|
+
if not record.links and not incoming[record.identity]
|
|
146
|
+
]
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def _classify_record_links(
|
|
150
|
+
record: ArtifactRecord, identities: set[str], severity: Literal["warning", "error"]
|
|
151
|
+
) -> list[TraceabilityFinding]:
|
|
152
|
+
findings: list[TraceabilityFinding] = []
|
|
153
|
+
for link in record.links:
|
|
154
|
+
if link.target == record.identity:
|
|
155
|
+
findings.append(_finding("self_referential_link", record.identity, severity))
|
|
156
|
+
elif link.target not in identities:
|
|
157
|
+
findings.append(_finding("dangling_link", record.identity, severity))
|
|
158
|
+
return findings
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def _link_findings(
|
|
162
|
+
records: Sequence[ArtifactRecord], identities: set[str], severity: Literal["warning", "error"]
|
|
163
|
+
) -> tuple[list[TraceabilityFinding], list[TraceabilityFinding]]:
|
|
164
|
+
findings = [finding for record in records for finding in _classify_record_links(record, identities, severity)]
|
|
165
|
+
return (
|
|
166
|
+
[finding for finding in findings if finding.code == "dangling_link"],
|
|
167
|
+
[finding for finding in findings if finding.code == "self_referential_link"],
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
def _rebuild_delta(
|
|
172
|
+
records: Sequence[ArtifactRecord], previous_index: ArtifactEvidenceIndex | None
|
|
173
|
+
) -> tuple[list[str], list[str]]:
|
|
174
|
+
prior = {record.identity: record for record in (previous_index.artifacts if previous_index else [])}
|
|
175
|
+
current = {record.identity: record for record in records}
|
|
176
|
+
changed = sorted(
|
|
177
|
+
identity
|
|
178
|
+
for identity, record in current.items()
|
|
179
|
+
if identity not in prior or _record_signature(record) != _record_signature(prior[identity])
|
|
180
|
+
)
|
|
181
|
+
return changed, sorted(set(prior) - set(current))
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
@require(
|
|
185
|
+
lambda records: all(isinstance(record, ArtifactRecord) for record in records),
|
|
186
|
+
"records must contain ArtifactRecord values",
|
|
187
|
+
)
|
|
188
|
+
@ensure(lambda result: isinstance(result, ArtifactIndexBuildResult), "result must be an ArtifactIndexBuildResult")
|
|
189
|
+
@beartype
|
|
190
|
+
def build_artifact_index(
|
|
191
|
+
records: Sequence[ArtifactRecord],
|
|
192
|
+
*,
|
|
193
|
+
previous_index: ArtifactEvidenceIndex | None = None,
|
|
194
|
+
profile: RequirementContextValidationProfile = "startup",
|
|
195
|
+
) -> ArtifactIndexBuildResult:
|
|
196
|
+
"""Build a generic deterministic index without collecting or persisting artifacts."""
|
|
197
|
+
severity = _severity(profile)
|
|
198
|
+
canonical, duplicates = _canonical_records(records)
|
|
199
|
+
identities = {record.identity for record in canonical}
|
|
200
|
+
incoming = _incoming_links(canonical, identities)
|
|
201
|
+
drift, contradictions = _link_findings(canonical, identities, severity)
|
|
202
|
+
changed, removed = _rebuild_delta(canonical, previous_index)
|
|
203
|
+
return ArtifactIndexBuildResult(
|
|
204
|
+
index=ArtifactEvidenceIndex(artifacts=canonical),
|
|
205
|
+
orphans=_orphan_findings(canonical, incoming, severity),
|
|
206
|
+
drift=drift,
|
|
207
|
+
ambiguities=[_finding("duplicate_identity", identity, severity) for identity in duplicates],
|
|
208
|
+
contradictions=contradictions,
|
|
209
|
+
changed_identities=changed,
|
|
210
|
+
removed_identities=removed,
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
@require(
|
|
215
|
+
lambda requirements: all(isinstance(requirement, RequirementInput) for requirement in requirements),
|
|
216
|
+
"requirements must contain RequirementInput values",
|
|
217
|
+
)
|
|
218
|
+
@beartype
|
|
219
|
+
def requirements_to_artifact_records(requirements: Sequence[RequirementInput]) -> list[ArtifactRecord]:
|
|
220
|
+
"""Map normalized requirements into generic core artifacts without parsing sources."""
|
|
221
|
+
return [
|
|
222
|
+
ArtifactRecord(
|
|
223
|
+
identity=f"requirement:{requirement.requirement_id}",
|
|
224
|
+
kind=ArtifactKind.REQUIREMENT,
|
|
225
|
+
locator=requirement.requirement_id,
|
|
226
|
+
fingerprint=json.dumps(requirement.model_dump(mode="json"), sort_keys=True, separators=(",", ":")),
|
|
227
|
+
links=[
|
|
228
|
+
ArtifactLink(target=f"{link.link_type}:{link.target}", relation=link.relation)
|
|
229
|
+
for link in requirement.evidence_links
|
|
230
|
+
],
|
|
231
|
+
)
|
|
232
|
+
for requirement in requirements
|
|
233
|
+
]
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def _known_target_records(requirements: Sequence[RequirementInput], known_targets: Set[str]) -> list[ArtifactRecord]:
|
|
237
|
+
kinds_by_target: dict[str, set[ArtifactKind]] = {}
|
|
238
|
+
link_kind_map = {
|
|
239
|
+
"architecture": ArtifactKind.ARCHITECTURE,
|
|
240
|
+
"spec": ArtifactKind.SPECIFICATION,
|
|
241
|
+
"code": ArtifactKind.CODE,
|
|
242
|
+
"test": ArtifactKind.TEST,
|
|
243
|
+
"validation": ArtifactKind.VALIDATION,
|
|
244
|
+
"requirement": ArtifactKind.REQUIREMENT,
|
|
245
|
+
}
|
|
246
|
+
for requirement in requirements:
|
|
247
|
+
for link in requirement.evidence_links:
|
|
248
|
+
if link.target in known_targets:
|
|
249
|
+
kinds_by_target.setdefault(link.target, set()).add(link_kind_map[str(link.link_type)])
|
|
250
|
+
return [
|
|
251
|
+
ArtifactRecord(
|
|
252
|
+
identity=f"{kind_prefix}:{target}",
|
|
253
|
+
kind=kind,
|
|
254
|
+
locator=target,
|
|
255
|
+
fingerprint=target,
|
|
256
|
+
)
|
|
257
|
+
for target in sorted(known_targets)
|
|
258
|
+
for kind in sorted(kinds_by_target.get(target, {ArtifactKind.CODE}), key=lambda item: item.value)
|
|
259
|
+
for kind_prefix in [next(prefix for prefix, value in link_kind_map.items() if value is kind)]
|
|
260
|
+
]
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
@require(lambda bundle: isinstance(bundle, ProjectBundle), "bundle must be a ProjectBundle")
|
|
264
|
+
@require(lambda profile: isinstance(profile, str) and bool(profile.strip()), "profile must not be empty")
|
|
265
|
+
@require(
|
|
266
|
+
lambda profile: profile in KNOWN_REQUIREMENT_CONTEXT_PROFILES, "profile must be a supported validation profile"
|
|
267
|
+
)
|
|
268
|
+
@ensure(lambda result: isinstance(result, TraceabilityResult), "result must be a TraceabilityResult")
|
|
269
|
+
@beartype
|
|
270
|
+
def analyze_requirement_traceability(
|
|
271
|
+
bundle: ProjectBundle,
|
|
272
|
+
*,
|
|
273
|
+
profile: RequirementContextValidationProfile,
|
|
274
|
+
known_targets: Set[str] | None = None,
|
|
275
|
+
) -> TraceabilityResult:
|
|
276
|
+
"""Analyze requirements; link drift requires a caller-provided target universe."""
|
|
277
|
+
requirements = load_requirements_from_bundle(bundle)
|
|
278
|
+
records = requirements_to_artifact_records(requirements)
|
|
279
|
+
if known_targets is not None:
|
|
280
|
+
records.extend(_known_target_records(requirements, known_targets))
|
|
281
|
+
result = build_artifact_index(records, profile=profile)
|
|
282
|
+
if known_targets is None:
|
|
283
|
+
return result.model_copy(update={"drift": []})
|
|
284
|
+
return result
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{specfact_cli-0.50.1 → specfact_cli-0.51.1}/src/specfact_cli/analyzers/contract_extractor.py
RENAMED
|
File without changes
|