Skip to content

Future improvements

Recommendations for the next phase, from the final review of the codebase. They are ordered by area and are limited to changes with a clear benefit for reliability, maintainability, security, scalability, deployment or the user experience.

Complexity: Low is days, Medium one to three weeks, High more than that or a design change.

Summary

# Improvement Area Complexity
1 Continuous integration pipeline Reliability Low
2 User authentication and authorisation Security Medium
3 OSB import validation in CI Reliability High
4 .NET code generation and DB-mapping parser Product scope High
5 Scale-out backend: shared database and queue Scalability High
6 Generated API client for the UI Maintainability Medium
7 Plan history, diff and revert User experience Medium
8 Show how each artifact was produced User experience Low
9 Plan without an LLM Reliability Low
10 Repository write-back: update pull requests and clean stale files User experience Medium
11 User-delegated repository identity Security High
12 Metrics and tracing Operations Medium
13 Release and image publishing Deployment Low
14 Chat quality evaluation with local models Reliability Medium
15 Specification-driven operations Product scope High
16 Technical debt clean-up Maintainability Low–Medium

Continuous integration pipeline

  • Current limitation: only the documentation has a workflow. Tests, lint, the UI build and the Docker build run only when someone runs them locally, so a regression can reach main unnoticed.
  • Proposed improvement: a workflow on pull requests that runs:
    • pytest --cov (with the existing 80% gate) and ruff check;
    • dotnet test;
    • docker build;
    • the stub-LLM smoke test (deploy/smoke), and a non-blocking mypy report.
  • Expected benefit: every change is verified the same way. The UI contract fixtures and the API stay in step, and breaking API changes are caught before merge.
  • Complexity: Low.
  • Dependencies / impact: GitHub Actions minutes (or Azure Pipelines on Azure DevOps Server). No code change.

User authentication and authorisation

  • Current limitation: there is no login. Everyone who reaches the site sees and changes every task, and the backend trusts the UI through one shared key. Audit trails record "chat", "ui" or "system", not a person.
  • Proposed improvement:
    1. Windows or OpenID Connect authentication on the Blazor app (Active Directory or Entra ID).
    2. Pass the user's identity to the backend in a signed header or token.
    3. Store an owner and a creator on sessions, plan versions and repository changes.
    4. Add simple roles: viewer, engineer, approver. Approval and repository apply could require the approver role.
  • Expected benefit: access control, accountability (who approved what), per-user task lists, and a prerequisite for delegated repository access.
  • Complexity: Medium.
  • Dependencies / impact:
    • UI: authentication middleware and an identity header.
    • Backend: validate the identity next to the API key.
    • Database: add owner columns with a migration.
    • API: filter lists by owner.

OSB import validation in CI

  • Current limitation: generated projects are only checked structurally. Whether OSB accepts them is verified by hand in JDeveloper or the console.
  • Proposed improvement: a job that imports generated sample projects into an OSB 12c container (or uses the OSB configjar tool) and fails on import errors. Run it for the sample inputs whenever templates or builders change.
  • Expected benefit: catches template and builder regressions that the structural validator cannot see; gives confidence before teams adopt new versions.
  • Complexity: High (OSB licensing and image, slow startup).
  • Dependencies / impact: an Oracle-licensed environment; separate from the main CI because of its runtime.

.NET code generation and DB-mapping parser

  • Current limitation: the dotnet output and DB-mapping spreadsheets are routed to a stub; the original requirement is open.
  • Proposed improvement:
    1. An Excel DB-mapping parser (openpyxl) that produces a stored-procedure model.
    2. Template-driven generation of a .NET Web API from the team's reference template, added as new units (fingerprints included) behind the existing stub_dotnet branch.
    3. An option to point the OSB business service at the generated API.
  • Expected benefit: covers the second half of the integration pattern (database → .NET → OSB) from the same plan.
  • Complexity: High.
  • Dependencies / impact: needs the reference .NET template and a sample mapping from the team. New plan fields (database targets), a new checklist branch, and new documentation sections.

