Skip to content

Fix IRF-ATN-006 and IRF-ATN-009: Extract naming patterns and enforce file size limits#88

Merged
4444J99 merged 2 commits into
mainfrom
codex/agentic-titan-verified-resume-20260607T132106Z
Jun 7, 2026
Merged

Fix IRF-ATN-006 and IRF-ATN-009: Extract naming patterns and enforce file size limits#88
4444J99 merged 2 commits into
mainfrom
codex/agentic-titan-verified-resume-20260607T132106Z

Conversation

@4444J99

@4444J99 4444J99 commented Jun 7, 2026

Copy link
Copy Markdown
Member

Resolves IRF-ATN-006 and IRF-ATN-009.

…file size limits

- IRF-ATN-006: Return CodingPattern objects from _extract_naming_patterns
- IRF-ATN-009: Check min_file_size and max_file_size in train()
- Adjust tests to not skip small mock files
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

AI Quality Gate Report

Mode: advisory

Category Errors Warnings
Duplication 0 50
Security 0 2
Logic 0 6

Duplication

  • WARNING adapters/base.py:287 - 8-line normalized block duplicates adapters/base.py:185 (async def complete()
  • WARNING adapters/base.py:338 - 8-line normalized block duplicates adapters/base.py:210 (async def stream()
  • WARNING adapters/base.py:349 - 8-line normalized block duplicates adapters/base.py:296 (import httpx)
  • WARNING adapters/base.py:351 - 8-line normalized block duplicates adapters/base.py:299 (ollama_messages = [])
  • WARNING adapters/base.py:352 - 8-line normalized block duplicates adapters/base.py:300 (if system:)
  • WARNING adapters/base.py:353 - 8-line normalized block duplicates adapters/base.py:301 (ollama_messages.append({"role": "system", "content": system}))
  • WARNING adapters/base.py:354 - 8-line normalized block duplicates adapters/base.py:302 (for msg in messages:)
  • WARNING adapters/base.py:559 - 8-line normalized block duplicates adapters/base.py:185 (async def complete()
  • WARNING adapters/base.py:643 - 8-line normalized block duplicates adapters/base.py:336 ())
  • WARNING adapters/base.py:645 - 8-line normalized block duplicates adapters/base.py:210 (async def stream()
  • WARNING adapters/base.py:695 - 8-line normalized block duplicates adapters/base.py:185 (async def complete()
  • WARNING adapters/base.py:765 - 8-line normalized block duplicates adapters/base.py:336 ())
  • WARNING adapters/base.py:767 - 8-line normalized block duplicates adapters/base.py:210 (async def stream()
  • WARNING adapters/base.py:823 - 8-line normalized block duplicates adapters/base.py:185 (async def complete()
  • WARNING adapters/base.py:824 - 8-line normalized block duplicates adapters/base.py:288 (self,)
  • WARNING adapters/base.py:865 - 8-line normalized block duplicates adapters/base.py:335 (raw_response=data,)
  • WARNING adapters/base.py:866 - 8-line normalized block duplicates adapters/base.py:336 ())
  • WARNING adapters/base.py:868 - 8-line normalized block duplicates adapters/base.py:210 (async def stream()
  • WARNING adapters/base.py:869 - 8-line normalized block duplicates adapters/base.py:339 (self,)
  • WARNING adapters/base.py:870 - 8-line normalized block duplicates adapters/base.py:340 (messages: list[LLMMessage],)
  • WARNING adapters/base.py:890 - 8-line normalized block duplicates adapters/base.py:842 ("https://api.groq.com/openai/v1/chat/completions",)
  • WARNING adapters/base.py:891 - 8-line normalized block duplicates adapters/base.py:843 (headers={)
  • WARNING adapters/base.py:892 - 8-line normalized block duplicates adapters/base.py:844 ("Authorization": f"Bearer {self.config.api_key}",)
  • WARNING adapters/router.py:554 - 8-line normalized block duplicates adapters/base.py:336 ())
  • WARNING adapters/router.py:557 - 8-line normalized block duplicates adapters/router.py:383 (self,)
  • WARNING adapters/router.py:558 - 8-line normalized block duplicates adapters/router.py:384 (messages: list[LLMMessage],)
  • WARNING adapters/router.py:571 - 8-line normalized block duplicates adapters/router.py:397 (Args:)
  • WARNING adapters/router.py:572 - 8-line normalized block duplicates adapters/router.py:398 (messages: Conversation messages)
  • WARNING adapters/router.py:583 - 8-line normalized block duplicates adapters/router.py:409 (""")
  • WARNING adapters/router.py:584 - 8-line normalized block duplicates adapters/router.py:410 (await self._ensure_initialized())
  • WARNING adapters/router.py:587 - 8-line normalized block duplicates adapters/router.py:413 (if provider and classification:)
  • WARNING adapters/router.py:588 - 8-line normalized block duplicates adapters/router.py:414 (allowed = CLASSIFICATION_ALLOWED_PROVIDERS.get(classification, set()))
  • WARNING adapters/router.py:589 - 8-line normalized block duplicates adapters/router.py:415 (if provider not in allowed:)
  • WARNING adapters/router.py:590 - 8-line normalized block duplicates adapters/router.py:416 (raise LLMAdapterError()
  • WARNING adapters/router.py:591 - 8-line normalized block duplicates adapters/router.py:417 (f"Provider {provider.value} not allowed for ")
  • WARNING adapters/router.py:592 - 8-line normalized block duplicates adapters/router.py:418 (f"classification={classification.value}")
  • WARNING adapters/router.py:593 - 8-line normalized block duplicates adapters/router.py:419 ())
  • WARNING adapters/router.py:595 - 8-line normalized block duplicates adapters/router.py:422 (supports_native_tools = True)
  • WARNING adapters/router.py:596 - 8-line normalized block duplicates adapters/router.py:423 (if provider:)
  • WARNING adapters/router.py:597 - 8-line normalized block duplicates adapters/router.py:424 (if not self._providers[provider].available:)
  • WARNING agents/archetypes/assemblage.py:11 - 8-line normalized block duplicates agents/archetypes/actor_network.py:11 (""")
  • WARNING agents/archetypes/assemblage.py:408 - 8-line normalized block duplicates agents/archetypes/assemblage.py:370 ({)
  • WARNING agents/archetypes/bureaucracy.py:12 - 8-line normalized block duplicates agents/archetypes/actor_network.py:11 (""")
  • WARNING agents/archetypes/dao.py:12 - 8-line normalized block duplicates agents/archetypes/actor_network.py:11 (""")
  • WARNING agents/archetypes/orchestrator.py:318 - 8-line normalized block duplicates agents/archetypes/orchestrator.py:291 (if current:)
  • WARNING agents/archetypes/orchestrator.py:319 - 8-line normalized block duplicates agents/archetypes/orchestrator.py:292 (subtasks.append()
  • WARNING agents/archetypes/security_analyst.py:10 - 8-line normalized block duplicates agents/archetypes/devops.py:10 (""")
  • WARNING agents/archetypes/security_analyst.py:12 - 8-line normalized block duplicates agents/archetypes/devops.py:12 (from future import annotations)
  • WARNING agents/archetypes/security_analyst.py:14 - 8-line normalized block duplicates agents/archetypes/devops.py:14 (import logging)
  • WARNING agents/learning/entity_extractor.py:217 - 8-line normalized block duplicates agents/learning/entity_extractor.py:110 ("react",)

Security

  • WARNING titan/persistence/checkpoint.py:218 - pickle-load: review generated code for unsafe default
  • WARNING titan/persistence/checkpoint.py:221 - pickle-load: review generated code for unsafe default

Logic

  • WARNING dashboard/app.py:584 - while True block has no obvious break, return, or raise
  • WARNING hive/topology.py:1348 - if/else branches are identical for Compare(left=Subscript(value=Attribute(value=Name(id='source', ctx=Load()), attr
  • WARNING titan/api/inquiry_ws.py:173 - while True block has no obvious break, return, or raise
  • WARNING titan/cli.py:1148 - while True block has no obvious break, return, or raise
  • WARNING titan/workflows/narrative_synthesizer.py:404 - if/else branches are identical for Compare(left=Name(id='style', ctx=Load()), ops=[Eq()], comparators=[Attribute(va
  • WARNING titan_mcp/server.py:214 - if/else branches are identical for Compare(left=Attribute(value=Name(id='session', ctx=Load()), attr='agent_type',

Advisory mode does not block merge. Review findings before strict mode is enabled.

@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: b7a4672454

ℹ️ 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".

type=PatternType.NAMING,
name=f"function_{case}",
description=f"Uses {case} for function names",
frequency=count,

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 Aggregate naming pattern counts across files

When the default min_examples=3 is used, this stores each naming CodingPattern with only the count from the current file, while get_style_profile() filters profile.patterns by that per-pattern frequency. A codebase with three files that each contain one snake_case function has three examples overall, but no function_snake_case pattern is returned by extract_patterns()/patterns_found, so common naming conventions disappear unless enough examples happen to be in a single file.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@4444J99 4444J99 merged commit 0bd53ac into main Jun 7, 2026
6 checks passed
@4444J99 4444J99 deleted the codex/agentic-titan-verified-resume-20260607T132106Z branch June 7, 2026 14:37
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