target-revenue/specs
tegwick 9566e16a97 Implement Development Effort Calculator (WP-0010-T02)
src/target_revenue/effort_calculator.py implements Candidate A
(labor-cost-anchored, accepted T01): commit-timestamp session-gap
clustering for human interaction time, workplan/task-volume counts via
direct workplans/ directory parsing (no state-hub dependency, works
uniformly on any repo using this repo's own convention), file/line
counts with generated/vendored-path exclusion, and caller-supplied
token-cost pricing. estimate_target_basis() combines these and returns
a derivation dict (every input shown) plus a warnings list - never a
black-box dollar figure.

1-day manual-work floor, as requested: any raw commit-clustered
estimate below 1.0 day is floored and flagged with a warning that this
is very likely a measurement gap (commit-clustering is a floor
estimate by design) that should usually be compensated for by manual
override, not trusted at face value. A second, independent
sanity-check warning fires when finished-workplan/task volume is
substantial but the time estimate is still low, even above the floor -
demonstrated live against target-revenue's own history (7 finished
workplans, 57 tasks correctly flagged a 2.38-day estimate as
under-counted).

scripts/effort_calculator_cli.py: CLI wrapper printing JSON, following
the same offline-first, no-Phase-declaration pattern as
scripts/trf_onboard.py. tests/test_effort_calculator.py (15
deterministic tests, throwaway git repos/tmp_path fixtures) covers
commit clustering, workplan/task parsing, size-metric exclusion,
token-cost pricing, the floor-and-warning behavior, the sanity-check
warning, and an end-to-end smoke test. No new hard dependency.
2026-07-30 13:16:44 +02:00
..
CanonicalizationReviewChecklist.md Advance WP-0007: degeneration research, profile catalog, canonicalization checklist 2026-07-29 22:31:19 +02:00
CanonicalMonetizationProfiles.md Advance WP-0007: degeneration research, profile catalog, canonicalization checklist 2026-07-29 22:31:19 +02:00
DevelopmentEffortCalculatorConcept.md Implement Development Effort Calculator (WP-0010-T02) 2026-07-30 13:16:44 +02:00
EnforcementNetworkConcept.md Close WP-0004/WP-0005 with alpha/beta legal-review deferral 2026-07-29 20:46:49 +02:00
MonetizationExtensionSpecification.md Merge spec/ into specs/: one specs directory for the whole repo 2026-07-29 10:22:14 +02:00
OpenQuestions-WorkingDefaults.md Close WP-0007: confirm linear-longstop-v0 as adopted v1 norm (T02) 2026-07-29 22:37:08 +02:00
PhaseManifestSpecification.md Merge spec/ into specs/: one specs directory for the whole repo 2026-07-29 10:22:14 +02:00
PilotPhaseCandidateSurvey.md Add info-tech-canon as first dry-run pilot candidate, exercise onboarding routine 2026-07-29 23:15:42 +02:00
ProductRequirementsDocument.md Set up practical implementation workplans (WP-0006/0007/0008) 2026-07-29 20:27:29 +02:00
TargetDegenerationPolicyResearch.md Advance WP-0007: degeneration research, profile catalog, canonicalization checklist 2026-07-29 22:31:19 +02:00
TargetLedgerSpecification.md Fix stale administrative-correction reference in TargetLedgerSpecification §5 2026-07-29 19:49:51 +02:00
TargetRevenueCommercialUseAgreement-V1C1.md Close WP-0004/WP-0005 with alpha/beta legal-review deferral 2026-07-29 20:46:49 +02:00
TargetRevenueControlPlaneConcept.md Accept WP-0009-T01: rights tiers confirmed, option (a) chosen over recommendation 2026-07-30 13:06:36 +02:00
TargetRevenueFrameworkCore.md Fix TargetRevenueFrameworkCore §1.11 extension-redefinition scope drift 2026-07-29 20:02:48 +02:00
TargetRevenueLicenseConcept.md Merge spec/ into specs/: one specs directory for the whole repo 2026-07-29 10:22:14 +02:00
TargetRevenueSourceLicense-V1C1.md Close WP-0004/WP-0005 with alpha/beta legal-review deferral 2026-07-29 20:46:49 +02:00
TechnicalSpecificationDocument.md Draft Commercial Use Agreement V1C1 template 2026-07-29 12:48:23 +02:00
TRSL-ContributorLicenseAgreement-Draft.md Advance WP-0008: governance, candidate survey, pilot manifests, CLA draft 2026-07-29 22:52:52 +02:00
TRSL-Governance.md Advance WP-0008: governance, candidate survey, pilot manifests, CLA draft 2026-07-29 22:52:52 +02:00
TrustServiceOnboarding.md Define and implement multi-repo onboarding mechanism (WP-0006-T07) 2026-07-29 22:00:34 +02:00
TrustServiceProductRequirementsDocument.md Add Trust Service PRD (WP-0006-T01) 2026-07-29 20:50:06 +02:00