Skip to content

feat(bin): route declared deployment-configuration paths to the careful rule - #5

Merged
max-metaplanet merged 6 commits into
mainfrom
fm/dispatch-path-force
Sep 23, 2026
Merged

max-metaplanet merged 6 commits into
mainfrom
fm/dispatch-path-force

Conversation

@max-metaplanet

@max-metaplanet max-metaplanet commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Intent

Change bin/fm-dispatch-resolve.sh so that deployment-configuration work is routed to the careful tier by a path fact rather than by rule wording.

The measured problem: the current rule_3 wording sends three deployment-config cases to the cheap tier. That is the only measured routing loss in the current text, and rewording cannot fix it: six candidate rewordings were measured and none beat the current text overall. Evidence: ~/.treehouse/firstmate-7bab20/3/firstmate/data/jev-staging-clause/report.md, section "The ambiguous region, case by case" and the current text's missed cases - vercel.json rewrites, ArgoCD application manifests, CloudFormation templates, Kubernetes and ingress manifests, and deploy scripts are the cases a classifier is genuinely unsure about.

Spec: BEFORE the Jev call, if the task's changed or target paths match vercel.json, *.tf or .tfvars, CloudFormation templates, Kubernetes or Helm manifests (including ArgoCD Application CRs and ingress configs), or deploy/release scripts (scripts/deploy, deploy.sh or .ps1, release workflows), force the careful tier and record 'path-forced'.

Stated limitation, to be preserved rather than designed around: this needs the brief to carry target paths, and only some briefs do. Where no paths are present it must fall through to Jev unchanged. Paths must not be inferred from prose to make the check fire more often - that reintroduces the exact ambiguity the path rule exists to avoid.

Required in the change: 'path-forced' must be distinguishable in the output from a Jev-decided result. A forced route and a classified route are different facts, and a reader must not have to guess which happened.

