Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 17, 2026

Summary

  • What: Address PR Merge/pr 158 local #180 review feedback - remove duplicate documentation, add missing CLI args, fix workflow artifact references.
  • Why: Documentation contained 99 lines of duplicate content; orchestrator script accepted --min-tokens and --min-chars in code but couldn't parse them from CLI; workflow referenced non-existent output files.

Changes

  • docs/ai/ai-toolkit-guidance.md: Removed duplicate content (lines 131-365) and duplicate command example. Reduced file from 365 to 266 lines.
  • scripts/orchestrate_content.py: Added --min-tokens and --min-chars argument parsing in main(). Updated usage message.
  • .github/workflows/orchestrate-test.yml: Removed invalid --output and --log-ttft flags; removed artifact upload step for non-existent files.

Testing

  • All 9 tests in test_orchestrate_content.py pass.
  • CodeQL scan: 0 alerts.
  • Manual verification of CLI help message.

Checklist

  • Documentation deduplication complete
  • CLI argument parsing added
  • Workflow artifact references fixed
  • All tests passing
  • Security scan clean

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: 73junito <86015877+73junito@users.noreply.github.com>
Copilot AI changed the title [WIP] Merge pull request 158 for code fixes Fix documentation duplication, CLI argument parsing, and workflow artifacts Jan 17, 2026
Copilot AI requested a review from 73junito January 17, 2026 17:27
Copy link
Owner

@73junito 73junito left a comment

Choose a reason for hiding this comment

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

viewed

@73junito 73junito marked this pull request as ready for review January 17, 2026 18:45
Copilot AI review requested due to automatic review settings January 17, 2026 18:45
@73junito 73junito merged commit cacbebe into merge/pr-158-local Jan 17, 2026
4 of 7 checks passed
Copy link
Contributor

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

This PR addresses review feedback from PR #180 by fixing three distinct issues: removing 99 lines of duplicate documentation, adding CLI argument parsing for quality control parameters, and removing invalid workflow flags that don't exist in the script.

Changes:

  • Added CLI argument parsing for --min-tokens and --min-chars in the orchestrate script
  • Removed duplicate documentation content and redundant command example from AI toolkit guidance
  • Removed non-existent --output and --log-ttft flags from the workflow and eliminated artifact upload for files that aren't generated

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
scripts/orchestrate_content.py Adds CLI parsing for --min-tokens and --min-chars arguments, updates usage message, and improves exception handling consistency
docs/ai/ai-toolkit-guidance.md Removes duplicate documentation sections and redundant command example
.github/workflows/orchestrate-test.yml Removes invalid CLI flags and artifact upload step for non-existent output files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 194 to +195
except Exception:
concurrency = 4
pass
Copy link

Copilot AI Jan 17, 2026

Choose a reason for hiding this comment

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

The catch-all except Exception: pass blocks for CLI argument parsing are overly broad and could silently swallow unexpected errors. Consider removing these blocks and only catching (ValueError, IndexError), which already handles the expected error cases when the flag is missing or the value cannot be parsed.

Copilot uses AI. Check for mistakes.
Comment on lines +204 to +205
except Exception:
pass
Copy link

Copilot AI Jan 17, 2026

Choose a reason for hiding this comment

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

The catch-all except Exception: pass blocks for CLI argument parsing are overly broad and could silently swallow unexpected errors. Consider removing these blocks and only catching (ValueError, IndexError), which already handles the expected error cases when the flag is missing or the value cannot be parsed.

Copilot uses AI. Check for mistakes.
Comment on lines +214 to +215
except Exception:
pass
Copy link

Copilot AI Jan 17, 2026

Choose a reason for hiding this comment

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

The catch-all except Exception: pass blocks for CLI argument parsing are overly broad and could silently swallow unexpected errors. Consider removing these blocks and only catching (ValueError, IndexError), which already handles the expected error cases when the flag is missing or the value cannot be parsed.

Copilot uses AI. Check for mistakes.
Comment on lines +197 to +215
# Parse --min-tokens
min_tokens = DEFAULT_MIN_TOKENS
try:
idx = sys.argv.index("--min-tokens")
min_tokens = int(sys.argv[idx + 1])
except (ValueError, IndexError):
pass
except Exception:
pass

# Parse --min-chars
min_chars = DEFAULT_MIN_CHARS
try:
idx = sys.argv.index("--min-chars")
min_chars = int(sys.argv[idx + 1])
except (ValueError, IndexError):
pass
except Exception:
pass
Copy link

Copilot AI Jan 17, 2026

Choose a reason for hiding this comment

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

The new CLI argument parsing for --min-tokens and --min-chars lacks test coverage. While the underlying orchestrate() function is tested with these parameters, the CLI parsing logic in main() that extracts these values from sys.argv is not tested. Consider adding tests that verify the arguments are correctly parsed from the command line and passed to the orchestrate function.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants