Skip to content

docs: add Flow model fields table to AGENTS.md § 5#112

Merged
dgenio merged 5 commits intomainfrom
copilot/document-flow-model-fields
Apr 13, 2026
Merged

docs: add Flow model fields table to AGENTS.md § 5#112
dgenio merged 5 commits intomainfrom
copilot/document-flow-model-fields

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 12, 2026

AGENTS.md § 5 documented FlowStep.input_mapping, ExecutionResult, and StepRecord but left the Flow model fields entirely undocumented.

Changes

  • AGENTS.md § 5: Adds a ### Flow (Pydantic model) subsection with a reference table covering all seven fields — name, description, steps, deterministic, trigger_conditions, input_schema, and output_schema — including type, default, and a concise description of each. Positioned before the existing FlowStep.input_mapping section so the section flows from model definition → step semantics → runtime results.

Copilot AI linked an issue Apr 12, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Document flow model fields in AGENTS.md § 5 docs: add Flow model fields table to AGENTS.md § 5 Apr 12, 2026
Copilot AI requested a review from dgenio April 12, 2026 14:33
@dgenio dgenio marked this pull request as ready for review April 12, 2026 14:34
@dgenio dgenio requested a review from Copilot April 12, 2026 14:34
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds missing documentation for the Flow Pydantic model in AGENTS.md § 5, completing the executor/flow semantics reference so agents have a single place to understand flow structure before step/runtime details.

Changes:

  • Added a new ### Flow (Pydantic model) subsection in AGENTS.md § 5.
  • Documented all Flow fields (name, description, steps, deterministic, trigger_conditions, input_schema, output_schema) with type/default/meaning.

Comment thread AGENTS.md Outdated
dgenio added 3 commits April 13, 2026 15:03
FlowExecutor never reads the deterministic field and is unconditionally
LLM-free. The previous wording implied the flag toggles executor
behavior, which is incorrect.

- AGENTS.md § 5: reword the deterministic row to note it is a metadata
  annotation for downstream orchestrators
- flow.py: update the deterministic attribute docstring to match
Python 3.14 changed the integer floor-division ZeroDivisionError message
from 'integer division or modulo by zero' to 'division by zero'. The old
assertion passed on CI (3.10-3.13) but failed locally on Python 3.14+.

- tests/test_flow_execution.py: replace brittle CPython-version-specific
  string with 'division by zero' (stable 3.10-3.14+) and retain the tool
  name check ('divide') for meaningful coverage
- README.md: update deterministic field comment from '# enforced by design'
  to '# metadata annotation; executor is always LLM-free' to align with
  the docstring and AGENTS.md corrections in the previous commit
Conflict in tests/test_flow_execution.py between this branch's
string-containment assertion and main's typed record.error.detail
set-membership check (landed via PR #110 and #109). Taking main's
version — it checks the typed attribute directly and explicitly
enumerates both CPython 3.13 and 3.14+ message strings.
@dgenio dgenio merged commit cb7c968 into main Apr 13, 2026
4 checks passed
@dgenio dgenio deleted the copilot/document-flow-model-fields branch April 13, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document Flow model fields in AGENTS.md § 5

3 participants