Skip to content

Fix transient credential preflight failures - #252

Merged
aixle-com[bot] merged 12 commits into
developfrom
feature/credential-preflight-retry
Sep 15, 2026
Merged

aixle-com[bot] merged 12 commits into
developfrom
feature/credential-preflight-retry

Conversation

@aixle-com

@aixle-com aixle-com Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • verify every credential file write with metadata-only stat before reporting success or updating last_used_at
  • retry credential seed + preflight up to three times after container readiness, with secret-safe path/container/size/mode/owner/write diagnostics
  • allow interactive agent sessions with no stored credential to reach first-time login
  • record definitive preflight failures as retryable rather than leaving runtime operations uncertain

Testing

  • targeted Rails tests: 234 runs, 667 assertions, 0 failures, 0 errors
  • RuboCop: 11 changed files inspected, no offenses

Aixle Developer Agent added 8 commits September 12, 2026 11:09
- antigravity_cli_adapter_test: assert individual valid/error_code keys
  instead of full-hash equality, since credential_preflight now merges
  stat diagnostics into its return (matches codex_adapter_test's pattern).
- phase_activity_test: use mode "non_interactive" so the test session
  still exercises raise_unresolved_credential! instead of hitting the
  new interactive first-login exemption.
TerminalSession requires initial_prompt when mode is non_interactive;
the preflight regression test's session needs it to actually save.
Aixle Developer Agent added 2 commits September 14, 2026 09:36
Address PR #252 review comments: a retry masks a real seed/entrypoint
race instead of surfacing it, so run_credential_preflight! now fails
on the first attempt instead of retrying up to 3 times. Also collapse
the two near-identical container-stat helpers (agent_credentials_service's
container_file_metadata and base_adapter's credential_file_metadata) into
one, used by both the initial write verification and adapter preflight.

@aixle-com aixle-com Bot left a comment

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.

The verified-write and diagnostic groundwork is useful, but two task-level requirements remain unmet: the transient failure is still fatal, and the user-visible session error still drops the new metadata.

@aixle-com aixle-com Bot left a comment

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.

Code review completed at a59288e: no new findings. The Kubernetes exec v5 stdin stream-close fix addresses the confirmed write race at the transport layer; credential verification/diagnostics, Temporal propagation, runtime-operation state handling, and regression coverage align with repository patterns. Approval was attempted, but GitHub does not permit this integration identity to approve its own PR.

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