Scale-out backend: shared database and queue

  • Current limitation: the backend must run as one process. Progress fan-out, the session event bus, job pools and cancellation flags are in memory; SQLite is the store. Throughput is capped at four concurrent runs and there is no redundancy.
  • Proposed improvement:
    1. PostgreSQL behind the existing SQLAlchemy stores, and the LangGraph Postgres checkpointer.
    2. A queue (for example Redis streams, or Postgres LISTEN/NOTIFY) for jobs and events.
    3. Workers separate from the API.
    4. Cancellation flags in the database.
  • Expected benefit: several API replicas and workers, rolling upgrades without interrupting runs, and higher throughput.
  • Complexity: High.
  • Dependencies / impact: touches progress/broker.py, services/session_events.py, services/jobs.py and persistence/. The deployment gains two services. Worth it only when usage outgrows one host.

Generated API client for the UI

  • Current limitation: the C# contracts are written by hand and checked against captured fixtures. Every API change needs a manual edit, a re-capture and a review.
  • Proposed improvement: add explicit response models to the session endpoints (several return composite dictionaries today). Then generate the C# client from /openapi.json (NSwag or Kiota) in the build, and keep the fixtures only as behavioural tests.
  • Expected benefit: the API and the UI cannot drift apart silently, and the OpenAPI document becomes an accurate reference for automation clients.
  • Complexity: Medium.
  • Dependencies / impact: typed Pydantic response models for SessionService.view, plan_view and the repository views; build tooling in ui/.

Plan history, diff and revert

  • Current limitation: every plan version is stored with its source and summary, but the UI shows only the current one. Undoing a change means editing it back by hand.
  • Proposed improvement: a history panel listing versions (who and what changed, approved or not), a side-by-side diff of two versions, and Revert to this version, saved as a new version through set_groups and set_field.
  • Expected benefit: safe experimentation with groupings, and a clear record of what was approved and generated.
  • Complexity: Medium.
  • Dependencies / impact: a new read endpoint for versions (the data is already in session_plan_versions) and UI work. No migration.

Show how each artifact was produced

  • Current limitation: each run records whether an artifact came from a template, a deterministic builder or the LLM fallback (GenerationTrace), but it stays in the graph state; users cannot see it.
  • Proposed improvement: store the traces in the run result and show a "produced by" badge and the validation result per file on the Artifacts tab, with LLM-produced files highlighted for review.
  • Expected benefit: reviewers know which files need extra attention, and the LLM's actual contribution becomes measurable.
  • Complexity: Low.
  • Dependencies / impact: services/runs.execute_graph (result payload), the UI contracts and the Artifacts panel.

Plan without an LLM

  • Current limitation: the first plan of a session always calls the LLM for the project name and protocols, although document facts override most of it. If the LLM is down, no plan is created and the designer cannot be used either.
  • Proposed improvement: build the first plan deterministically from the documents (name from the document title or file name, protocols and namespace from inspection, OSB output), and use the LLM only to refine it when available.
  • Expected benefit: the UI stays usable without an LLM, planning is faster, and the dependency on model quality shrinks.
  • Complexity: Low.
  • Dependencies / impact: services/planning.extract_plan and the turn graph's ingest. Tests already cover the document facts.

Repository write-back: update pull requests and clean stale files

  • Current limitation: each apply creates a new branch and pull request, even for a re-run of the same plan. Files that are no longer generated are reported but never removed.
  • Proposed improvement:
    1. Reuse the session's open branch and pull request and push new commits to it.
    2. Offer an explicit, per-file "delete stale file" choice in the preview, recorded in the manifest.
  • Expected benefit: fewer pull requests to review, and repositories that do not accumulate obsolete artifacts.
  • Complexity: Medium.
  • Dependencies / impact: services/repository/changes.py and providers.py (look up existing pull requests), the preview UI, and a stored branch per session and repository.

