Skip to content

Harden repo workflow and modernize runtime verification - #1

Merged
shashank03-dev merged 3 commits into
mainfrom
feat/workflow-prod-hardening
May 24, 2026
Merged

Harden repo workflow and modernize runtime verification#1
shashank03-dev merged 3 commits into
mainfrom
feat/workflow-prod-hardening

Conversation

@shashank03-dev

Copy link
Copy Markdown
Owner

Summary

  • add a repo-level workflow contract with Makefile, CI, env templates, and canonical contributor/agent docs
  • move backend cleanup and RAG ingestion out of FastAPI startup into an explicit bootstrap command and verify it end to end
  • remove false-green frontend build behavior, modernize Gemini integration to google-genai, and add graceful RAG fallback behavior

Test Plan

  • pytest -q
  • make bootstrap
  • make check
  • browser verification of /, /services, /pmkisan, /form-fill, /renewals, /track-search, and /documents login redirect
  • PM Kisan UI -> Next API -> FastAPI round-trip verification

@vercel

vercel Bot commented May 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
govbot Ready Ready Preview, Comment May 24, 2026 2:03pm

@shashank03-dev
shashank03-dev merged commit bb595b6 into main May 24, 2026
2 of 4 checks passed
@shashank03-dev
shashank03-dev deleted the feat/workflow-prod-hardening branch May 24, 2026 14:05

@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: 5b8477d55a

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

needs_ingestion = True

if needs_ingestion:
count = await rag_engine.ingest_document(rules_pdf_path)

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 Respect custom Chroma path during bootstrap ingestion

bootstrap_backend checks collection state in the caller-supplied chroma_path, but on ingestion it delegates to rag_engine.ingest_document(...), which writes via a module-level collection initialized against ./chroma_db (gov_agent/rag_engine.py), not the passed path. In any non-default run (e.g., temp/test DB), this leaves the requested collection empty and causes bootstrap to re-ingest on every run while data is written to a different store.

Useful? React with 👍 / 👎.

return <>{children}</>;
}

const isLoggedIn = typeof window !== 'undefined' && !!localStorage.getItem('govbot_token');

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 Avoid reading localStorage auth state during render

Computing isLoggedIn directly from localStorage during render creates an SSR/client hydration mismatch: server-rendered output is always logged-out, but hydrated client output may be logged-in for users with a stored token. This can cause visible nav flicker and hydration warnings on first paint; the prior effect-driven state initialization avoided that mismatch.

Useful? React with 👍 / 👎.

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