{
  "expectations": [
    {
      "text": "Detects Java/Spring Boot by parsing pom.xml or build.gradle — wiki.config.yaml lists framework='spring-boot' AND a framework version string that matches the fixture (e.g., '3.2.0' when pom.xml pins that version)",
      "passed": true,
      "evidence": "wiki.config.yaml lines: language=java, framework=spring-boot, framework_version='3.2.0'. pom.xml line 8 pins spring-boot-starter-parent 3.2.0; detection_trace[0] cites 'pom.xml: spring-boot-starter-parent version 3.2.0'."
    },
    {
      "text": "Detects JPA by scanning .java files — ecosystem.orm.profiles includes 'jpa' AND the detection trace lists at least one concrete @Entity class name found (e.g., 'User')",
      "passed": true,
      "evidence": "ecosystem.orm.profiles includes 'jpa'; detection_trace lists User and Order class names; orm_detect.js output: entities User → users, Order → orders."
    },
    {
      "text": "Detects PostgreSQL from application.properties JDBC URL — wiki.config.yaml's database block sets driver='postgresql' AND host+port+database match the URL (e.g., localhost:5432/mydb when the fixture contains jdbc:postgresql://localhost:5432/mydb)",
      "passed": true,
      "evidence": "ecosystem.database.driver=postgresql; environments.dev: host=localhost, port=5432, database=mydb. application.properties has jdbc:postgresql://localhost:5432/mydb. detection_trace cites the URL directly."
    },
    {
      "text": "Credentials are referenced via secret names (e.g., user_secret: WIKI_DB_DEV_USER) — plaintext passwords anywhere in wiki.config.yaml is a failure",
      "passed": true,
      "evidence": "user_secret=WIKI_DB_DEV_USER, password_secret=WIKI_DB_DEV_PASSWORD. grep -i 'changeme|password.*:' returns only the secret-name reference; the literal 'changeme' from application.properties does not appear in wiki.config.yaml."
    },
    {
      "text": "Policy stanza (block_ddl, block_privilege, dml_mode, audit.enabled) is populated in the database section",
      "passed": true,
      "evidence": "ecosystem.database.policy: block_ddl=true, block_privilege=true, dml_mode=escalate, escalate_unbounded_reads=true. ecosystem.database.audit.enabled=true."
    },
    {
      "text": "Wiki scaffold (wiki/, raw/, graph/, audit/, log/, outputs/) exists at the configured wiki_root",
      "passed": true,
      "evidence": "init_wiki.js created all six dirs at work/{wiki, raw, graph, audit, log, outputs}; verified via ls."
    }
  ],
  "summary": {"passed": 6, "failed": 0, "total": 6, "pass_rate": 1.0},
  "eval_feedback": {"overall": "All 6 expectations satisfied. Spring Boot 3.2.0 detected from pom.xml, JPA profile picked up @Entity-annotated User/Order classes, PostgreSQL connection parsed from application.properties, credentials referenced by secret name only, policy/audit stanza populated, scaffold created."}
}
