Feature: catalog 0.5.1 -- findings, statements, confidentiality, sheets #139

Closed
opened 2026-10-13 20:28:34 +02:00 by michael · 6 comments
Owner

Context

Requirements lost while condensing the interim template
(interim-aufnahme.md) into #136. The template separates
conversations, statements and findings and keeps internal material
out of customer reports. 0.5.0 only knows "answers". 0.5.1 restores
the full flow: conversation -> statements -> finding -> report.
No real answers files exist yet, so the schema can change without
migration.

Principles

  • fragjan guides through topics, not through the conversation.
  • Conversation sheet: what was discussed and noted.
  • Statements: who said, observed or assumed what.
  • Finding: what can be established from it.
  • Report: what may be shown to which audience.
  • finding: unclear is the safe default. An answer, a statement or a
    ticked box never turns into confirmed automatically.

1. Finding separate from status

answers:
  backup-vorhanden:
    status: answered          # open | answered | not_applicable (unchanged)
    finding: unclear          # unclear | confirmed | refuted | contradictory
    basis: "Restore test with GL infra on 2026-10-20"
    text_file: antworten/backup-vorhanden.md   # finding text
  • finding missing -> treated as unclear
  • confirmed or refuted without basis -> warning
  • confirmed without basis whose statements are all
    kind: assumption -> warning (a basis may exist independently of
    the statements, so this is never an error)
  • files support a finding but do not prove it; fragjan does not
    judge whether evidence is sufficient

2. Conversations and statements

conversations:
  - id: 2026-10-14-gf           # same id rule as question_id
    party: gl-infra             # free origin id, same id rule as question_id
    date: 2026-10-14
    file: gespraeche/2026-10-14-gf.md
answers:
  backup-vorhanden:
    statements:
      - conversation: 2026-10-14-gf
        kind: assumption        # assumption | claim | observation
        note: "assumes a backup exists, does not know who owns it"
  • Conversation files are free Markdown; notes are never required to
    become statements
  • Party and date live on the conversation, not on each statement
  • party is independent of catalog.audiences: audiences are who a
    question is addressed to (questions, sheets); party is where a
    statement comes from (gf, gl-infra, interim, ...)
  • Unexpected topics: ad-hoc question (questions:) plus statements
  • Optional next_review: YYYY-MM-DD per answer (follow-up, a task --
    not part of the dates overview)

3. Confidentiality and report audiences

  • Statements, conversations and next_review appear only with
    catalog report --internal
  • confidential: true on an answer hides it in the normal report
    everywhere: sections, critical points, contradictions, dates, open items
  • catalog.confidential: true on a pack: normal report is refused
    (error), only --internal works -- for the recruiter pack
  • No downgrade: an answer cannot set confidential: false to override
    a confidential pack
  • --internal is an output choice, not access control; the file must
    still be protected

4. Report changes

  • Each answer shows its finding (unclear / confirmed / refuted /
    contradictory), never a statement as fact
  • New block "Contradictions" for finding: contradictory
  • Internal report adds per answer: statements with conversation, party,
    date, kind; block "Follow-ups" with next_review

5. catalog sheet

fragjan catalog sheet --pack=<id> [--phase] [--area] [--audience]
                      [--form=conversation|questionnaire] [--out=<file>]
  • conversation (default): pack id, filters, empty party/date fields,
    questions as - [ ] <id> <text>, free notes section
  • questionnaire: catalog.intro_file (Markdown, path relative to the
    pack dir, since multiline YAML is not supported) plus numbered
    questions with ids; missing or unreadable intro file is an error
  • Only question texts and intro -- never answer data
  • Checkboxes mean "discussed", never answered; fragjan does not read
    them back

