Skip to content

feat(finops): add FinOps Value Economist and HVE value evidence/valuation skills - #3400

Open
VentureMavenWill (venturemavenwill) wants to merge 3 commits into
microsoft:mainfrom
venturemavenwill:feat/finops-value-economist-module
Open

VentureMavenWill (venturemavenwill) wants to merge 3 commits into
microsoft:mainfrom
venturemavenwill:feat/finops-value-economist-module

Conversation

@venturemavenwill

@venturemavenwill VentureMavenWill (venturemavenwill) commented Nov 15, 2026 •

Copy link
Copy Markdown

Pull Request

Description

This module proves the value of HVE.

Teams adopting Hypervelocity Engineering (HVE) generate rich delivery artifacts (.copilot-tracking/ RPI research, plans, changes, independent reviews, test summaries, and AI session accounting), yet previously had no native HVE module to collect tamper-evident value evidence and translate operational outcomes into defensible, Finance-ready monetary representations.

This PR contributes a standalone finops module to HVE Core combining verifiable value evidence collection with deterministic monetary valuation:

  • .github/agents/finops/finops-value-economist.agent.md (FinOps Value Economist): Interactive specialist agent that orchestrates HVE delivery/benefit evidence collection and deterministic FinOps monetary valuation, separating finance-approved booked value from stated-indicative estimates, modeled-counterfactual routing/forecast figures, and unmonetized-native-only leading indicators while keeping Finance sign-off with human decision owners.
  • .github/skills/finops/finops-value-evidence/ (finops-value-evidence): Read-only value evidence collector (Collect-HveValueEvidence.ps1 and collect-hve-value-evidence.sh), 9-category FinOps measurement reference (references/business-value-measurement.md), and Pester unit tests (tests/Collect-HveValueEvidence.Tests.ps1). Captures SHA-256-verified Git manifests, .copilot-tracking/ RPI deliverables and review verdicts, NUnit/JUnit test XML summaries, and AI session accounting outside -RepoRoot without mutating repository state.
  • .github/skills/finops/finops-value-valuation/ (finops-value-valuation): Zero-dependency deterministic monetary valuation engine (HveBenefitValuation.psm1, Measure-HveBenefitValue.ps1, and measure-hve-benefit-value.sh), valuation formula/guardrail reference (references/value-valuation.md), and Pester unit tests (tests/Measure-HveBenefitValue.Tests.ps1). Monetizes all nine FinOps value categories (revenue enablement, cost avoidance, capacity gained, labour augmentation, quality, speed, risk reduction, new capacity, and engagement) plus HVE RPI delivery evidence, enforces anti-inflation guardrails (redeployedShare, qualityFloorMet, verified demand, overlap_group deduplication), and computes net stated value, Benefit-Cost Ratio (BCR), and stated ROI %.
  • Documentation, manifest, and evals: Synchronized plugin.json, docs/plugins/hve-core.md, paired asset reference pages under docs/reference/, evals/agent-behavior/AGENTS.yml, evals/agent-behavior/stimuli/finops-value-economist.yml, evals/agent-behavior/eval.yaml, evals/skill-quality/eval.yaml, scripts/linting/skill-security-classification.json, and .cspell/ dictionaries.

Related Issue(s)

Closes #3401
Related to Peter-N91/hve-squad#170

Type of Change

Select all that apply:

Code & Documentation:

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Infrastructure & Configuration:

  • GitHub Actions workflow
  • Linting configuration (markdown, PowerShell, etc.)
  • Security configuration
  • DevContainer configuration
  • Dependency update