User-delegated repository identity

  • Current limitation: all commits and pull requests are made by one service account.
  • Proposed improvement: after authentication exists, create pull requests on behalf of the signed-in user (an OAuth flow for Azure DevOps or GitHub), keeping the service account as a fallback.
  • Expected benefit: correct authorship and approval policies in the repository; no broad shared credential.
  • Complexity: High.
  • Dependencies / impact: requires user authentication; token storage and refresh.

Metrics and tracing

  • Current limitation: there are structured logs and health checks, but no metrics. Run durations, failure rates, LLM latency and queue lengths are invisible unless you grep logs.
  • Proposed improvement: OpenTelemetry instrumentation for FastAPI, httpx and LiteLLM calls, plus a few metrics: runs by status, run duration, units reused versus generated, LLM call latency and errors. Export them to the organisation's monitoring.
  • Expected benefit: capacity planning, alerting on LLM outages, and evidence of the incremental generation's effect.
  • Complexity: Medium.
  • Dependencies / impact: new dependencies and an exporter configuration. The request, session and run ids already in the logs can become span attributes.

Release and image publishing

  • Current limitation: images are built on the Docker host from source, the version is 0.1.0 everywhere, and there is no changelog.
  • Proposed improvement: semantic versions, a CHANGELOG.md, and a release workflow. The workflow builds and signs the image, pushes it to the internal registry with a version tag, and publishes the UI as a versioned artifact.
  • Expected benefit: reproducible, auditable deployments and simple rollbacks (FORGE_IMAGE_TAG).
  • Complexity: Low.
  • Dependencies / impact: a container registry and CI. Deployment docs change from "build" to "pull".

Chat quality evaluation with local models

  • Current limitation: chat interpretation is tested with scripted LLM replies. How well a given local model maps real requests to plan operations is unknown until users try it.
  • Proposed improvement: an evaluation set of realistic requests with expected plan operations, and an opt-in test or script that runs it against a configured model. It reports accuracy and repair rates per intent.
  • Expected benefit: an evidence-based model choice, and regression checks when prompts or PLAN_OPERATIONS_GUIDE change.
  • Complexity: Medium.
  • Dependencies / impact: a curated dataset; access to the model; a non-blocking job or a manual script.

Specification-driven operations

  • Current limitation: PDF and Word interface specifications are passed to the planner as text only. Operations come only from OpenAPI, WSDL or WADL.
  • Proposed improvement: extract candidate operations and fields from specifications with the LLM, as a reviewable proposal (like grouping proposals today). The user accepts or edits them in the designer before they join the catalog.
  • Expected benefit: projects can start from the documents teams often have first.
  • Complexity: High.
  • Dependencies / impact: extraction prompts with schema validation, provenance on operations, designer support for proposed operations, and careful review UX because the result is not deterministic.

Technical debt clean-up

Smaller items found during the final review. None blocks the work above.

Item Proposed change Complexity
Two inspection paths parsers/inspect.inspect_source (planning facts) and inspect_document (generation metadata) parse the same documents differently. Derive the planning facts from inspect_document's metadata and drop the text-based fallbacks. Medium
String-to-code mapping in validation xml_quality.semantic_issues returns sentences that validate._issue_from_message maps back to codes. Return ValidationIssues directly and let the LLM loop format them. Low
Type checking mypy reports about 80 annotation-level errors, mostly dict[str, object] keyword expansion and datetime | None returned by the stores. Fix them, then add mypy to CI. Low
Formatter ruff lint is configured, but no formatter is enforced. Adopt ruff format in one dedicated commit. Low
Composite API responses Several session endpoints return untyped dictionaries. Introduce response models (see generated API client). Medium
RecommendedAction.REGENERATE, ServiceMetadata.raw_text Unused values kept for compatibility of stored data; remove them with a data review. Low