What Changed

  • bin/fm-dispatch-resolve.sh now checks paths before the Jev call. It reads only explicit Target paths: <path> ... lines in the brief and never scans prose. If a declared path matches the deployment-configuration list, the rule declaring "path_force": "deployment-config" is selected in code and no Jev request is sent. The list covers vercel.json, *.tf/*.tfvars, CloudFormation templates, Kubernetes/ingress/Helm/ArgoCD manifests, deploy scripts, and deploy, release, or publish workflows. Approval, floors, the quota snapshot, and spendPriority ranking run the same as before. If there is no Target paths: line, no match, or no rule declaring path_force, the Jev path runs unchanged.
  • In a forced result, the model, confidence, and probability lines are replaced with decided_by: path-forced, the rule and its when excerpt, and forced_path/forced_pattern. A result with no decided_by: line was decided by Jev. The resolver rejects a path_force value other than "deployment-config" or more than one rule declaring it (exit 2). fm-bootstrap.sh applies the same checks while typed resolution is active.
  • The new field and the Target paths: line form are documented in docs/configuration.md, AGENTS.md, bin/fm-brief.sh, the example crew-dispatch.json, and the verification doc. New tests in tests/fm-dispatch-resolve.test.sh and tests/fm-bootstrap.test.sh cover each path class, forcing by declaration rather than rule order, fall-through for near-miss paths, prose mentions, and non-canonical lines, and the malformed-config cases.

Follow-ups (not done here)

  • This home's config/crew-dispatch.json declares path_force on no rule today, so path forcing is inert here: the measured misroutes - vercel.json rewrites, ArgoCD application manifests, CloudFormation templates, Kubernetes and ingress manifests, and deploy scripts - keep routing through Jev exactly as they do now until that file's careful rule carries the declaration. This change deliberately edits no home config; adding the declaration is a follow-up for the main home, which owns that file.
  • Release-named scripts such as scripts/release.sh or bin/release.ps1 match no pattern. The fact list covers deploy-named scripts (scripts/deploy*, *deploy*.sh, *deploy*.ps1) and deploy, release, or publish workflows under .github/workflows/, which is what the spec enumerates; widening it to release-named scripts is a separate decision.

Risk Assessment

✅ Low: The fix round narrows the Target paths parser to exactly the documented form, as the user instructed. Anything not in that form falls through to the unchanged Jev path, which is the safe direction. The docs and tests were updated to match, and I found no new defect or intent conflict.

Testing

I ran the real resolver CLI against the live Jev API and the real quota-axi, using throwaway FM_HOMEs in /tmp that were removed afterwards. All 12 declared deployment-config paths were path-forced to the careful rule without a model call, and the output clearly marks them. All fall-through, near-miss, non-documented-spelling and inert-home cases reached a live Jev call and printed the normal model, confidence and probability lines. A forced route succeeded with curl absent from PATH, so it makes no network call. Invalid path_force configs exit 2. The focused test file passes. The byte-for-byte check on the fall-through request was only done in the test suite, not live. Midway through the run, quota-axi started reporting the claude provider as unmeasured, so later results show status escalate; that comes from the live quota source and does not change which rule was selected. The overall result is go.

  • Live validation: ✅ go - 9 of 10 scenarios driven live against the product
Scenario Result Live Evidence
A brief with Target paths: vercel.json in a home that declares path_force routes to the careful rule, shown as decided_by: path-forced with no model line ✅ pass live live-transcript.txt, brief=vercel
Each spec path class (tf, tfvars, CloudFormation template.yaml and .template.json, k8s ingress, ArgoCD argo/, Helm values, scripts/deploy, *.ps1 deploy script, release workflow) is path-forced and r… ✅ pass live live-transcript.txt, briefs tf..relwf
A multi-path line where only the last path matches still forces, and names that path ✅ pass live live-transcript.txt, brief=multi (forced_path: vercel.json)
A forced route makes no Jev/network call: it succeeds with curl absent, while a non-forced brief on the same PATH reports curl not installed ✅ pass live live-no-network-and-config-guards.txt
Adversarial: prose mentioning vercel.json and a k8s ingress, with no Target paths line, is not path-forced and goes to Jev ✅ pass live live-transcript.txt, brief=prose (model: jev-1.13.0, probabilities, no decided_by)
Adversarial: near-miss paths src/application.yaml and docs/template-guide.md, and non-matching src/pager.ts, fall through to Jev ✅ pass live live-transcript.txt, briefs nearmiss and nomatch
Adversarial: bulleted, backticked and comma-separated Target paths spellings are not declarations and fall through to Jev ✅ pass live live-transcript.txt, briefs bullet, backtick, comma
A home that declares path_force on no rule (the operator's current config) keeps today's Jev routing, even for vercel.json ✅ pass live live-transcript.txt, home=inert brief=vercel
Malformed path_force config (unknown value, or declared on two rules) exits 2 with an actionable error ✅ pass live live-no-network-and-config-guards.txt
The fall-through Jev request is byte-for-byte unchanged from the base commit ⏸️ untested no The earlier payload did not show this live. It was checked only through the fake-curl request-body assertions in tests/fm-dispatch-resolve.test.sh. A live byte-level comparison would need a proxy in f…
Evidence: Live resolver transcript: forced vs Jev-decided routes across all path classes and fall-through cases

Source: Live resolver transcript: forced vs Jev-decided routes across all path classes and fall-through cases

===== home=forced brief=vercel (Target paths: vercel.json)
dispatch-resolve:
  status: clear
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: vercel.json   forced_pattern: vercel.json
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=19%  spendPriority=3.7459  runway=projected_exhaustion  -> eligible
  profile: --harness 'claude' --model 'claude-opus-5' --effort 'high'
exit=0
===== home=forced brief=tf (Target paths: infra/main.tf)
dispatch-resolve:
  status: clear
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: infra/main.tf   forced_pattern: *.tf or *.tfvars
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=19%  spendPriority=3.746  runway=projected_exhaustion  -> eligible
  profile: --harness 'claude' --model 'claude-opus-5' --effort 'high'
exit=0
===== home=forced brief=tfvars (Target paths: env/prod.tfvars)
dispatch-resolve:
  status: clear
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: env/prod.tfvars   forced_pattern: *.tf or *.tfvars
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=19%  spendPriority=3.746  runway=projected_exhaustion  -> eligible
  profile: --harness 'claude' --model 'claude-opus-5' --effort 'high'
exit=0
===== home=forced brief=cfn (Target paths: template.yaml)
dispatch-resolve:
  status: clear
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: template.yaml   forced_pattern: CloudFormation template
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=19%  spendPriority=3.746  runway=projected_exhaustion  -> eligible
  profile: --harness 'claude' --model 'claude-opus-5' --effort 'high'
exit=0
===== home=forced brief=cfnjson (Target paths: stacks/api.template.json)
dispatch-resolve:
  status: clear
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: stacks/api.template.json   forced_pattern: CloudFormation template
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=19%  spendPriority=3.7461  runway=projected_exhaustion  -> eligible
  profile: --harness 'claude' --model 'claude-opus-5' --effort 'high'
exit=0
===== home=forced brief=k8s (Target paths: deploy/web-ingress.yaml)
dispatch-resolve:
  status: escalate
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: deploy/web-ingress.yaml   forced_pattern: Kubernetes or ingress manifest
  reason: no rankable eligible candidate
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=argo (Target paths: argo/app.yaml)
dispatch-resolve:
  status: escalate
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: argo/app.yaml   forced_pattern: ArgoCD manifest directory
  reason: no rankable eligible candidate
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=helm (Target paths: charts/web/values-prod.yaml)
dispatch-resolve:
  status: escalate
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: charts/web/values-prod.yaml   forced_pattern: Helm chart manifest
  reason: no rankable eligible candidate
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=deploysh (Target paths: scripts/deploy-web.sh)
dispatch-resolve:
  status: escalate
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: scripts/deploy-web.sh   forced_pattern: deploy or release script
  reason: no rankable eligible candidate
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=ps1 (Target paths: tools/deploy.ps1)
dispatch-resolve:
  status: escalate
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: tools/deploy.ps1   forced_pattern: deploy or release script
  reason: no rankable eligible candidate
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=relwf (Target paths: .github/workflows/release.yml)
dispatch-resolve:
  status: escalate
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: .github/workflows/release.yml   forced_pattern: release workflow
  reason: no rankable eligible candidate
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=multi (Target paths: src/util.ts README.md vercel.json)
dispatch-resolve:
  status: escalate
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: vercel.json   forced_pattern: vercel.json
  reason: no rankable eligible candidate
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=prose (no Target paths line)
dispatch-resolve:
  status: escalate
  model: jev-1.13.0   latency_ms: 471   tokens: 774/71
  rule: rule_3 (The task changes a database migration, a generated schema ar)   confidence: 0.81
  probabilities: rule_2=0.0 rule_3=0.84 rule_4=0.0 rule_5=0.07 default=0.08 rule_1=0.01
  reason: no rankable eligible candidate
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=nomatch (Target paths: src/pager.ts)
dispatch-resolve:
  status: escalate
  model: jev-1.13.0   latency_ms: 295   tokens: 777/69
  rule: default (No listed rule applies to this task.)   confidence: 0.72
  probabilities: rule_1=0.22 default=0.77 rule_4=0.0 rule_3=0.0 rule_5=0.0 rule_2=0.01
  reason: no rankable eligible candidate
  note: no rule matched
  candidate: claude:claude-sonnet-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=nearmiss (Target paths: src/application.yaml docs/template-guide.md)
dispatch-resolve:
  status: ambiguous
  model: jev-1.13.0   latency_ms: 287   tokens: 765/71
  rule: rule_5 (The task is a large or ambiguous multi-file change, a risky )   confidence: 0.2
  probabilities: rule_3=0.07 rule_5=0.33 rule_4=0.19 default=0.25 rule_1=0.16 rule_2=0.0
  reason: confidence 0.2 below floor 0.6
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=bullet (- Target paths: vercel.json)
dispatch-resolve:
  status: ambiguous
  model: jev-1.13.0   latency_ms: 379   tokens: 761/71
  rule: rule_3 (The task changes a database migration, a generated schema ar)   confidence: 0.54
  probabilities: rule_1=0.22 rule_2=0.0 rule_5=0.01 default=0.14 rule_4=0.01 rule_3=0.62
  reason: confidence 0.54 below floor 0.6
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=backtick (Target paths: `vercel.json`)
dispatch-resolve:
  status: ambiguous
  model: jev-1.13.0   latency_ms: 347   tokens: 761/71
  rule: rule_3 (The task changes a database migration, a generated schema ar)   confidence: 0.56
  probabilities: rule_3=0.64 rule_1=0.18 rule_2=0.0 rule_4=0.01 default=0.16 rule_5=0.01
  reason: confidence 0.56 below floor 0.6
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=forced brief=comma (Target paths: vercel.json, src/a.ts)
dispatch-resolve:
  status: ambiguous
  model: jev-1.13.0   latency_ms: 380   tokens: 764/71
  rule: rule_3 (The task changes a database migration, a generated schema ar)   confidence: 0.34
  probabilities: rule_5=0.1 rule_3=0.46 rule_4=0.01 rule_2=0.0 default=0.25 rule_1=0.18
  reason: confidence 0.34 below floor 0.6
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== home=inert brief=vercel (Target paths: vercel.json)
dispatch-resolve:
  status: ambiguous
  model: jev-1.13.0   latency_ms: 239   tokens: 768/71
  rule: rule_3 (The task changes a database migration, a generated schema ar)   confidence: 0.55
  probabilities: rule_3=0.63 rule_2=0.0 rule_5=0.01 rule_4=0.0 rule_1=0.1 default=0.26
  reason: confidence 0.55 below floor 0.6
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
Evidence: No-network proof (curl removed from PATH) and path_force config guards

Source: No-network proof (curl removed from PATH) and path_force config guards

===== forced home, vercel.json declared, PATH has NO curl (command -v curl: absent)
dispatch-resolve:
  status: escalate
  decided_by: path-forced
  rule: rule_3 (The task changes a database migration, a generated schema ar)
  forced_path: vercel.json   forced_pattern: vercel.json
  reason: no rankable eligible candidate
  note: rule matched
  candidate: claude:claude-opus-5  provider=claude  scope=all_models  remaining=-%  spendPriority=-  runway=unknown  -> eligible, unranked: provider claude unmeasured (unknown): disclosed uncertainty
exit=0
===== same PATH without curl, non-forced brief (src/pager.ts) -> Jev path runs and reports curl missing
dispatch-resolve: error (curl not installed)
dispatch-resolve:
  status: error
  reason: curl not installed
exit=0
===== config guard: path_force with an unknown value
error: malformed rules file: /tmp/fm-pathforce-lab.oc9N/bad1/config/crew-dispatch.json - path_force must be "deployment-config" when present
exit=2
===== config guard: two rules declare path_force
error: malformed rules file: /tmp/fm-pathforce-lab.oc9N/bad2/config/crew-dispatch.json - at most one rule may declare path_force
exit=2
Evidence: Forced vs classified output side by side
FORCED (Target paths: vercel.json):
status: clear
decided_by: path-forced
rule: rule_3 (The task changes a database migration, a generated schema ar)
forced_path: vercel.json forced_pattern: vercel.json

SAME BRIEF, HOME WITHOUT path_force (Jev decided):
status: ambiguous
model: jev-1.13.0 latency_ms: 239 tokens: 768/71
rule: rule_3 (...) confidence: 0.55
probabilities: rule_3=0.63 rule_2=0.0 rule_5=0.01 rule_4=0.0 rule_1=0.1 default=0.26

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 1 issue found → auto-fixed ✅
  • ⚠️ bin/fm-dispatch-resolve.sh:279 - Simplification: the change adds a component the intent doesn't ask for. fm_dispatch_target_paths accepts several spellings of the declaration: an optional - Markdown bullet prefix, paths wrapped in backticks, and trailing commas stripped both before and after the backtick strip. The intent only needs the brief to carry target paths on an explicit line, and bin/fm-brief.sh documents that line as Target paths: &lt;path&gt; [&lt;path&gt;...]. The narrower form, one exact Target paths: line with whitespace-separated paths, meets the intent and removes the extra ways a declared token gets rewritten. Recommend narrowing to that form, unless the bullet, backtick and comma spellings are deliberately supported for briefs written by hand.

🔧 Fix applied.
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 9 of 10 scenarios driven live against the product
Scenario Result Live Evidence
A brief with Target paths: vercel.json in a home that declares path_force routes to the careful rule, shown as decided_by: path-forced with no model line ✅ pass live live-transcript.txt, brief=vercel
Each spec path class (tf, tfvars, CloudFormation template.yaml and .template.json, k8s ingress, ArgoCD argo/, Helm values, scripts/deploy, *.ps1 deploy script, release workflow) is path-forced and r… ✅ pass live live-transcript.txt, briefs tf..relwf
A multi-path line where only the last path matches still forces, and names that path ✅ pass live live-transcript.txt, brief=multi (forced_path: vercel.json)
A forced route makes no Jev/network call: it succeeds with curl absent, while a non-forced brief on the same PATH reports curl not installed ✅ pass live live-no-network-and-config-guards.txt
Adversarial: prose mentioning vercel.json and a k8s ingress, with no Target paths line, is not path-forced and goes to Jev ✅ pass live live-transcript.txt, brief=prose (model: jev-1.13.0, probabilities, no decided_by)
Adversarial: near-miss paths src/application.yaml and docs/template-guide.md, and non-matching src/pager.ts, fall through to Jev ✅ pass live live-transcript.txt, briefs nearmiss and nomatch
Adversarial: bulleted, backticked and comma-separated Target paths spellings are not declarations and fall through to Jev ✅ pass live live-transcript.txt, briefs bullet, backtick, comma
A home that declares path_force on no rule (the operator's current config) keeps today's Jev routing, even for vercel.json ✅ pass live live-transcript.txt, home=inert brief=vercel
Malformed path_force config (unknown value, or declared on two rules) exits 2 with an actionable error ✅ pass live live-no-network-and-config-guards.txt
The fall-through Jev request is byte-for-byte unchanged from the base commit ⏸️ untested no The earlier payload did not show this live. It was checked only through the fake-curl request-body assertions in tests/fm-dispatch-resolve.test.sh. A live byte-level comparison would need a proxy in f…
  • FM_HOME=&lt;lab&gt;/forced bash bin/fm-dispatch-resolve.sh &lt;brief&gt; --project lab on 12 declared-path briefs: vercel.json, infra/main.tf, env/prod.tfvars, template.yaml, stacks/api.template.json, deploy/web-ingress.yaml, argo/app.yaml, charts/web/values-prod.yaml, scripts/deploy-web.sh, tools/deploy.ps1, .github/workflows/release.yml, and a multi-path line ending in vercel.json (real Jev key, real quota-axi)
  • Same command on fall-through briefs: prose mentioning vercel.json and k8s ingress with no Target paths line, src/pager.ts, src/application.yaml + docs/template-guide.md, - Target paths: vercel.json, backticked vercel.json, vercel.json, src/a.ts
  • FM_HOME=&lt;lab&gt;/inert (unmodified copy of the operator config, no path_force) with Target paths: vercel.json
  • PATH with curl removed: the forced vercel.json brief vs the non-forced src/pager.ts brief
  • Config guards: path_force="careful", and path_force declared on two rules
  • env -u TYPESAFE_API_KEY bash tests/fm-dispatch-resolve.test.sh (focused file, including byte-for-byte fall-through request assertions)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

…ul rule

Typed dispatch resolution decided every rule from Jev's reading of the brief,
so deployment-configuration work rode on rule wording alone. Measurement of
six candidate rewordings found none that beat the current text overall, while
the current text still sends vercel.json rewrites, ArgoCD application
manifests, CloudFormation templates, Kubernetes and ingress manifests, and
deploy scripts to the cheap tier.

Add a path fact ahead of the model call. A brief may state the paths it
changes or targets on a "Target paths:" line; when one of them matches the
resolver's deployment-configuration list, the rule declaring the new
"path_force": "deployment-config" field is selected in code with no request to
Jev. The rule is found by that declaration rather than by index, so a home
whose rules sit in another order routes identically. Approval, rule and
profile floors, quota evidence, and the spendPriority argmax run exactly as
they do for a model-chosen rule.

Paths come only from that explicit line, never from prose, and a brief with no
line, no matching path, or a home declaring no path_force keeps the existing
Jev call and output unchanged. A forced result reports decided_by: path-forced
with the matched path and pattern in place of the model, confidence, and
probability lines.
@max-metaplanet
max-metaplanet merged commit 2f6758a into main Sep 23, 2026
20 checks passed
max-metaplanet added a commit that referenced this pull request Oct 6, 2026
…ul rule

Carried from fork commit 02a1e91 (#5).

Path forcing and upstream's newer resolver work are orthogonal features, so the
conflicts are merged rather than decided between.

bin/fm-dispatch-resolve.sh now carries both.
Upstream's per-rule `min_confidence` floors and its runner-up fallback still
govern a model-decided answer, and a path-forced choice bypasses them because no
model answered: there is no confidence or probability to hold to a floor and no
runner-up to fall to, which the fold states explicitly rather than leaving to a
reader to infer from a null.
The request body keeps upstream's task-sections-only brief rather than this
commit's whole-brief send, so forcing does not widen what leaves the machine.
The evidence block and the rendered output carry upstream's `fallback:` line on a
model-decided result and this commit's `decided_by: path-forced` shape on a
forced one.

docs/configuration.md keeps upstream's restructured field tables and labelled
subsections, with `path_force` folded into the resolver-only field list, the
bootstrap validation list, and the diagnostics list, and the pre-model path check
added as its own subsection ahead of what the model receives, because the check
runs before the model call.
This commit's older sentence saying the resolver sends the whole brief is dropped
in favour of upstream's task-sections-only statement, which is what the code now
does.

tests/fm-dispatch-resolve.test.sh keeps both sets of malformed-rule cases; the
`min_confidence` and `path_force` validations are independent.
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.

1 participant