Skip to content

docs: add ARCHITECTURE.md and CODEOWNERS guard - #24

Open
emsearcy wants to merge 5 commits into
mainfrom
docs/architecture-overview
Open

emsearcy wants to merge 5 commits into
mainfrom
docs/architecture-overview

Conversation

@emsearcy

Copy link
Copy Markdown
Contributor

Summary

  • Documents the Goa client-wrapping pattern and Auth0 Device Code authentication flow for contributors, including Mermaid sequence diagrams.
  • Captures internal security controls that do not belong in the user-facing README.
  • Adds a CODEOWNERS override for ARCHITECTURE.md so architecture review owns this cross-component contract.

This draft is opened for discussion in response to review feedback on linuxfoundation/lfx-cli#23.

🤖 Generated with GitHub Copilot (via OpenCode)

Copilot AI balanced review requested due to automatic review settings October 30, 2026 16:55
Assisted-by: github-copilot:claude-sonnet-5
Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
@emsearcy
emsearcy force-pushed the docs/architecture-overview branch from e62944c to 45e6f41 Compare October 30, 2026 16:57

Copilot AI 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.

🟡 Changes recommended

ARCHITECTURE.md contains broken links to absent Goa sources and presents proposed behavior from unmerged #23, including the 64 MiB response cap, as an existing contract.

1 open issue
What changed in this PR

Adds contributor-facing architecture documentation in response to #23, separating implementation and security contracts from user-facing guidance and assigning architecture review ownership.

Changes:

  • Documents the Goa client-wrapping pattern and Auth0 Device Code flow with sequence diagrams.
  • Describes internal security controls for authentication and API requests.
  • Adds a dedicated CODEOWNERS override for ARCHITECTURE.md.
File Description
CODEOWNERS Assigns architecture documentation to the architecture review team.
ARCHITECTURE.md Documents client integration, authentication, and security contracts.

Review effort: Balanced

Comment thread ARCHITECTURE.md Resolved
Copilot AI balanced review requested due to automatic review settings October 30, 2026 16:57
Assisted-by: github-copilot:claude-sonnet-5
Signed-off-by: Eric Searcy <eric@linuxfoundation.org>

Copilot AI 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.

🔵 Needs a closer look

The documentation presents Goa functionality from the still-open PR #23 as implemented, leaving broken source links and unavailable commands; it needs to follow that implementation or label the affected sections as proposed.

1 open issue

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 30, 2026 17:00

Copilot AI 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.

🔵 Needs a closer look

ARCHITECTURE.md presents functionality dependent on still-open #23 as implemented, leaving broken source links and documenting commands and safeguards absent from this branch.

1 open issue

Review effort: Balanced

Assisted-by: github-copilot:claude-sonnet-5
Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 17:07

Copilot AI 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.

🔵 Needs a closer look

ARCHITECTURE.md presents the unmerged Goa implementation and its safeguards as existing functionality, resulting in broken source links and misleading documentation.

1 open issue

Review effort: Balanced

@emsearcy
emsearcy marked this pull request as ready for review November 20, 2026 19:12
@emsearcy
emsearcy requested a review from a team as a code owner November 20, 2026 19:12
Copilot AI balanced review requested due to automatic review settings November 20, 2026 19:45
@lfx-one

lfx-one commented Nov 20, 2026 •

Copy link
Copy Markdown

@emsearcy I'm starting review 1 of this pull request now (started 2026-11-20 19:45 UTC using review agent v0.1.34). This usually takes a few minutes. I'll update this comment with the summary when I'm done. If there's no summary here after about 45 minutes, the review stopped: push a new commit, or post a comment that begins with a mention of me followed by re-review, to start another. For help with the review agent, see https://github.com/linuxfoundation/lfx-review-agent/issues.


Hi @emsearcy, thanks for the PR.

Summary

This PR adds ARCHITECTURE.md, which covers the Goa client-wrapping pattern, the Auth0 device-code flow and the internal security controls, with sequence diagrams. It also adds a CODEOWNERS override for that file. The docs match the code on main now that #23 has merged.

Decision

⚠️ Review passed, human approval required

❔ 1 question

This repository is set to review only, so I never approve pull requests here. A maintainer needs to review and approve it before merge.

Details

Overall impression: I checked each claim in ARCHITECTURE.md against internal/commands/goa.go, api.go and auth.go at the head commit. The adapter types, the flag handling, callGoaBuilder, the 64 MiB response cap, validateBrowserURL and terminalSafeText, apiRequireHTTPS and newNoRedirectHTTPClient all exist and behave as described. The earlier Copilot concern about broken links to unmerged sources is resolved: #23 is merged and the linked files exist. The .agents/skills/upgrade-maintenance directory also exists on main. I did not check that TestGoaBuilderSignatures parses builder source as described, because I did not read goa_test.go.

❔ Question: Does the @linuxfoundation/lfx-architecture-team team in CODEOWNERS exist with write access?

Other reviewers and CI checks: Copilot's latest review recommends approval, and its one earlier issue is marked resolved. The required checks DCO and License Header Check / License Header Check both passed on aa2e077.

