Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

requirements.integration.symposium_skill_hook.configured

Requirements index · View definition

evidence Valid

Example

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

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> through run. run asserts that the command succeeds. This matches the example’s precondition, “a project where habeas setup has completed”.
  • Session start: It then calls session_start at both the project root and a nested src/nested directory. session_start runs habeas hook session-start with a SessionStart JSON payload and parses stdout.
  • Whole context is one sentence: The test uses assert_eq! to compare the full response with skill_sentence_only(). That helper builds {"SessionStart": {"additionalContext": SKILL_SENTENCE}}, where SKILL_SENTENCE is “This project tracks requirements with Habeas; load the habeas skill 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
:::{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`
:::