Skip to content

docs: update all contributing resources to call out upstream dependendencies - #834

Merged
JoshMock merged 9 commits into
mainfrom
spec-contrib-guide
Nov 30, 2026
Merged

JoshMock merged 9 commits into
mainfrom
spec-contrib-guide

Conversation

@JoshMock

Copy link
Copy Markdown
Member

We regularly get PRs here cleaning up or otherwise fixing command names, schemas, etc. where the real fix should happen upstream in elastic/schemas-js and its underlying code generator.

These changes ensure agents, humans, Copilot reviewers, etc. are all explicitly guided to the correct locations for making those fixes rather than trying to apply them here.

Agents patched bad upstream data (e.g. Kibana operationId names) inside
this repo instead of fixing it where it originates.

Assisted-by: Pi Coding Agent (claude-sonnet-5.5)
Assisted-by: Pi Coding Agent (claude-sonnet-5.5)
Assisted-by: Pi Coding Agent (claude-sonnet-5.5)
Assisted-by: Pi Coding Agent (claude-sonnet-5.5)
Assisted-by: Pi Coding Agent (claude-sonnet-5.5)
Assisted-by: Pi Coding Agent (claude-sonnet-5.5)
Assisted-by: Pi Coding Agent (claude-sonnet-5.5)
Assisted-by: Pi Coding Agent (claude-sonnet-5.5)
Copilot AI balanced review requested due to automatic review settings November 30, 2026 20:01
@github-actions

Copy link
Copy Markdown
Contributor

👋 This PR can use the first-failure repair loop on GitHub Actions and Buildkite.

Labels

  • auto-loop: triage the first CI or Buildkite failure and commit in-repo fixes (also AI review and CodeQL)
  • skip-ai-review: silences the review bot
  • skip-auto-loop: halt the repair loop (also added when you comment /stop)

Comments

  • /stop: halt the repair loop
  • /bad on a finding: the bot writes a short do not re-flag line from the finding and your note into .github/skills/ai-review-memory.md. A reason is optional.
    • Example: /bad false positive. This path is already encoded.

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 remain for the upstream-first contributor and agent guidance changes.

No open issues 🎉

What changed in this PR

This PR aligns contributor and agent guidance so defects in schema-derived command names, types, and descriptions are fixed upstream rather than patched in Elastic CLI.

Changes:

  • Documents ownership boundaries between API specifications, schema generation, and CLI behavior.
  • Adds an upstream-check skill and updates automated review guidance.
  • Defines justification, approval, and tracking requirements for local workarounds.
File Description
CONTRIBUTING.md Adds an upstream-first contribution checklist item.
ARCHITECTURE.md Documents schema-data ownership and discourages local overrides.
AGENTS.md Adds ownership checks and rules for approved stopgaps.
.github/​workflows/​ai-pr-review-run.yml Updates the review prompt to flag upstream-data workarounds.
.github/​skills/​code-review/​SKILL.md Adds the upstream-workaround review requirement.
.github/​auto-pr-context.md Directs repair agents to report upstream defects and stop.
.agents/​skills/​upstream-check/​SKILL.md Adds a procedure for tracing defects to their owning repository.

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

❌MegaLinter analysis: Error

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 1 0 0 0.41s
✅ COPYPASTE jscpd yes no no 0.58s
✅ REPOSITORY gitleaks yes no no 59.75s
✅ REPOSITORY git_diff yes no no 0.09s
✅ REPOSITORY secretlint yes no no 10.91s
❌ REPOSITORY trivy yes 1 no 18.71s
✅ YAML yamllint 1 0 0 0.59s

Detailed Issues

❌ REPOSITORY / trivy - 1 error
2026-11-30T20:04:33Z	ERROR	[vulndb] The first run cannot skip downloading DB
2026-11-30T20:04:33Z	FATAL	Fatal error	run error: init error: DB error: database error: --skip-db-update cannot be specified on the first run

Notices

📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)

See detailed reports in MegaLinter artifacts
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

What failed: MegaLinter step failed but no logs were provided to identify the specific linting errors. The failure cannot be diagnosed without log output showing which linter failed and on which file/rule.
Resolution: Rerun the job to check if this is a flaky infrastructure issue, or retrieve the full MegaLinter logs (typically uploaded as artifacts) to identify the specific lint violations.

Job: https://github.com/elastic/cli/actions/runs/46501607533/job/142140797393

Resolution: reran the failed CI jobs.

Assisted-by: Pi Coding Agent (claude-sonnet-5.5)
@JoshMock
JoshMock merged commit d2949a4 into main Nov 30, 2026
34 of 36 checks passed
@JoshMock
JoshMock deleted the spec-contrib-guide branch November 30, 2026 20:06
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.

2 participants