Skip to content

docs: add production engineering contract for AI agents - #302

Merged
masarray merged 4 commits into
mainfrom
chore/agent-engineering-contract-v1
Sep 10, 2026
Merged

docs: add production engineering contract for AI agents#302
masarray merged 4 commits into
mainfrom
chore/agent-engineering-contract-v1

Conversation

@masarray

@masarray masarray commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a repository-level AGENTS.md that makes production architecture, root-cause-first debugging, UI-thread safety, bounded data processing, lifecycle management, regression protection, measurable performance, Result-oriented failure handling, and asynchronous diagnostics part of the implementation contract for every AI/code agent.

Added failure architecture

  • expected/recoverable hot-path failures use TryXxx / typed Result<T> / structured status instead of exception-driven control flow
  • OS/.NET/library exceptions are contained at meaningful boundaries and converted to structured failures
  • hot-path diagnostics enqueue compact machine-readable events only
  • diagnostic queues must be bounded, deduplicated/rate-limited, and non-blocking to critical work
  • diagnostic infrastructure is observational; logging failure must not become application failure

Why

ARSAS already has strong PR validation gates. This moves the same discipline earlier into reconnaissance, architecture, implementation, debugging, and failure handling so agents do not accumulate trial-and-error patches before validation.

Documentation-only change; no runtime behavior is modified.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 852fe891e3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread AGENTS.md
Comment on lines +43 to +46
Presentation / XAML / View
-> Application / orchestration / use cases
-> Domain / engineering models / calculations
-> Infrastructure / device / file / network / OS adapters

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reverse the infrastructure dependency arrow

When an agent follows these arrows as the declared dependency direction, the diagram instructs the Domain layer to depend on Infrastructure, allowing engineering models/calculations to couple directly to file, network, device, or OS implementations. That reverses the service/adapter boundary described immediately below; Infrastructure adapters should instead depend inward on application/domain contracts rather than sit downstream of Domain.

AGENTS.md reference: AGENTS.md:L41-L46

Useful? React with 👍 / 👎.

@masarray
masarray merged commit c8b84ff into main Sep 10, 2026
1 check passed
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.

1 participant