Rule files: read AGENTS.md; skipped none (no CLAUDE.md, CONTRIBUTING.md or .claude/rules/ found at the root; I did not check subdirectories for CLAUDE.md or AGENTS.md)

Questions, problems, or feedback: https://github.com/linuxfoundation/lfx-review-agent/issues

Copilot AI 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.

🟢 Approval recommended

No active review issues are recorded for the architecture documentation and ownership updates.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@lfx-one lfx-one 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.

This pull request passed automated review. This repository is set to review only, so I never approve pull requests here. A maintainer needs to review and approve it before merge.

The documentation matches the code now on main (the Goa adapter, device-code flow and security controls all line up). One question is left inline about the new CODEOWNERS team.

Comment thread CODEOWNERS

# ARCHITECTURE.md is the cross-component contract and is owned by the
# architecture review team. This overrides the * rule above.
/ARCHITECTURE.md @linuxfoundation/lfx-architecture-team

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[question] Does @linuxfoundation/lfx-architecture-team exist and have write access to this repository?

Issue: The new /ARCHITECTURE.md rule replaces the * owners for that file, so only this team is requested for it.
Proof: The branch rules for main include a pull request rule with require_code_owner_review: true (ruleset 12056780). If the team does not exist or cannot write to lfx-cli, GitHub treats the CODEOWNERS entry as invalid and nobody can satisfy the code owner review for ARCHITECTURE.md. I can't read team membership or permissions, so I can't confirm either way.
Why it matters: Future edits to ARCHITECTURE.md could be unmergeable without an admin bypass.
Fix: Confirm the team exists with write access. If you also want @linuxfoundation/lfx-platform to review the file, add it to the /ARCHITECTURE.md line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've confirmed that the team has write access: in this repositories Settings, under Collaborators and teams, the "Organization Access" tab, the team @linuxfoundation/lfx is shown having write access, and @linuxfoundation/lfx-architecture-team is a subordinate team under that team.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 19:22
@lfx-one

lfx-one commented Nov 23, 2026 •

Copy link
Copy Markdown

@emsearcy I'm starting review 2 of this pull request now (started 2026-11-23 19:22 UTC using review agent v0.1.34). This usually takes a few minutes. I'll update this comment with the summary when I'm done. If there's no summary here after about 45 minutes, the review stopped: push a new commit, or post a comment that begins with a mention of me followed by re-review, to start another. For help with the review agent, see https://github.com/linuxfoundation/lfx-review-agent/issues.


Hi @emsearcy, thanks for the update and for replying on the CODEOWNERS question.

Summary

The new commits only merge main into this branch, which brings in the latest auth error handling change. ARCHITECTURE.md and the CODEOWNERS override are unchanged, and the docs still match the code. I found no new issues.

Decision

⚠️ Review passed, human approval required

❌ 1 prior item still open

This pull request passed automated review. This repository is set to review only, so I never approve pull requests here. A maintainer needs to review and approve it before merge.

Details

Overall impression: Review 1 already checked the documentation against the code, so I re-checked it against goa.go, api.go and auth.go at d2ca32b. The adapter, callGoaBuilder reflection, rawBodyDoer and its 64 MiB cap, validateBrowserURL, terminalSafeText, apiRequireHTTPS and newNoRedirectHTTPClient all still behave as the doc describes. I did not read goa_test.go, so the TestGoaBuilderSignatures description is not re-checked.

👏 Nice work: Replying on the CODEOWNERS thread with where the team's write access comes from (the parent lfx team) gave a concrete answer instead of a bare "yes".

Prior items:

  • ❌ Still open (question): @linuxfoundation/lfx-architecture-team in CODEOWNERS. You replied that it is a subordinate team of @linuxfoundation/lfx, which has write access. That sounds right, but I can't read team settings, so I can't confirm it. A maintainer can close this by checking that the team shows up as a valid code owner.

Other reviewers and CI checks: Copilot's latest review recommends approval, with no open issues. The required checks DCO and License Header Check / License Header Check both passed on d2ca32b.

Rule files: read AGENTS.md; skipped none (no CLAUDE.md, CONTRIBUTING.md or .claude/rules/ at the root; the changed files are all at the root, so there were no directory-level rule files to check)

Questions, problems, or feedback: https://github.com/linuxfoundation/lfx-review-agent/issues

Copilot AI 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.

🟢 Approval recommended

No active review issues are reported for the architecture documentation and its CODEOWNERS update.

No open issues 🎉

Review effort: Balanced

@lfx-one lfx-one 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.

This pull request passed automated review. This repository is set to review only, so I never approve pull requests here. A maintainer needs to review and approve it before merge.

The new commits only merge main into the branch. ARCHITECTURE.md still matches goa.go, api.go and auth.go at this head, and I found no new issues. My one earlier question, about the CODEOWNERS team, is still open: I can't read team settings to confirm the author's reply.

This branch has not been deployed

No deployments
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.

3 participants