requirements.integration.symposium_skill_hook.configured
Requirements index · View definition
Example
In a project where
habeas setuphas completed, the whole session-start agent context is one sentence such as “This project tracks requirements with Habeas; load thehabeasskill before starting any work.”
Rationale
The example is covered by tests/setup.rs#fn[session_start_points_to_the_habeas_skill_once_setup_is_complete], which carries a {test} reference to requirements.integration.symposium_skill_hook.configured.
- Setup: The test builds a fixture project and runs
habeas setup --path <manifest dir>throughrun.runasserts that the command succeeds. This matches the example’s precondition, “a project wherehabeas setuphas completed”. - Session start: It then calls
session_startat both the project root and a nestedsrc/nesteddirectory.session_startrunshabeas hook session-startwith a SessionStart JSON payload and parses stdout. - Whole context is one sentence: The test uses
assert_eq!to compare the full response withskill_sentence_only(). That helper builds{"SessionStart": {"additionalContext": SKILL_SENTENCE}}, whereSKILL_SENTENCEis “This project tracks requirements with Habeas; load thehabeasskill before starting any work.” Exact equality means no other text, such as the setup advisory, is present. This is the example’s only stated outcome. - No advisory: The test also asserts
!advises_setup(&response). That helper looks for the “Habeas Codicem is not fully configured” text.
I found no gap.
Inputs
Tests
Input 2: outline tests/setup.rs fn[session_start_points_to_the_habeas_skill_once_setup_is_complete]
- File:
tests/setup.rs - Selector:
fn[session_start_points_to_the_habeas_skill_once_setup_is_complete] - Kind:
fn tests/setup.rs:620–639
// {test}`requirements.integration.symposium_skill_hook`
// {test}`requirements.integration.symposium_skill_hook.configured`
#[test]
fn session_start_points_to_the_habeas_skill_once_setup_is_complete() {
let temp = fixture();
let project = temp.path();
run(project, &["setup", "--path", env!("CARGO_MANIFEST_DIR")]);
let nested = project.join("src/nested");
fs::create_dir_all(&nested).unwrap();
for cwd in [project, nested.as_path()] {
let response = session_start(project, cwd);
assert_eq!(
response,
skill_sentence_only(),
"the whole context of a configured project is the skill sentence"
);
assert!(!advises_setup(&response));
}
}
Other sources
Input 1: requirements selection requirements.integration.symposium_skill_hook.configured
requirements.integration.symposium_skill_hook.configured:md/requirements/integration.md:64–66
:::{example} symposium_skill_hook.configured
In a project where `habeas setup` has completed, the whole session-start agent context is one sentence such as "This project tracks requirements with Habeas; load the `habeas` skill before starting any work." {test}`requirements.integration.symposium_skill_hook`
:::