requirements.authoring.policy
Requirements index · View definition
Requirement
Every
habeas authorform MUST assess its subjects under an assessment policy,confirmoronce. The policy MUST come from--policy <name>when given, otherwise from the selected configuration’spolicy, and otherwise MUST beoncefor OpenAI andconfirmfor other backends. Underconfirm, each subject MUST be assessed asspecifies. Under
once, each subject MUST receive a single assessment (including model escalation under), whose result is recorded; it uses fewer tokens and less time, such as with a slow local model. An unknown policy name MUST be rejected as invalid configuration or arguments. The completion report MUST name the policy used, and each usage record MUST identify it.
Rationale
The reviewed tests cover every obligation in requirements.authoring.policy. I found no gap.
Policy selection and precedence
tests/authoring_batch.rs#fn[policy_comes_from_the_flag_then_the_configuration_then_defaults_to_confirm]runs four cases against an ollama (non-OpenAI) fixture:- no flag and no configured policy gives
confirm, with 2 conversations; --policy oncewith no configured policy givesonce, with 1 conversation;--policy onceoverriding a configuredconfirmgivesonce;- a configured
oncewith no flag givesonce.
- no flag and no configured policy gives
- Each case asserts the number of model conversations and the policy named in the report.
tests/configuration.rs#fn[authoring_policy_defaults_to_confirm_and_round_trips]checkseffective_policyfor an ollama backend. It covers the default, configured values and--policyoverriding in both directions. It also checks serialization and that invalid values are rejected.tests/configuration.rs#fn[openai_policy_defaults_to_once_without_changing_explicit_policy]covers the OpenAI default ofonceand the case where an explicitconfirmis kept.tests/authoring_cli.rs#fn[adaptive_routes_fresh_assessments_and_records_each_model]shows the OpenAI default end to end. With no policy configured it makes a single mini request and logspolicyasonce.
Every author form and the report
- A single subject,
--stdoutand--allare each exercised. The completion report names the policy in each form (; policy X, and the batch summary6 authored; …; policy once). confirm_with_all_runs_a_second_assessment_for_each_batch_subjectchecks that--all --policy confirmruns two paired conversations per subject, with one usage record each.
Behavior under each policy
- Under
once, there is exactly one conversation and one recorded result. This includes escalation: in the adaptive tests, mini false, FIXME or a failed submission leads to one Sol assessment.adaptive_sol_failure_is_final_and_confirm_uses_sol_verificationchecks the final results. - Under
confirm, the second-conversation and verification mechanics are the job ofrequirements.authoring.confirmation. Here the tests check that the policy takes effect: an agreeing first result is recorded, and a disagreement note appears in the rationale.
Usage records
- The policy test asserts
run["policy"] == expectedon every usage record per case. - The adaptive tests assert the same on every log, including the adaptive parent and the attempt records.
Unknown policy
- An unknown
--policy twicefails withunknown assessment policy "twice"on stderr. - An unknown configured policy fails for both the single-subject and
--allforms. The error names the config path andpolicy. - The test asserts that the server saw no requests, so the rejection happens before any model call.
Obligations delegated to requirements.authoring.confirmation and requirements.authoring.adaptive are not reassessed here.
Inputs
Tests
Input 4: outline tests/authoring_batch.rs fn[confirm_with_all_runs_a_second_assessment_for_each_batch_subject]
- File:
tests/authoring_batch.rs - Selector:
fn[confirm_with_all_runs_a_second_assessment_for_each_batch_subject] - Kind:
fn tests/authoring_batch.rs:1936–1968
// {test}`requirements.authoring.confirmation`
// {test}`requirements.authoring.batch`
#[test]
// {test}`requirements.authoring.policy`
fn confirm_with_all_runs_a_second_assessment_for_each_batch_subject() {
let server = Server::start(false, None);
let fixture = Fixture::new(&server.endpoint, None);
let output = fixture.run(&["author", "--all", "--policy", "confirm"]);
assert!(
output.status.success(),
"{}",
String::from_utf8_lossy(&output.stderr)
);
let mut subjects = server.subjects();
subjects.sort();
assert!(!subjects.is_empty());
for pair in subjects.chunks(2) {
assert_eq!(pair.len(), 2, "{subjects:?}");
assert_eq!(pair[0], pair[1], "{subjects:?}");
}
let usage = fixture.usage();
let seconds = usage
.iter()
.filter(|run| {
run["subject"]
.as_str()
.unwrap()
.ends_with(" (second assessment)")
})
.count();
assert_eq!(seconds * 2, subjects.len(), "{usage:?}");
assert_eq!(usage.len(), subjects.len(), "{usage:?}");
}
Input 5: outline tests/authoring_batch.rs fn[policy_comes_from_the_flag_then_the_configuration_then_defaults_to_confirm]
- File:
tests/authoring_batch.rs - Selector:
fn[policy_comes_from_the_flag_then_the_configuration_then_defaults_to_confirm] - Kind:
fn tests/authoring_batch.rs:2154–2275
/// The policy comes from `--policy`, then the configuration's `policy`,
/// then defaults to `confirm`; the report and every usage record name it,
/// and an unknown name is rejected before any model request.
// {test}`requirements.authoring.policy`
// {test}`requirements.authoring.configuration_structure`
// {test}`requirements.authoring.confirmation`
#[test]
// {test}`requirements.authoring.refresh`
fn policy_comes_from_the_flag_then_the_configuration_then_defaults_to_confirm() {
let server = Server::start(false, None);
let fixture = Fixture::new(&server.endpoint, None);
let unconfigured = fixture.config_text.replace("policy = 'once'\n", "");
let cases: [(&str, &[&str], &str, usize); 4] = [
(&unconfigured, &[], "confirm", 2),
(&unconfigured, &["--policy", "once"], "once", 1),
(
&fixture.config_text.replace("'once'", "'confirm'"),
&["--policy", "once"],
"once",
1,
),
(&fixture.config_text, &[], "once", 1),
];
let run_ids = || {
if fixture.state.exists() {
fixture
.usage()
.into_iter()
.map(|run| run["run_id"].as_str().unwrap().to_owned())
.collect::<Vec<_>>()
} else {
Vec::new()
}
};
for (config, policy, expected, conversations) in cases {
fs::write(&fixture.config, config).unwrap();
let before = server.subjects().len();
let earlier = run_ids();
let mut args = vec!["author", "requirements.alpha", "--force"];
args.extend_from_slice(policy);
let output = fixture.run(&args);
assert!(
output.status.success(),
"{args:?}: {}",
String::from_utf8_lossy(&output.stderr)
);
assert!(
String::from_utf8_lossy(&output.stdout).contains(&format!("; policy {expected}")),
"{args:?}: {}",
String::from_utf8_lossy(&output.stdout)
);
assert!(String::from_utf8_lossy(&output.stdout).contains("0 skipped as current"));
assert_eq!(server.subjects().len() - before, conversations, "{args:?}");
// Each conversation's usage record identifies the policy.
let usage = fixture
.usage()
.into_iter()
.filter(|run| !earlier.contains(&run["run_id"].as_str().unwrap().to_owned()))
.collect::<Vec<_>>();
assert_eq!(usage.len(), conversations, "{args:?}");
assert!(
usage.iter().all(|run| run["policy"] == expected),
"{args:?}: {usage:?}"
);
}
let stdout = fixture.run(&[
"author",
"requirements.alpha",
"--stdout",
"--policy",
"once",
]);
assert!(stdout.status.success(), "{stdout:?}");
assert!(String::from_utf8_lossy(&stdout.stderr).contains("policy once"));
assert!(String::from_utf8_lossy(&stdout.stderr).contains("0 skipped as current"));
let printed: Value = serde_json::from_slice(&stdout.stdout).unwrap();
assert_eq!(printed["determination"], true);
// The batch summary names the policy too.
fs::write(&fixture.config, &unconfigured).unwrap();
let batch = fixture.run(&["author", "--all", "--force", "--policy", "once"]);
assert_eq!(
String::from_utf8_lossy(&batch.stdout).trim(),
"6 authored; 0 skipped as current; 0 failed; policy once"
);
let before = server.subjects().len();
let flag = fixture.run(&[
"author",
"requirements.alpha",
"--force",
"--policy",
"twice",
]);
assert!(!flag.status.success());
let stderr = String::from_utf8_lossy(&flag.stderr);
assert!(
stderr.contains("unknown assessment policy \"twice\""),
"{stderr}"
);
fs::write(
&fixture.config,
fixture.config_text.replace("'once'", "'twice'"),
)
.unwrap();
for args in [
&["author", "requirements.alpha", "--force"][..],
&["author", "--all", "--force"],
] {
let output = fixture.run(args);
assert!(!output.status.success(), "{args:?}");
let stderr = String::from_utf8_lossy(&output.stderr);
assert!(
stderr.contains(&fixture.config.display().to_string()) && stderr.contains("policy"),
"{args:?}: {stderr}"
);
}
assert_eq!(
server.subjects().len(),
before,
"rejected before any request"
);
}
Input 6: outline tests/authoring_cli.rs fn[adaptive_routes_fresh_assessments_and_records_each_model]
- File:
tests/authoring_cli.rs - Selector:
fn[adaptive_routes_fresh_assessments_and_records_each_model] - Kind:
fn tests/authoring_cli.rs:5361–5517
// {test}`requirements.authoring.adaptive`
// {test}`requirements.authoring.openai_defaults`
// {test}`requirements.authoring.policy`
#[test]
// {test}`requirements.authoring.usage_storage`
// {test}`requirements.authoring.confirmation`
fn adaptive_routes_fresh_assessments_and_records_each_model() {
let response = |arguments: Value| {
json!({
"id":"resp_submit", "object":"response", "status":"completed",
"model":"mock", "output":[{
"type":"function_call", "id":"fc_submit", "call_id":"submit",
"name":"submit_judgment", "arguments":arguments.to_string(), "status":"completed"
}], "usage":{"input_tokens":1,"output_tokens":1,"total_tokens":2}
})
};
for (existing_fixme, first, policy, expected_models, reason) in [
(
false,
json!({"determination":true,"rationale":"Good."}),
"",
vec!["gpt-5.4-mini"],
None,
),
(
false,
json!({"determination":false,"rationale":"MINI_ONLY_RATIONALE_SENTINEL"}),
"",
vec!["gpt-5.4-mini", "gpt-6.1-sol"],
Some("mini_false"),
),
(
false,
json!({"determination":{"FIXME":["Gap"]},"rationale":"MINI_ONLY_RATIONALE_SENTINEL"}),
"",
vec!["gpt-5.4-mini", "gpt-6.1-sol"],
Some("mini_fixme"),
),
(
false,
json!({"bad":"submission"}),
"",
vec!["gpt-5.4-mini", "gpt-6.1-sol"],
Some("mini_assessment_failed"),
),
(
true,
json!({"determination":true,"rationale":"Good."}),
"",
vec!["gpt-6.1-sol"],
Some("existing_fixme"),
),
(
false,
json!({"determination":true,"rationale":"FIRST_AGREEMENT_RATIONALE"}),
"policy = 'confirm'\n",
vec!["gpt-5.4-mini", "gpt-5.4-mini"],
None,
),
] {
let mut replies = vec![response(first)];
if expected_models.len() == 2 {
replies.push(response(json!({"determination":true,"rationale":"Good."})));
}
let server = Server::start(replies);
let fixture = Fixture::new(&server.endpoint);
if !existing_fixme {
fs::write(fixture.project.join("src/lib.rs"), "// {impl}`requirements.ready`\npub fn ready() {}\n// {test}`requirements.ready`\nfn ready_test() {}\n// A plain FIXME is not an acknowledgment.\n").unwrap();
}
fs::write(fixture.config.join("habeas/config.toml"), format!(
"version = 1\n[authoring]\ndefault = 'api'\n[authoring.configs.api]\nbackend = 'openai'\nmodel = 'adaptive'\n{policy}endpoint = '{}'\napi_key_env = 'HABEAS_TEST_MODEL_KEY'\n[authoring.configs.api.options]\nmax_output_tokens = 8192\nreasoning = {{ effort = 'medium' }}\n", server.endpoint)).unwrap();
let output = fixture.run(&["author", SUBJECT]);
assert!(
output.status.success(),
"{}",
String::from_utf8_lossy(&output.stderr)
);
let requests = server.finish();
assert_eq!(
requests
.iter()
.map(|r| r.body["model"].as_str().unwrap())
.collect::<Vec<_>>(),
expected_models
);
for request in &requests {
assert!(
request
.headers
.to_lowercase()
.contains(&format!("authorization: bearer {}", AUTH.to_lowercase()))
);
assert!(
!request
.body
.to_string()
.contains("MINI_ONLY_RATIONALE_SENTINEL")
);
assert_eq!(
request.body["input"].as_array().unwrap().len(),
1,
"fresh conversation"
);
assert_eq!(request.body["reasoning"]["effort"], "medium");
assert_eq!(request.body["max_output_tokens"], 8192);
}
let evidence: Value =
serde_json::from_slice(&fs::read(&fixture.evidence).unwrap()).unwrap();
assert_eq!(evidence["determination"], true);
if !policy.is_empty() {
assert_eq!(evidence["rationale"], "FIRST_AGREEMENT_RATIONALE");
}
let logs: Vec<Value> = fs::read_dir(fixture.state.join("habeas/authoring/usage"))
.unwrap()
.map(|entry| serde_json::from_slice(&fs::read(entry.unwrap().path()).unwrap()).unwrap())
.collect();
let expected_policy = if policy.is_empty() { "once" } else { "confirm" };
assert!(
logs.iter().all(|log| log["policy"] == expected_policy),
"{logs:?}"
);
let parent = logs
.iter()
.find(|log| log["subject"] == SUBJECT && log["model"] == "adaptive")
.unwrap();
assert_eq!(parent["routing_reason"].as_str(), reason);
assert!(!parent["attempts"].as_array().unwrap().is_empty());
let actual: Vec<_> = logs
.iter()
.filter(|log| log["model"] != "adaptive")
.collect();
assert_eq!(actual.len(), expected_models.len());
let ids: std::collections::BTreeSet<_> = actual
.iter()
.map(|log| log["run_id"].as_str().unwrap())
.collect();
assert_eq!(ids.len(), actual.len());
let links: Vec<_> = logs
.iter()
.flat_map(|log| log["attempts"].as_array().into_iter().flatten())
.filter_map(Value::as_str)
.collect();
for id in ids {
assert!(
links
.iter()
.any(|path| path.ends_with(&format!("{id}.json")))
);
}
for model in expected_models {
assert!(
logs.iter()
.any(|log| log["model"] == model && log["request_count"] == 1)
);
}
}
}
Input 7: outline tests/authoring_cli.rs fn[adaptive_sol_failure_is_final_and_confirm_uses_sol_verification]
- File:
tests/authoring_cli.rs - Selector:
fn[adaptive_sol_failure_is_final_and_confirm_uses_sol_verification] - Kind:
fn tests/authoring_cli.rs:5519–5639
// {test}`requirements.authoring.adaptive`
// {test}`requirements.authoring.persistence`
// {test}`requirements.authoring.policy`
#[test]
// {test}`requirements.authoring.confirmation`
fn adaptive_sol_failure_is_final_and_confirm_uses_sol_verification() {
let response = |name: &str, arguments: Value| {
json!({
"id":"resp", "object":"response", "status":"completed", "model":"mock",
"output":[{"type":"function_call", "id":"fc", "call_id":"call", "name":name,
"arguments":arguments.to_string(), "status":"completed"}],
"usage":{"input_tokens":1,"output_tokens":1,"total_tokens":2}
})
};
let assert_policy = |fixture: &Fixture, expected: &str| {
for path in fs::read_dir(fixture.state.join("habeas/authoring/usage")).unwrap() {
let log: Value =
serde_json::from_slice(&fs::read(path.unwrap().path()).unwrap()).unwrap();
assert_eq!(log["policy"], expected);
}
};
let good = response(
"submit_judgment",
json!({"determination":true,"rationale":"Good."}),
);
let bad = response(
"submit_judgment",
json!({"determination":false,"rationale":"Gap."}),
);
for confirm in [false, true] {
let replies = if confirm {
vec![
good.clone(),
bad.clone(),
bad.clone(),
response(
"submit_verification",
json!({
"real":false,"acknowledged":false,"acknowledgments":[],"rationale":"No real gap."}),
),
]
} else {
vec![
bad.clone(),
response("submit_judgment", json!({"invalid":true})),
]
};
let server = Server::start(replies);
let fixture = Fixture::new(&server.endpoint);
fs::write(fixture.project.join("src/lib.rs"), "// {impl}`requirements.ready`\npub fn ready() {}\n// {test}`requirements.ready`\nfn ready_test() {}\n").unwrap();
fs::write(fixture.config.join("habeas/config.toml"), format!(
"version = 1\n[authoring]\ndefault = 'api'\n[authoring.configs.api]\nbackend = 'openai'\nmodel = 'adaptive'\nendpoint = '{}'\napi_key_env = 'HABEAS_TEST_MODEL_KEY'\n", server.endpoint)).unwrap();
let output = if confirm {
fixture.run(&["author", SUBJECT, "--policy", "confirm"])
} else {
fixture.run(&["author", SUBJECT])
};
let requests = server.finish();
assert_policy(&fixture, if confirm { "confirm" } else { "once" });
let models: Vec<_> = requests
.iter()
.map(|r| r.body["model"].as_str().unwrap())
.collect();
if confirm {
assert!(
output.status.success(),
"{}",
String::from_utf8_lossy(&output.stderr)
);
assert_eq!(
models,
["gpt-5.4-mini", "gpt-5.4-mini", "gpt-6.1-sol", "gpt-6.1-sol"]
);
let evidence: Value =
serde_json::from_slice(&fs::read(&fixture.evidence).unwrap()).unwrap();
assert_eq!(evidence["determination"], true);
assert!(
evidence["rationale"]
.as_str()
.unwrap()
.contains("assessments disagreed")
);
} else {
assert!(!output.status.success());
assert_eq!(models, ["gpt-5.4-mini", "gpt-6.1-sol"]);
assert_eq!(
fs::read_to_string(&fixture.evidence).unwrap(),
fixture.original
);
}
}
for policy in ["once", "confirm"] {
let server = Server::start(vec![
response(
"submit_judgment",
json!({"determination":false,"rationale":"Mini found a gap."}),
),
response(
"submit_judgment",
json!({"determination":false,"rationale":"Sol confirms the gap."}),
),
]);
let fixture = Fixture::new(&server.endpoint);
configure_adaptive_fixture(&fixture, &server.endpoint);
let output = fixture.run(&["author", SUBJECT, "--policy", policy]);
assert!(output.status.success(), "{output:?}");
assert_policy(&fixture, policy);
let requests = server.finish();
assert_eq!(
requests
.iter()
.map(|request| request.body["model"].as_str().unwrap())
.collect::<Vec<_>>(),
["gpt-5.4-mini", "gpt-6.1-sol"]
);
let evidence: Value =
serde_json::from_slice(&fs::read(&fixture.evidence).unwrap()).unwrap();
assert_eq!(evidence["determination"], false);
assert_eq!(evidence["rationale"], "Sol confirms the gap.");
}
}
Input 8: outline tests/configuration.rs fn[authoring_policy_defaults_to_confirm_and_round_trips]
- File:
tests/configuration.rs - Selector:
fn[authoring_policy_defaults_to_confirm_and_round_trips] - Kind:
fn tests/configuration.rs:208–259
// {test}`requirements.authoring.policy`
// {test}`requirements.authoring.configuration_structure`
// {test}`requirements.configuration.serialization`
#[test]
fn authoring_policy_defaults_to_confirm_and_round_trips() {
use habeas::config::AssessmentPolicy;
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("config.toml");
let base = "version = 1\n[authoring.configs.model]\nbackend = 'ollama'\nmodel = 'm'\n";
let defaults = UserConfig::parse(base, &path).unwrap();
let resolved =
resolve_authoring_from(&path, Some(&defaults), dir.path(), Some("model")).unwrap();
assert_eq!(resolved.policy, None);
assert_eq!(resolved.effective_policy(None), AssessmentPolicy::Confirm);
assert_eq!(
resolved.effective_policy(Some(AssessmentPolicy::Once)),
AssessmentPolicy::Once
);
assert!(!defaults.to_toml().unwrap().contains("policy"));
for (name, policy) in [
("confirm", AssessmentPolicy::Confirm),
("once", AssessmentPolicy::Once),
] {
let configured = UserConfig::parse(&format!("{base}policy = '{name}'\n"), &path).unwrap();
let resolved =
resolve_authoring_from(&path, Some(&configured), dir.path(), Some("model")).unwrap();
assert_eq!(resolved.policy, Some(policy));
assert_eq!(resolved.effective_policy(None), policy);
// `--policy` overrides the configuration.
let other = match policy {
AssessmentPolicy::Confirm => AssessmentPolicy::Once,
AssessmentPolicy::Once => AssessmentPolicy::Confirm,
};
assert_eq!(resolved.effective_policy(Some(other)), other);
let serialized = configured.to_toml().unwrap();
assert!(
serialized.contains(&format!("policy = \"{name}\"")),
"{serialized}"
);
assert_eq!(UserConfig::parse(&serialized, &path).unwrap(), configured);
assert_eq!(name.parse::<AssessmentPolicy>(), Ok(policy));
assert_eq!(policy.to_string(), name);
}
for invalid in ["'twice'", "'Confirm'", "true"] {
let error = UserConfig::parse(&format!("{base}policy = {invalid}\n"), &path)
.unwrap_err()
.to_string();
assert!(error.contains(&path.display().to_string()), "{error}");
assert!(error.contains("policy"), "{error}");
}
assert!("twice".parse::<AssessmentPolicy>().is_err());
}
Input 9: outline tests/configuration.rs fn[openai_policy_defaults_to_once_without_changing_explicit_policy]
- File:
tests/configuration.rs - Selector:
fn[openai_policy_defaults_to_once_without_changing_explicit_policy] - Kind:
fn tests/configuration.rs:1801–1834
// {test}`requirements.authoring.policy`
// {test}`requirements.authoring.openai_defaults`
// {test}`requirements.authoring.configuration_structure`
#[test]
fn openai_policy_defaults_to_once_without_changing_explicit_policy() {
use habeas::config::AssessmentPolicy;
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("config.toml");
for (extra, expected) in [
("", AssessmentPolicy::Once),
("policy = 'confirm'\n", AssessmentPolicy::Confirm),
] {
let config = UserConfig::parse(
&format!("version = 1\n[authoring.configs.api]\nbackend = 'openai'\n{extra}"),
&path,
)
.unwrap();
let resolved =
resolve_authoring_from(&path, Some(&config), dir.path(), Some("api")).unwrap();
assert_eq!(resolved.effective_policy(None), expected);
assert_eq!(
resolved.effective_policy(Some(AssessmentPolicy::Confirm)),
AssessmentPolicy::Confirm
);
assert_eq!(
resolved.effective_policy(Some(AssessmentPolicy::Once)),
AssessmentPolicy::Once
);
assert_eq!(
config.to_toml().unwrap().contains("policy ="),
!extra.is_empty()
);
}
}
Referenced definitions
Input 2: requirements selection requirements.authoring.confirmation
requirements.authoring.confirmation:md/requirements/authoring.md:75–93
:::{req} confirmation
Under the `confirm` policy of {cite}`requirements.authoring.policy`, authoring
MUST assess each subject in an independent second conversation whenever the
first assessment's determination is `true` or FIXME. The assessments agree when
their outcomes are the same kind; then the first assessment MUST be recorded.
When they disagree, the harness MUST verify the less favorable assessment, where
`false` is less favorable than FIXME and FIXME than `true`, in a third
independent conversation under {cite}`requirements.authoring.verifier_prompt`,
and record the outcome {cite}`requirements.authoring.verifier_outcome` derives.
For a site review, assessments that differ only in `applies` MUST also count as
disagreeing, the one with `applies` true being less favorable. The recorded
rationale MUST state that the assessments disagreed and what the verification
concluded, so the disagreement remains visible for review under
{cite}`requirements.cli.flip_guidance`. Each conversation MUST have its own
usage record. Citation reviews under
{cite}`requirements.references.citation_review` and site reviews under
{cite}`requirements.references.site_review` that a command selects MUST be
confirmed in the same way, with the review's target as the subject.
:::
Input 3: requirements selection requirements.authoring.adaptive
requirements.authoring.adaptive:md/requirements/authoring.md:1705–1729
:::{req} adaptive
Adaptive is experimental and requires explicit opt-in. For the OpenAI backend,
`model = "adaptive"` MUST select models locally rather
than send `adaptive` to the API. An assessment with an applicable existing
FIXME reference MUST go directly to `gpt-6.1-sol`. Otherwise it MUST begin with
`gpt-5.4-mini`: a true judgment is accepted, while false, FIXME, or a failed
conversation/submission MUST trigger one fresh Sol assessment. Sol's result
MUST be final for that assessment, including a false judgment or failure.
Provider errors, cancellation, mandatory-input failures, connection failures,
and usage-storage failures MUST NOT trigger model escalation.
Applicable FIXMEs MUST follow the subject's existing scope rules: requirement
references outside its own distributed sites, or the reviewed site's own FIXMEs.
Citation reviews have no applicable acknowledgments. Matching a literal word
inside unrelated text MUST NOT trigger pre-escalation.
Both tiers MUST inherit the selected credentials, endpoint, and inference
options. Explicit concrete model IDs MUST bypass adaptive routing. Each actual
model attempt MUST have a separate usage record with its real model name;
the adaptive record MUST link its attempts and record any routing reason.
Escalation MUST NOT persist intermediate mini evidence or pass mini's rationale
to Sol. Under explicit `confirm`, each independent assessment MUST use adaptive
routing; disagreements MUST be verified by Sol using the existing confirmation
selection rules. Adaptive routing MUST NOT perform sampled audits.
:::
Other sources
Input 1: requirements selection requirements.authoring.policy
requirements.authoring.policy:md/requirements/authoring.md:1731–1742
:::{req} policy
Every `habeas author` form MUST assess its subjects under an assessment policy,
`confirm` or `once`. The policy MUST come from `--policy <name>` when given,
otherwise from the selected configuration's `policy`, and otherwise MUST be
`once` for OpenAI and `confirm` for other backends. Under `confirm`, each subject MUST be assessed as
{cite}`requirements.authoring.confirmation` specifies. Under `once`, each subject
MUST receive a single assessment (including model escalation under
{cite}`requirements.authoring.adaptive`), whose result is recorded; it uses fewer tokens
and less time, such as with a slow local model. An unknown policy name MUST be
rejected as invalid configuration or arguments. The completion report MUST name
the policy used, and each usage record MUST identify it.
:::