AI Artifacts:

  • Reviewed contribution with hve-builder and addressed all actionable findings
  • Copilot instructions (.github/instructions/*.instructions.md)
  • Copilot agent (.github/agents/*.agent.md)
  • Copilot skill (.github/skills/*/SKILL.md)
  • Copilot hook (.github/hooks/*/*.json)
  • Eval spec added/updated for changed AI artifacts (evals/)

Note for AI Artifact Contributors:

  • Agents: Research, indexing/referencing other project (using standard VS Code GitHub Copilot/MCP tools), planning, and general implementation agents likely already exist. Review .github/agents/ before creating new ones.
  • Skills: Must include both bash and PowerShell scripts. See Skills.
  • Model Versions: Contributions MUST target models listed in the model catalog (scripts/linting/model-catalog.json) whose provider appears in providerAllowlist and whose status is ga or preview. Run npm run lint:models to validate references.
  • See Agents Not Accepted and Model Version Requirements.

Other:

  • Script/automation (.ps1, .sh, .py)
  • Other (please describe):

Sample Prompts (for AI Artifact Contributions)

User Request:

Collect our repository's HVE delivery evidence and value the 40 accepted RPI features we delivered this quarter. Baseline effort was 8 hours per feature and observed effort with HVE was 3 hours, with 75% productive redeployment at $110/hr against $1,800 in AI tooling spend.

Execution Flow:

  1. FinOps Value Economist loads .github/skills/finops/finops-value-evidence/SKILL.md and executes Collect-HveValueEvidence.ps1 -RepoRoot . -OutputPath ../hve-value-evidence.json to capture a read-only SHA-256 repository and .copilot-tracking/ RPI delivery snapshot outside -RepoRoot.
  2. If any required monetary conversion driver (hourlyRate, redeployedShare, unit margin, or Finance approval reference) is missing, the agent pauses via ask_user rather than guessing assumptions.
  3. The agent loads .github/skills/finops/finops-value-valuation/SKILL.md, structures the claims/costs JSON, and invokes Measure-HveBenefitValue.ps1 -ClaimsPath ./claims.json -EvidencePath ../hve-value-evidence.json -OutputPath .copilot-tracking/finops/2026-11-15-q4-hve-stated-value.md so all monetary math, sensitivity bounds, and overlap_group deductions are computed deterministically by HveBenefitValuation.psm1.
  4. The agent writes .copilot-tracking/finops/2026-11-15-q4-hve-stated-value.md and presents the separated value table (finance-approved, stated-indicative, modeled-counterfactual, and unmonetized-native-only).

Output Artifacts:

.copilot-tracking/finops/2026-11-15-q4-hve-stated-value.md:

# HVE Stated Monetary Value Report

> **Governance Disclaimer:** Stated monetary figures are decision-support estimates derived from supplied operational evidence and explicit conversion assumptions. Only rows marked `finance-approved` carry documented Finance sign-off.

## Executive Summary

| Metric | Value | Basis |
| --- | --- | --- |
| Finance-Approved Value | $0.00 | `finance-approved` (booked) |
| Stated Indicative Value | $16,500.00 | `stated-indicative` (evidenced, pending Finance sign-off) |
| **Total Stated Evidenced Value** | **$16,500.00** | Sensitivity: $13,200.00 - $16,500.00 |
| Total Evidenced Cost | $1,800.00 | Measured / evidenced delivery & workload cost |
| **Net Stated Value** | **$14,700.00** | Stated Evidenced Value minus Evidenced Cost |
| Benefit-Cost Ratio (BCR) | 9.17x | Stated Evidenced Value / Evidenced Cost |
| Stated ROI (%) | 816.7% | Net Stated Value / Evidenced Cost |

Success Indicators:

  • Collect-HveValueEvidence.ps1 exits 0 with statusStableDuringCollection: true and writes the SHA-256 evidence bundle outside -RepoRoot without modifying repository working-tree status.
  • Measure-HveBenefitValue.ps1 exits 0, applies redeployedShare and overlap_group deduplication deterministically, keeps modeled-counterfactual figures out of totalStatedEvidencedValue, and emits matching JSON and Markdown reports.

For detailed contribution requirements, see:

Testing

Executed unit tests and repository PowerShell, schema, security, documentation, and eval validators locally:

  • Invoke-Pester on .github/skills/finops/finops-value-evidence/tests/Collect-HveValueEvidence.Tests.ps1 and .github/skills/finops/finops-value-valuation/tests/Measure-HveBenefitValue.Tests.ps1 — passed (4 passed, 0 failed)
  • Invoke-ScriptAnalyzer -Settings scripts/linting/PSScriptAnalyzer.psd1 across all 5 added .ps1/.psm1 files — passed (0 issues)
  • pwsh -NoProfile -File scripts/plugins/Sync-PluginManifest.ps1 -Check — passed
  • pwsh -NoProfile -File scripts/docs/Generate-AssetDocs.ps1 -WhatIf — passed (0 drift)
  • pwsh -NoProfile -File scripts/linting/Validate-AssetDocs.ps1 -FailOnMissing -CheckSync -ChangedFilesOnly — passed (0 errors, 0 warnings)
  • pwsh -NoProfile -File scripts/linting/Validate-MarkdownFrontmatter.ps1 -WarningsAsErrors -EnableSchemaValidation — passed
  • pwsh -NoProfile -File scripts/linting/Validate-SkillStructure.ps1 -WarningsAsErrors -ChangedFilesOnly — passed
  • pwsh -NoProfile -File scripts/linting/Test-CopyrightHeaders.ps1 -FailOnMissing — passed
  • pwsh -NoProfile -File scripts/linting/Invoke-JsonLint.ps1 — passed (58 JSON files)
  • pwsh -NoProfile -File scripts/linting/Invoke-LinkLanguageCheck.ps1 -ExcludePaths "scripts/tests/**" — passed
  • pwsh -NoProfile -File scripts/linting/Test-ModelReferences.ps1 -OutputPath logs/model-validation-results.json — passed
  • pwsh -NoProfile -File scripts/linting/Test-ArtifactPathPortability.ps1 -OutputPath logs/artifact-path-portability-results.json — passed
  • pwsh -NoProfile -File scripts/linting/Test-AgentColdStartBudget.ps1 — passed
  • pwsh -NoProfile -File scripts/linting/Validate-PlannerArtifacts.ps1 -FailOnMissing — passed
  • pwsh -NoProfile -File scripts/linting/Test-ExtensionArtifactNaming.ps1 — passed
  • pwsh -NoProfile -File scripts/evals/Build-AgentInventory.ps1 -WhatIf and pwsh -NoProfile -File scripts/evals/Build-AgentBehaviorSpec.ps1 -WhatIf — passed (no drift)
  • pwsh -NoProfile -File scripts/evals/Build-GraderLineageMap.ps1 -Check and pwsh -NoProfile -File scripts/evals/Test-VallyTestSafety.ps1 -OutputPath logs/vally-test-safety.json — passed
  • pwsh -NoProfile -File scripts/security/Test-ActionVersionConsistency.ps1 -FailOnMismatch, Test-WorkflowPermissions.ps1 -FailOnViolation, Test-WorkflowRunner.ps1 -FailOnViolation, Test-DangerousWorkflow.ps1 -FailOnViolation, Test-PublicDependencyFeeds.ps1 -FailOnViolation, Test-PrValidationGate.ps1 -FailOnViolation, Test-PSModulePins.ps1, and Test-DevcontainerLockfile.ps1 -FailOnViolation — passed
  • Node CLI wrappers (npm run validate:local, npm run validate:docs, npm run spell-check, npm run lint:md-links) — not run via npm on this corporate workstation because npm ci hit an upstream SSL handshake alert (SSL alert number 40) fetching yazl-2.5.1.tgz; all underlying PowerShell gates above were executed directly and passed, Markdown tables and .markdownlint.json rules were verified via Node script (0 issues), and CI workflows will execute the npm-wrapped checks on Ubuntu runners.

Checklist

Required Checks

  • Documentation is updated (if applicable)
  • Files follow existing naming conventions
  • Changes are backwards compatible (if applicable)
  • Tests added for new functionality (if applicable)

AI Artifact Contributions

  • Used hve-builder review mode to review contribution
  • Addressed all actionable findings from the hve-builder review
  • Verified contribution follows common standards and type-specific requirements

Required Local Checks

The following local-safe validation commands must pass before merging:

  • Local validation aggregate: npm run validate:local
  • Documentation validation (if docs changed): npm run validate:docs
  • Spell checking: npm run spell-check
  • Link validation: npm run lint:md-links

Security Considerations

  • This PR does not contain any sensitive or NDA information
  • Any new dependencies have been reviewed for security issues
  • Security-related scripts follow the principle of least privilege

Additional Notes

  • Both skills are local-only, zero-network utilities (Collect-HveValueEvidence.ps1 is strictly read-only against -RepoRoot and enforces -OutputPath outside -RepoRoot; Measure-HveBenefitValue.ps1 / HveBenefitValuation.psm1 performs pure deterministic arithmetic over caller-supplied JSON files) and are classified as exempt with rationale in scripts/linting/skill-security-classification.json.
  • Together, finops-value-evidence, finops-value-valuation, and FinOps Value Economist close the loop from HVE delivery telemetry to auditable monetary ROI — proving the value of HVE.

…tor, and valuation skills

Add the `finops` module to HVE Core to prove the measurable monetary value of Hypervelocity Engineering (HVE) workflows and cloud/engineering initiatives:
- `.github/agents/finops/finops-value-economist.agent.md`: `FinOps Value Economist` agent orchestrating verifiable HVE evidence collection and deterministic monetary valuation
- `.github/skills/finops/finops-value-evidence/`: read-only SHA-256 repository/RPI/test/accounting value evidence collector (`Collect-HveValueEvidence.ps1` + `.sh`), 9-category measurement specification, and Pester unit tests
- `.github/skills/finops/finops-value-valuation/`: standalone deterministic 9-category + HVE delivery valuation engine (`HveBenefitValuation.psm1`, `Measure-HveBenefitValue.ps1` + `.sh`), valuation reference, and Pester unit tests
- Paired reference documentation, plugin manifest sync, eval stimuli, and security classifications

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@venturemavenwill

Copy link
Copy Markdown
Author

This proves the value of HVE: pairing read-only SHA-256 HVE/RPI delivery evidence collection (finops-value-evidence) with deterministic 9-category monetary valuation and anti-double-counting guardrails (finops-value-valuation + FinOps Value Economist) turns HVE engineering outputs directly into auditable, Finance-ready monetary value, BCR, and ROI.

@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Nov 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.33%. Comparing base (0e5623a) to head (5e00f41).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3400      +/-   ##
==========================================
+ Coverage   84.96%   85.33%   +0.37%     
==========================================
  Files         173      192      +19     
  Lines       37639    38796    +1157     
  Branches      201      264      +63     
==========================================
+ Hits        31980    33107    +1127     
- Misses       5588     5607      +19     
- Partials       71       82      +11     
Flag Coverage Δ
docusaurus 90.58% <ø> (?)
pester 87.87% <100.00%> (+0.81%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...alue-evidence/scripts/Collect-HveValueEvidence.ps1 100.00% <100.00%> (ø)
...s-value-valuation/scripts/HveBenefitValuation.psm1 100.00% <100.00%> (ø)
...alue-valuation/scripts/Measure-HveBenefitValue.ps1 100.00% <100.00%> (ø)

... and 17 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

William Liu and others added 2 commits November 15, 2026 10:56
…rage gates

- Remove `/en-us` locale segment from Microsoft Learn URL in `business-value-measurement.md` (`Invoke-LinkLanguageCheck`)
- Replace repo-root `.github/skills/...` invocations in `SKILL.md` with skill-relative `scripts/...` paths and brace-grouped `.github/{agents,instructions,skills}/` (`Test-ArtifactPathPortability`)
- Replace `gross` phrasing in `value-valuation.md` and `HveBenefitValuation.psm1` with `pre-deduction` (`Test-EvalSpecText` / `retext-profanities`)
- Make `Measure-HveBenefitValue.ps1` in-process testable via `Write-Output` and conditional module import, add camelCase `benefitClaims`/`reportId`/`asOf` support and modeled-cost filtering in `HveBenefitValuation.psm1`, enrich `Collect-HveValueEvidence.ps1` with `agentDeclarations` and `sessionRows` actor rollups, and expand unit tests (`92.58%` Pester coverage across all three FinOps scripts)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… and valuation scripts

- Deduplicate reparse-point checking in `Collect-HveValueEvidence.ps1` through `Assert-SafeEvidencePath` and strip blank git output lines in `Read-HveGitOutput`
- Expand `Collect-HveValueEvidence.Tests.ps1`, `Measure-HveBenefitValue.Tests.ps1`, and `HveBenefitValuation.Tests.ps1` to cover reparse-point refusal, deleted tracked files, explicit/empty accounting fallbacks, CLI auto-import and nested output directory creation, finance-approved HVE delivery valuation, and category guardrail/missing-driver paths (`0` missed lines across all 3 scripts)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(finops): collect HVE value evidence and state business value in monetary terms

2 participants