Skip to content

Add quantitative-constraint-validation protocol and validate-budget template#99

Merged
Alan-Jowett merged 5 commits intomicrosoft:mainfrom
Alan-Jowett:add-quantitative-validation
Mar 29, 2026
Merged

Add quantitative-constraint-validation protocol and validate-budget template#99
Alan-Jowett merged 5 commits intomicrosoft:mainfrom
Alan-Jowett:add-quantitative-validation

Conversation

@Alan-Jowett
Copy link
Copy Markdown
Member

Summary

Adds budget validation capability — the quantitative counterpart to spec-invariant-audit. Closes #94.

Where spec-invariant-audit asks "can a compliant implementation violate this property?", this protocol asks "does this budget actually satisfy the spec's numerical limits?"

New Components

Type Name Path Description
Protocol quantitative-constraint-validation protocols/reasoning/quantitative-constraint-validation.md 7-phase budget validation methodology
Template validate-budget templates/validate-budget.md Validate any budget type against spec constraints

Protocol Phases

  1. Constraint extraction (every numerical limit from the spec)
  2. Claim extraction (every value from the budget artifact)
  3. Unit and dimension verification
  4. Arithmetic re-derivation
  5. Margin analysis (Violated / Marginal / Adequate / Excessive)
  6. Sensitivity analysis (break-even deltas for marginal results)
  7. Completeness check (constraint coverage matrix)

Design Decisions

  • Budget-type agnostic: Same protocol for power, cost, timing, link, and memory budgets. The template adds domain-specific guidance per budget type.
  • Margin classification with defaults: Spec-defined thresholds take precedence; protocol provides 10% default for marginal boundary when spec is silent.
  • Honest about LLM limits: Simulation/measurement results are explicitly marked as unverifiable by analysis — the protocol verifies inputs and interpretation, not the computation itself.
  • Sensitivity analysis is mandatory for Violated/Marginal, optional for adequate margins >20%.

Checklist

  • All files have SPDX license headers
  • YAML frontmatter is valid and complete
  • Component names match file names (kebab-case)
  • manifest.yaml updated with all new components
  • No vague instructions in protocols or templates
  • Protocols have numbered, ordered phases
  • Templates have a quality checklist section
  • New components do not conflict with existing ones
  • python tests/validate-manifest.py passes

Copilot AI review requested due to automatic review settings March 29, 2026 03:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new PromptKit reasoning protocol + template to validate quantitative “budget” artifacts (power/cost/timing/link/memory/etc.) against numeric specification constraints, complementing the existing qualitative invariant-audit workflow (closes #94).

Changes:

  • Added quantitative-constraint-validation reasoning protocol with a 7-phase methodology (constraint/claim extraction, unit checks, arithmetic verification, margin + sensitivity, completeness).
  • Added validate-budget template that applies the new protocol and outputs an investigation-report.
  • Registered the new protocol/template in manifest.yaml.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
templates/validate-budget.md New template orchestrating inputs + protocol usage and mapping results into the investigation-report format.
protocols/reasoning/quantitative-constraint-validation.md New 7-phase quantitative validation protocol (constraints/claims/units/arithmetic/margins/sensitivity/completeness).
manifest.yaml Registers the new protocol and template so the bootstrap/assembly flow can discover them.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

Alan Jowett and others added 5 commits March 28, 2026 21:37
…emplate

Closes microsoft#94 — adds budget validation capability for any quantitative
analysis artifact.

- Protocol: quantitative-constraint-validation — 7-phase methodology
  covering constraint extraction, claim extraction, unit/dimension
  verification, arithmetic re-derivation, margin analysis with
  classification (Violated/Marginal/Adequate/Excessive), sensitivity
  analysis (break-even deltas), and completeness checking. Budget-type
  agnostic — works for power, cost, timing, link, and memory budgets.

- Template: validate-budget — assembles specification-analyst persona
  + protocol + investigation-report format. Adapts to budget type
  with domain-specific guidance (per-state power budgets, dB-scale
  link budgets, critical-path timing, etc.).

The quantitative counterpart to spec-invariant-audit: that protocol
finds qualitative spec gaps, this one verifies numerical budgets
actually close.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Protocol: fix Phase 5 margin semantics for dB/non-percentage units.
  Classification now uses margin delta (headroom-to-limit) with
  unit-appropriate thresholds. 10% default only applies to percentage
  margins; non-percentage margins use spec-defined thresholds or
  margin=0 as the boundary.
- Template: move margin table out of Executive Summary narrative
  (keep 2-4 sentence format compliance), place after summary in
  Section 1. Fix severity rubric to reference adequacy threshold
  instead of hardcoded percentages. Change 'at least 3' to 'up to 3'
  for self-verification.

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

- Protocol: separate dB margin formulas for upper vs lower limits
  (EIRP ceiling vs SNR floor). Add margin formulas for range, ratio,
  and margin-requirement bound types. Use |limit| for division to
  handle negative limits; fall back to absolute headroom when limit=0.
- Template: align sensitivity checklist with protocol (include
  Adequate findings with margin < 20%).

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

- Protocol: handle tolerance=0 (any deviation is violation, report
  native units). Fix margin-requirement formula to (headroom −
  required_margin) so negative margin correctly indicates violation.
- Template: align sensitivity checklist with protocol — required for
  Violated/Marginal, recommended for Adequate <20%.

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

- Protocol: replace hardcoded '20%' sensitivity threshold with
  unit-agnostic 'thin margin' guidance. Fix 'budget type' → 'bound
  kind' label. Remove hardcoded '> 20%' for optional sensitivity.
- Template: fix stale 'Phase 7 step 4' reference to 'protocol's
  completeness check (Phase 7)'. Align sensitivity wording.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 29, 2026 04:38
@Alan-Jowett Alan-Jowett force-pushed the add-quantitative-validation branch from f62c688 to 42ed9a9 Compare March 29, 2026 04:38
@Alan-Jowett Alan-Jowett merged commit 7a6c811 into microsoft:main Mar 29, 2026
4 checks passed
@Alan-Jowett Alan-Jowett deleted the add-quantitative-validation branch March 29, 2026 04:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

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.

Add quantitative constraint validation protocol and template

2 participants