Acceptance tests (before coding: schema checked against these)

  • GF assumes a backup: 1 assumption, finding: unclear -> report
    says unclear, no "backup exists"
  • Two group leads contradict: 2 claims, contradictory -> listed
    under Contradictions
  • Confirmed with confidential source: finding shown, statement and
    conversation only in --internal
  • confirmed based only on an assumption, no basis -> warning
  • refuted without basis -> warning
  • Interim lead observes it directly: observation, party: interim
  • Confidential critical answer with dates: absent from every block
    of the normal report
  • Confidential pack: normal report refused
  • Sheet contains pack id and question ids, no answer data
  • Tests pass on Lua 5.1 and 5.4

Out of scope

  • Shorthand syntax and automatic extraction from conversation notes
    (after first real conversations)
  • Interactive conversation guide (#137)
  • Catalog content (separate issue in fragjan-templates)

Notes

  • core/validator/answers.lua (165 lines) will need a split
    (e.g. statements/conversations module)

Refs: DAW/fragjan#136, DAW/fragjan#137

## Context Requirements lost while condensing the interim template (`interim-aufnahme.md`) into #136. The template separates conversations, statements and findings and keeps internal material out of customer reports. 0.5.0 only knows "answers". 0.5.1 restores the full flow: conversation -> statements -> finding -> report. No real answers files exist yet, so the schema can change without migration. ## Principles - fragjan guides through topics, not through the conversation. - Conversation sheet: what was discussed and noted. - Statements: who said, observed or assumed what. - Finding: what can be established from it. - Report: what may be shown to which audience. - `finding: unclear` is the safe default. An answer, a statement or a ticked box never turns into `confirmed` automatically. ## 1. Finding separate from status ```yaml answers: backup-vorhanden: status: answered # open | answered | not_applicable (unchanged) finding: unclear # unclear | confirmed | refuted | contradictory basis: "Restore test with GL infra on 2026-10-20" text_file: antworten/backup-vorhanden.md # finding text ``` - `finding` missing -> treated as `unclear` - `confirmed` or `refuted` without `basis` -> warning - `confirmed` without `basis` whose statements are all `kind: assumption` -> warning (a basis may exist independently of the statements, so this is never an error) - `files` support a finding but do not prove it; fragjan does not judge whether evidence is sufficient ## 2. Conversations and statements ```yaml conversations: - id: 2026-10-14-gf # same id rule as question_id party: gl-infra # free origin id, same id rule as question_id date: 2026-10-14 file: gespraeche/2026-10-14-gf.md answers: backup-vorhanden: statements: - conversation: 2026-10-14-gf kind: assumption # assumption | claim | observation note: "assumes a backup exists, does not know who owns it" ``` - Conversation files are free Markdown; notes are never required to become statements - Party and date live on the conversation, not on each statement - `party` is independent of `catalog.audiences`: audiences are who a question is addressed to (questions, sheets); party is where a statement comes from (`gf`, `gl-infra`, `interim`, ...) - Unexpected topics: ad-hoc question (`questions:`) plus statements - Optional `next_review: YYYY-MM-DD` per answer (follow-up, a task -- not part of the dates overview) ## 3. Confidentiality and report audiences - Statements, conversations and `next_review` appear only with `catalog report --internal` - `confidential: true` on an answer hides it in the normal report everywhere: sections, critical points, contradictions, dates, open items - `catalog.confidential: true` on a pack: normal report is refused (error), only `--internal` works -- for the recruiter pack - No downgrade: an answer cannot set `confidential: false` to override a confidential pack - `--internal` is an output choice, not access control; the file must still be protected ## 4. Report changes - Each answer shows its finding (unclear / confirmed / refuted / contradictory), never a statement as fact - New block "Contradictions" for `finding: contradictory` - Internal report adds per answer: statements with conversation, party, date, kind; block "Follow-ups" with `next_review` ## 5. catalog sheet ``` fragjan catalog sheet --pack=<id> [--phase] [--area] [--audience] [--form=conversation|questionnaire] [--out=<file>] ``` - `conversation` (default): pack id, filters, empty party/date fields, questions as `- [ ] <id> <text>`, free notes section - `questionnaire`: `catalog.intro_file` (Markdown, path relative to the pack dir, since multiline YAML is not supported) plus numbered questions with ids; missing or unreadable intro file is an error - Only question texts and intro -- never answer data - Checkboxes mean "discussed", never `answered`; fragjan does not read them back ## Acceptance tests (before coding: schema checked against these) - [ ] GF assumes a backup: 1 assumption, `finding: unclear` -> report says unclear, no "backup exists" - [ ] Two group leads contradict: 2 claims, `contradictory` -> listed under Contradictions - [ ] Confirmed with confidential source: finding shown, statement and conversation only in `--internal` - [ ] `confirmed` based only on an assumption, no basis -> warning - [ ] `refuted` without basis -> warning - [ ] Interim lead observes it directly: `observation`, `party: interim` - [ ] Confidential critical answer with dates: absent from every block of the normal report - [ ] Confidential pack: normal report refused - [ ] Sheet contains pack id and question ids, no answer data - [ ] Tests pass on Lua 5.1 and 5.4 ## Out of scope - Shorthand syntax and automatic extraction from conversation notes (after first real conversations) - Interactive conversation guide (#137) - Catalog content (separate issue in fragjan-templates) ## Notes - `core/validator/answers.lua` (165 lines) will need a split (e.g. statements/conversations module) Refs: DAW/fragjan#136, DAW/fragjan#137
Author
Owner

Scope update

Dated findings instead of a single finding

The way from "untested" to "tested" is a result of the mandate and
must be kept. finding becomes a dated list; the latest entry is the
current finding, earlier entries are never overwritten.

restore-test:
  status: answered
  findings:
    - date: 2026-10-13
      finding: unclear
      note: "restore never tested"
    - date: 2026-10-17
      finding: confirmed
      basis: "restore test with GL infra successful"
  • Always a list, also for a single finding
  • basis warnings (confirmed/refuted) apply per entry
  • critical, priority, dates stay on the answer (current situation)
  • No findings -> current finding is unclear

Report architecture (prerequisite for profiles)

answers, statements, findings history
-> visibility filter (customer / internal, confidentiality)
-> report model (current findings, changes, critical, dates, open)
-> renderer with named blocks

  • Confidentiality is enforced before the renderer; a block or later
    profile can never see data the audience may not see
  • Named blocks: critical, contradictions, dates, sections, open,
    follow_ups, statements (internal), changes (prepared, see follow-up)
  • Customer report: current finding plus one history line
    ("previously unclear, 2026-10-13"); internal: full history with basis

Additional acceptance cases

  • A9 asked, nobody knows: status: open, finding unclear,
    statement kind: unknown ("does not know, refers to colleague");
    stays in open items, internal shows it was asked
  • A10 claim refuted by observation: claim (gl-ops) plus observation
    (interim), finding refuted with basis; both statements kept
  • A11 finding changes over time: unclear (Mon) -> confirmed (Fri);
    customer report shows current plus history line
  • Fixtures with real finding texts without personal attribution,
    an example conversation sheet and expected reports (normal and
    internal) written before implementation

kind values: assumption | claim | observation | unknown

## Scope update ### Dated findings instead of a single finding The way from "untested" to "tested" is a result of the mandate and must be kept. `finding` becomes a dated list; the latest entry is the current finding, earlier entries are never overwritten. ```yaml restore-test: status: answered findings: - date: 2026-10-13 finding: unclear note: "restore never tested" - date: 2026-10-17 finding: confirmed basis: "restore test with GL infra successful" ``` - Always a list, also for a single finding - `basis` warnings (confirmed/refuted) apply per entry - `critical`, `priority`, `dates` stay on the answer (current situation) - No findings -> current finding is `unclear` ### Report architecture (prerequisite for profiles) answers, statements, findings history -> visibility filter (customer / internal, confidentiality) -> report model (current findings, changes, critical, dates, open) -> renderer with named blocks - Confidentiality is enforced before the renderer; a block or later profile can never see data the audience may not see - Named blocks: critical, contradictions, dates, sections, open, follow_ups, statements (internal), changes (prepared, see follow-up) - Customer report: current finding plus one history line ("previously unclear, 2026-10-13"); internal: full history with basis ### Additional acceptance cases - [ ] A9 asked, nobody knows: `status: open`, finding unclear, statement `kind: unknown` ("does not know, refers to colleague"); stays in open items, internal shows it was asked - [ ] A10 claim refuted by observation: claim (gl-ops) plus observation (interim), finding `refuted` with basis; both statements kept - [ ] A11 finding changes over time: unclear (Mon) -> confirmed (Fri); customer report shows current plus history line - [ ] Fixtures with real finding texts without personal attribution, an example conversation sheet and expected reports (normal and internal) written before implementation `kind` values: assumption | claim | observation | unknown
Author
Owner

Decisions from fixture review (acceptance-fixtures-v4)

Evidence with visibility per file

files:
  - path: docs/wartungsvertrag.pdf
    visibility: customer      # reference may appear in customer report
  - path: notizen/einkauf.md
    visibility: internal      # default when visibility is missing
  • One form only, no files: [path] shorthand (nothing to migrate yet)
  • visibility: customer only allows the reference in the report; fragjan
    never attaches, publishes or grants access to the document
  • Order: confidentiality of the answer -> visibility of the evidence ->
    report model -> renderer. A confidential answer stays hidden even if
    one of its files is customer

Visible check note in the customer report

confirmed or refuted without basis is shown as
Befund: bestaetigt -- Pruefgrundlage nicht dokumentiert.
fragjan does not change the human assessment, but never hides the
missing basis behind a terminal warning the client does not see.

Question semantics

A11 showed that a finding must answer the question as asked.
"Is restore tested regularly?" is not confirmed by one successful test.
Split into A11 (restore possible: unclear -> confirmed) and A12
(regular tests: refuted with basis). refuted is read against the
question, also for negated or compound questions.

Additional acceptance cases

  • Customer-visible evidence appears in the customer report
  • Internal evidence appears only in the internal report
  • Confidential answer with a customer-visible file stays fully hidden
  • Missing basis on confirmed/refuted shows the check note
## Decisions from fixture review (acceptance-fixtures-v4) ### Evidence with visibility per file ```yaml files: - path: docs/wartungsvertrag.pdf visibility: customer # reference may appear in customer report - path: notizen/einkauf.md visibility: internal # default when visibility is missing ``` - One form only, no `files: [path]` shorthand (nothing to migrate yet) - `visibility: customer` only allows the reference in the report; fragjan never attaches, publishes or grants access to the document - Order: confidentiality of the answer -> visibility of the evidence -> report model -> renderer. A confidential answer stays hidden even if one of its files is `customer` ### Visible check note in the customer report `confirmed` or `refuted` without `basis` is shown as `Befund: bestaetigt -- Pruefgrundlage nicht dokumentiert`. fragjan does not change the human assessment, but never hides the missing basis behind a terminal warning the client does not see. ### Question semantics A11 showed that a finding must answer the question as asked. "Is restore tested regularly?" is not confirmed by one successful test. Split into A11 (restore possible: unclear -> confirmed) and A12 (regular tests: refuted with basis). `refuted` is read against the question, also for negated or compound questions. ### Additional acceptance cases - [ ] Customer-visible evidence appears in the customer report - [ ] Internal evidence appears only in the internal report - [ ] Confidential answer with a customer-visible file stays fully hidden - [ ] Missing basis on confirmed/refuted shows the check note
Author
Owner

Session handover: acceptance fixtures committed (76f439f) -- contract for implementation. Next: (2) validator: findings list, conversations, statements, files with visibility, next_review, catalog.confidential, intro_file; split answers.lua. Then (3) report model, (4) renderer, (5) acceptance test against expected/, (6) catalog sheet. Write acceptance test (5) first, red, as target.

Session handover: acceptance fixtures committed (76f439f) -- contract for implementation. Next: (2) validator: findings list, conversations, statements, files with visibility, next_review, catalog.confidential, intro_file; split answers.lua. Then (3) report model, (4) renderer, (5) acceptance test against expected/, (6) catalog sheet. Write acceptance test (5) first, red, as target.
Author
Owner

Design note (keep door open for anagild and processes): anagild will draw processes from data fragjan provides, so 0.5.1 keeps four properties: (1) stable ids as graph nodes (pack_id, question_id, conversation id, section id); (2) relations as references, not text (statement -> conversation, question -> section; later process step -> question); (3) data separate from presentation -- model.build() returns plain data, a later export for anagild (e.g. JSON) is just another renderer; (4) dated history, findings are never overwritten. Processes come later as their own schema (fragjan_process/v1: steps, lanes, flows, systems; variant ist/soll; steps reference questions and findings), visualised by anagild, Mermaid possible as simple first output. Open: findings have no own id yet (list position is stable because entries are only appended); an optional id can be added later without breaking files.

Design note (keep door open for anagild and processes): anagild will draw processes from data fragjan provides, so 0.5.1 keeps four properties: (1) stable ids as graph nodes (pack_id, question_id, conversation id, section id); (2) relations as references, not text (statement -> conversation, question -> section; later process step -> question); (3) data separate from presentation -- model.build() returns plain data, a later export for anagild (e.g. JSON) is just another renderer; (4) dated history, findings are never overwritten. Processes come later as their own schema (fragjan_process/v1: steps, lanes, flows, systems; variant ist/soll; steps reference questions and findings), visualised by anagild, Mermaid possible as simple first output. Open: findings have no own id yet (list position is stable because entries are only appended); an optional id can be added later without breaking files.
Author
Owner

Done: dated findings with basis and check note, conversations and statements, evidence visibility, confidential answers and packs, visibility filter before an independent report model, renderer on the filtered model only, report --internal, catalog sheet (conversation sheet and questionnaire). Acceptance test against expected reports, warnings and sheets: 13/13; 276 tests per Lua version (5.1, 5.4). Follow-ups: #140 report profiles, #137 ask, processes via anagild.

Done: dated findings with basis and check note, conversations and statements, evidence visibility, confidential answers and packs, visibility filter before an independent report model, renderer on the filtered model only, report --internal, catalog sheet (conversation sheet and questionnaire). Acceptance test against expected reports, warnings and sheets: 13/13; 276 tests per Lua version (5.1, 5.4). Follow-ups: #140 report profiles, #137 ask, processes via anagild.
michael 2026-10-14 11:31:20 +02:00
Author
Owner

Decisions made during implementation: (1) finding date accepts YYYY-MM-DD with optional HH:MM[:SS] and Z/+HH:MM offset, range-checked; days must not run backwards, list order decides. (2) No findings is an implicit finding shown as 'noch nicht bewertet' -- 'ungeklaert' stays a deliberate assessment. (3) Customer report: confidential answers are not read at all, only customer-visible evidence is checked. (4) catalog sheet: --out required, an existing file is not overwritten (check before write), no matching questions is an error.

Decisions made during implementation: (1) finding date accepts YYYY-MM-DD with optional HH:MM[:SS] and Z/+HH:MM offset, range-checked; days must not run backwards, list order decides. (2) No findings is an implicit finding shown as 'noch nicht bewertet' -- 'ungeklaert' stays a deliberate assessment. (3) Customer report: confidential answers are not read at all, only customer-visible evidence is checked. (4) catalog sheet: --out required, an existing file is not overwritten (check before write), no matching questions is an error.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#139
No description provided.