Help
Troubleshooting
What each error means and how to fix it, from a declined skill to an expired session.
27 min read13 sections
This page lists the problems people run into in Alara Code, grouped by where you see them. For each one you get the text you see, what causes it, and how to fix it. Most messages already name the fix; this page explains the ones that do not.
When a step fails, its turn in SDLC Pipeline shows a short summary ("The agent declined this step", "Your session expired", ...) with a hint underneath. Click Details to see the exact message the bridge recorded; that message, or the code at its start, is what you look up here. The same text is kept in the project's Activity tab.
Where errors appear
- You click Run, Approve, Send or Upload to Refused before it starts?
- Refused before it starts? to Toast with a title and the reason, yes
- Refused before it starts? to Run or reply in progress, no
- Run or reply in progress to Fails later?
- Fails later? to Failed turn: summary, hint, Details, step
- Fails later? to Chat reply shows the failure text, chat
- Failed turn: summary, hint, Details to Activity keeps the full message
- Toasts appear when the bridge refuses a request before any work starts: no permission, a locked step, another run in progress, an expired session, an unreadable file.
- A failed turn appears when a step started but did not finish. Its summary is written for people; the text under Details is the bridge's own.
- A failed chat reply appears in the conversation in place of the agent's answer.
The agent and its skills
"The agent declined this step"
What you see. A failed turn titled "The agent declined this step", with the agent's one-sentence reason, and the hint "Alara Code sends the skill with every message, update the agent's persona in Alara from the skill pack's README, then run the step again." Under Details the message looks like AGENT_INVALID_REPLY: sdlc-scope-analyst: the agent declined, ....
Cause. Every step asks the project agent to apply one named skill file. Alara Code sends the skill and the document template inside every message, so the agent does not need its own copy. It still refuses when its own persona insists on a reference file it does not hold, or when the input lacks something the skill needs. The most common cause is an agent persona written before the skill pack changed.
Fix.
- Open Settings in the project, go to the Agent section and click Check agent.
- Update the agent's persona in Alara from the skill pack's README (Settings › Alara Agents has the pack), and add any file Check agent lists as not seen, with exactly that name.
- Run the step again.
See Set up the project agent for the full list of skill files.
Check agent lists skill files it did not see
What you see. In Project Settings, under Agent: "The agent answered, it is ready to run steps. Alara Code sends each step's skill and document template with every message, so the agent does not need its own copies." followed by the file names it did not list.
Cause. Check agent asks the bound agent which skill files it can see and compares the answer with the seventeen files in the pack. The result is always ready when the agent answers: a file it does not list is shown for information.
Fix. Nothing is required. Adding the files as reference files in Alara is optional, and is only needed if a step is refused with "The agent declined this step".
The chat says the agent does not have its chat skill
What you see. A chat reply reading "The project agent refused because it looks for its own copy of the chat skill. Alara Code sends the skill with every message, update the agent's persona in Alara OS from the Alara Code skill pack's README, then send the message again."
Cause. The project chat uses its own skill file, sdlc-project-assistant.md, and Alara Code sends it with every message. The agent's own persona insists on holding a copy and refuses without one.
Fix. Update the agent's persona in Alara from the skill pack's README (adding sdlc-project-assistant.md as a reference file also works), and send the message again.
AGENT_REPLY_TIMEOUT: "The agent took too long to answer"
What you see. A failed turn titled "The agent took too long to answer", hint "Check the agent's model limits in Alara, then run the step again." Details: AGENT_REPLY_TIMEOUT: The agent did not answer in time, ... Check the agent in Alara (skills, model limits) and re-run.
Cause. Each call to the agent has a deadline (ten minutes by default). No reply arrived before it. A slow or overloaded model, a model with a low output limit that stalls on a long document, or a reply that was lost on Alara's side can all cause it.
Fix. Check the agent's model and its limits in Alara, then run the step again. In the chat the same cause reads "The agent did not answer in time. Send the message again."
AGENT_CALL_FAILED: "The agent's model failed"
What you see. A failed turn titled "The agent's model failed", hint "Check the agent's model in Alara, then run the step again." Details start with AGENT_CALL_FAILED: and end "Check the agent's model in Alara and re-run."
Cause. Alara reported that the agent's run failed, typically the model provider behind the agent returned an error.
Fix. Check the agent's model configuration in Alara, then run the step again.
AGENT_INVALID_REPLY: "The agent's reply was not in the expected format"
What you see. A failed turn titled "The agent's reply was not in the expected format", hint "Run the step again; if it keeps failing, check the agent's model and persona in Alara." Details start with AGENT_INVALID_REPLY: and say, for example, "the agent's reply was not valid JSON" or "the agent returned an empty reply". The toast version is titled "The agent did not return the contract".
Cause. Each skill expects a reply in a fixed JSON shape (the contract). The agent answered with something else: prose, a truncated reply, or nothing at all. When the reply is the agent refusing, you see "The agent declined this step" instead (above).
Fix. Run the step again. If it keeps failing, check that the agent's reference files are the current skill files and that its system prompt is the one Alara Code provides.
AGENT_NOT_AVAILABLE: "The project's agent is not available"
What you see. "Agent not available" (toast) or "The project's agent is not available" (failed turn), with the hint "Choose another agent in Project Settings › Agent." The message is one of:
- "The agent bound to this project is no longer shared with your organization in Alara. Bind another one in Project Settings › Agent."
- "Alara does not know that agent (...)."
- "That agent is not a reasoning (brain) agent and cannot run Alara Code skills."
Cause. Before every run the bridge checks the bound agent against the agents Alara currently shares with your organization. The agent was unshared, deleted, or is not a reasoning agent.
Fix. Open Settings › Agent in the project, click Change agent, pick one of the organization's agents and click Bind agent. If the agent you want is missing from the list, ask your Alara administrator to share it with Alara Code for your organization.
NO_AGENT_BOUND: "No Alara agent bound"
What you see. The composer shows "No Alara agent bound" and "Bind one of the organization's agents in Project Settings › Agent before running a step.", with an Open Project Settings link. A refused request shows the toast "No agent bound".
Fix. Bind an agent in Settings › Agent. No step can run without one.
Changing or removing the agent is refused
What you see. "A step is running on this project. Wait for it to finish, then try again." The agent buttons also show "Unavailable while a step is running."
Fix. Wait for the running step to finish, or stop it, then change the agent.
Alara and your session
SESSION_EXPIRED: "Your session expired"
What you see. A failed turn titled "Your session expired" with "Sign in again, then run the step again", or the message "Your Alara session has expired, sign in again." In the chat: "Your session expired while the agent was answering. Sign in again, then resend."
Cause. Steps run on the agent as you, using your sign-in. Your sign-in ran out during the run, or Alara rejected it as expired.
Fix. Sign in again and run the step (or resend the message). When any request finds your session gone, Alara Code signs you out and takes you to the sign-in page.
SESSION_EXPIRES_SOON: "Sign in again first"
What you see. A toast titled "Sign in again first": "Your session is about to expire, sign in again and re-run the step."
Cause. A step can take up to the run budget (25 minutes by default), and it needs your sign-in for the whole time. If your sign-in would expire before that, the bridge refuses to start rather than fail the step halfway through.
Fix. Sign out, sign in again, and run the step.
AGENT_REQUIRES_USER_SESSION: "Browser session required"
What you see. "Alara agents run as the signed-in person; this session carries no Alara identity (sign in through the browser)." When binding an agent: "Binding an agent needs your browser session, sign in through the browser."
Cause. Steps, chat and agent binding run as you in Alara, which needs a browser sign-in. A session without an Alara identity cannot start them.
Fix. Start the step from the Alara Code web app while signed in.
ALARA_DENIED: "Alara refused the request"
What you see. "Alara refused the request" as the title, Alara's own reason under it, and the hint "Check your access to this agent and its credit in Alara, or choose another agent in Project Settings › Agent." In the project chat the same refusal reads "Alara refused the request (...)." with Alara's reason in the brackets.
Cause. Alara answered, but refused, for example because you are not permitted to use this agent, or a limit on Alara's side was reached. The reason in brackets is Alara's.
Fix. Act on Alara's reason. If it concerns access, ask your Alara administrator.
ALARA_UNAVAILABLE: "Alara is not reachable"
What you see. "Alara is not reachable right now, try again shortly." or "Alara could not resolve the organization's agents, try again shortly."
Cause. The bridge could not reach Alara, or Alara could not look up your organization's agents.
Fix. Wait a moment and try again. If it persists, tell your administrator; nothing in the project needs changing.
ALARA_NOT_CONFIGURED: "Alara agents are not set up here"
What you see. "Alara agents are not configured on this deployment (ALARA_API_BASE_URL / BRAIN_STREAM_BASE_URL)."
Cause. The deployment is missing the settings that connect it to Alara.
Fix. An administrator sets the named variables. See Deployment and configuration.
ALARA_ERROR: "Alara answered unexpectedly"
What you see. "Alara answered unexpectedly (...)."
Fix. Run the step again. If it repeats, report the text under Details to your administrator.
BRAIN_PIPELINE_REQUIRED: "Alara agents are switched off"
What you see. A toast titled "Alara agents are switched off": "SDLC commands run on the project's Alara agent. Set BRAIN_PIPELINE=true on the bridge to run them."
Cause. Steps run only on Alara agents, and this deployment has that path turned off.
Fix. An administrator enables it on the bridge. There is no other way to run steps.
Native engine failures
On a Native project a failed step shows a plain title and one sentence of reason, with Retry step where retrying can help. Nothing already written is lost.
| Title | What it means | What to do |
|---|---|---|
| No AI provider key | The organization has no verified provider key | An administrator adds one in Settings › AI providers |
| No AI model chosen | The project and the organization have no model | Pick one in Project Settings › Engine or in AI providers |
| The AI provider rejected the key | The key was revoked or has expired | Replace and verify the key |
| The AI budget is used up | The monthly budget is spent | Raise it, or wait for the next month (UTC) |
| This step is too large | The step would pass the per-run cap | Raise the cap, or split the work |
| The AI stopped before finishing | The model hit its output limit | Run the step again; use Careful thinking only when needed |
| Too many steps at once / The AI provider is busy / The AI took too long | Limits or load at the provider | Wait and retry; a fallback model, if set, takes over automatically |
| The AI provider could not be reached / refused the request | A network or request problem at the provider | Check the provider's status and the key's permissions |
| The AI service is unavailable / not set up | The orchestrator is down or not configured | Ask whoever runs your deployment |
| The AI's answer was not usable | The reply failed the checks even after correction | Run again, or Request changes naming the problem |
See AI providers for budgets, models and the fallback.
Repository index
"Index the repository first"
What you see. On an existing-system project, /rfp and /scope are locked with "Index the repository first: a brownfield project's documents are written against its indexed code. Open the Repository tab and press Index." or "Indexing is still running…".
Cause. The repository has no indexed commit yet, or the last index failed or is still running.
Fix. Open the Repository tab and press Index. If it failed, the reason is shown there; fix it (for example the branch to index) and press it again.
The Architecture tab shows no picture or an old one
Cause. Nothing has been indexed or analysed yet, the repository holds only documents, or the index is behind the branch.
Fix. Press Re-index on the Repository tab, then Analyse on the Architecture tab. The tab says "Indexed, N behind" when the index is stale. You need Wiki › Index and Wiki › Ask for these buttons.
Running steps
A step is locked
What you see. In the composer, a step shows with a lock and a dashed border. The slash menu says, for example, "Approve the Project Scope first", "Run /sds first", or "An earlier phase has to finish first". If a request reaches the bridge anyway, the toast is titled "Locked": "Command /srs is locked. Complete /scope first."
Cause. Steps run in order, with a human approval between them. Scope waits for an approved RFP; SRS for an approved Scope; TAD for an approved SRS; SDS for an approved TAD; API Contract for an approved SDS; STS for an approved API Contract; the Delivery Plan for an approved STS; and the Proposal needs Scope, SRS and SDS written plus an approved Delivery Plan. Tasks and Compliance open once the STS exists, Traceability and the Threat Model once the SDS exists, and the UI Prototype once the TAD exists.
Fix. Do what the tooltip says: approve the named step, or run it. See How the pipeline works.
LOCK_CONFLICT: "Another command is running"
What you see. A toast titled "Another command is running" with one of:
- "Another command is already running for this project."
- "A command is running for this project. Wait for it to finish before approving."
- "A command is running for this project. Wait for it to finish before uploading the RFP."
- "Cannot delete project while a command is running"
Cause. A project runs one step at a time, including one started by someone else. Approving, uploading an RFP and deleting the project also wait for it.
Fix. Wait for the running step to finish (it shows in SDLC Pipeline, and in Activity as running), or stop it with Stop. You can keep chatting with the agent while a step runs.
ORG_CONCURRENCY_LIMIT: "Organization limit reached"
What you see. "Your organization already has N of M agents running. Wait for one to finish, then try again."
Cause. Your organization has a cap on how many steps can run at the same time across all its projects, and it is reached.
Fix. Wait for another run to finish, then start the step again.
"Accepted with N unresolved checks"
What you see. The document is ready for review, and a note above Approve lists checks it still fails, for example a missing section, an id that is never cited, or too few diagrams.
Cause. The bridge checks every document the agent writes: the required section headings, every id the step owns, each ```mermaid block closed and starting with a diagram type, the minimum number of diagrams, and a size limit. A failed check does not send the agent back to write the document again: the draft is kept for you with the problems listed, and Fix failed checks asks the agent to change only those parts.
Fix. Read the listed checks against the document. Approve it if the gaps do not matter, or use Request changes and name them, the agent revises the draft with your notes.
"The agent's reply still fails N check(s) the next step depends on"
What you see. A failed turn whose reason lists, under "Still failing:", each check with where it is, what was expected and what was found, for example a requirement with a category outside the allowed list, or a design component whose units do not cover its requirements.
Cause. These checks guard the data later steps read (requirements, test cases, the design's components and units, compliance findings), or the document was empty. The reply broke one of them, so the step stopped instead of saving data that would break the next step. The agent's last reply is written to the project's working files on the server for whoever maintains Alara Code; it is not shown in the app, and the next run does not start from it.
Scope, the RFP, the TAD, the API Contract, the Threat Model, the Delivery Plan and the UI Prototype no longer stop this way when the agent wrote a document: the draft is kept for review with the problems listed, and you can approve it as it is or request changes (see "The agent could not fix N problems" below). They still stop when the document is empty. The Proposal is the exception: only an empty document stops it, and any other problem is listed on a draft you can still approve.
Fix. Run the step again; if the same check keeps failing, add a note naming it, or check the agent's model and persona in Alara. See Document checks and versioning.
"The agent could not fix N problems the next step reads"
What you see. A turn Awaiting your review whose note above Approve says the agent could not fix N problems the next step reads, after a number of attempts. Approve is enabled.
Cause. The agent's draft broke a check the next step reads, but it did write a document. A step makes one attempt by default and does not repair its draft by itself, so the draft is kept as the agent wrote it: its work is not lost and no step is left stuck.
Fix. Press Show details to read the problems. Approve the draft as it is to move on (the approval records how many checks were open), or press Fix failed checks to have the agent change only the faulty parts (or Request changes and name them yourself).
"The agent did not return a usable reply"
What you see. A failed turn titled "The agent did not return a usable reply", listing a check such as "the whole reply: expected exactly one JSON object".
Cause. None of the agent's replies could be read: not as the step's JSON, and not as a Markdown document either. Alara Code repairs common slips first (a fence around the JSON, raw line breaks inside strings, trailing commas, typographic quotes, a reply cut off at the end), and for document steps a reply written as Markdown is used as the document. This failure means none of that worked.
Fix. Run the step again. If it keeps happening, check the agent's model and persona in Alara.
"Command /X finished but did not produce ..."
| Text | Cause | Fix |
|---|---|---|
| "Command /X finished but did not produce a new version, the artifact is unchanged since the last approval, so there is nothing to review." | The re-run produced the same document as the approved one. | Nothing to do. To change the document, run it with different input or request changes while it is under review. |
| "Command /X finished but did not produce the expected artifact. The command may need to be re-run." | The run ended without registering its document. | Run the step again. |
| "Command /tasks did not produce a ticket manifest, it likely stopped at a precondition (e.g. design components are missing implementationUnits[]; re-run /sds, then /tasks). ..." | The design has no implementation units for some components. | Re-run SDS, approve it, then run Tasks. |
Precondition messages
Some failures name a missing input, for example "artifacts.srs missing: run /srs first.", "requirements[] is empty, run /srs first.", "designComponents[] is empty, run /sds first." or "No implementation units on: DC-003: re-run /sds (it now emits implementationUnits)." Run the step the message names, then try again.
"The step failed" with no reason
What you see. "The step failed" and "Run it again, or open Activity for the full record." The live output may have said "Command failed. Check server logs."
Cause. An unexpected error on the bridge. The full message is kept in Activity.
Fix. Run the step again. If it repeats, send the Activity message to your administrator.
Runs marked as errors after an interruption
| Text in Activity | Meaning |
|---|---|
bridge-restart-sweep | The bridge restarted while the step was running, so the run was ended. |
stale-lock: cleared on next acquire | A run was still marked running after 30 minutes with nothing behind it; the next start cleared it. |
Stopped: no progress for 15 minutes. or Stopped at the 110-minute limit. | The run stopped itself and shows as aborted. Its finished work is kept: Resume continues from it without paying for it again. |
Stopped: your sign-in was about to expire. | Sign in again, then Resume. The finished work is kept. |
In each case, run the step again.
Stop fails
"Run is not active" means the run had already finished when you clicked Stop. Refresh the page to see its outcome.
Connecting Alara Plan
In Settings › Alara Plan, paste two things from Alara Plan's Settings › Service keys › New key screen: the service key and the organization id shown beside it, each with its own Copy button. Alara Plan is its own workspace, so its organization id is not this organization's. Plan checks both, and that you are a member there, before anything is saved.
"This key belongs to another Alara Plan organization"
The organization id doesn't match the organization the key was created in. Copy the id shown beside that key in Plan, not this organization's id.
"That Alara Plan organization is already connected to another Alara Code organization"
Each Alara Plan organization serves one Alara Code organization. Ask whoever connected it to disconnect it in their Settings › Alara Plan (possible once none of their projects is linked), or use a key from a different Plan organization.
"This organization's projects are linked to Alara Plan organization …"
While any project is linked to Alara Plan, the Plan organization can't change: those projects only exist there. Save a key created in that same Plan organization. Disconnecting keeps the pairing for the same reason, so a new key from it resumes syncing.
"Your account isn't in this organization in Plan yet"
Plan acts as you, and only accepts people its organization knows: on a team, a department head, or a participant. Ask a Plan admin to add you to a team, then try again.
Review and approval
| Text | Cause | Fix |
|---|---|---|
| "Cannot approve /X: it has not been generated yet." | There is no draft to approve. | Run the step first. |
| "Cannot approve /X: the draft file is missing on disk. Re-run /X." | The draft was lost. | Re-run the step. |
| "Cannot amend /X: it is already approved. Re-run /X to make further changes." | Request changes works only while a document is awaiting review. | Re-run the step. |
| "Cannot amend /X: no draft to edit. Re-run /X to regenerate it." | The draft that Request changes edits is gone. | Re-run the step. |
"The traceability matrix is computed from the SRS and SDS, change those documents, then re-run /traceability." (NOT_AMENDABLE) | Traceability is approve-only. | Change the SRS or SDS, then re-run /traceability. |
Request changes is missing on the Traceability Matrix
What you see. The Traceability turn shows Approve but no Request changes, with "Read it first, it is computed from the SRS and SDS, so change those documents to change it."
Cause. The matrix is computed from the SRS and SDS, so there is nothing for the agent to revise.
Fix. Approve it, or change the SRS or SDS and re-run /traceability.
A step shows "re-run, upstream changed"
What you see. An approved step's button in the composer reads /srs re-run, upstream changed.
Cause. A step it depends on was run again after it was produced, so it was built on an older version of its inputs. Its approval still stands; the label tells you it may be out of date.
Fix. Re-run the step if the upstream change matters to it, then review and approve the new version. Re-running a step replaces its draft and asks for approval again. See Review, approve, request changes.
Project chat
| Text | Cause | Fix |
|---|---|---|
| "The agent is still answering" / "The agent is still answering the previous message." | The chat takes one message at a time per project. | Wait for the reply, then send. |
| "Messages are limited to 8000 characters." | The message is too long. | Shorten it, or split it into several messages. Longer material belongs in an RFP upload. |
| "Write a message first." | The message was empty. | Type a message. |
| "The agent could not answer: ... Send the message again." | The agent's reply could not be used. | Send the message again. |
| "Alara refused the request (...)." | Alara answered but would not let you use the agent. The reason in brackets is Alara's, for example that the agent's credit is used up. | Act on the reason, or choose another agent in Project Settings › Agent. |
| "Alara is not reachable right now …" | Alara could not be reached. | Try again shortly. |
Uploading an RFP
| Code and toast | Text | Fix |
|---|---|---|
| RFP_MISSING: "No file attached" | "Attach the RFP document (PDF, Word or text)." | Choose a file. |
| RFP_UNSUPPORTED: "Unsupported file type" | "The RFP must be a PDF, Word (.docx) or text file." | Upload a .pdf, .docx, .txt or .md file. Older .doc files are not read; save as .docx. |
| RFP_UNREADABLE: "The RFP could not be read" | "This file could not be read: it contains no usable text (a scanned, image-only PDF yields nothing). Please upload a text-based PDF or Word document, or paste the content directly." | Upload a text-based version, or paste the content into the chat and use Generate RFP. |
| LOCK_CONFLICT | "A command is running for this project. Wait for it to finish before uploading the RFP." | Wait for the run to finish. Upload RFP is disabled while a step runs. |
Permissions
"Permission required" / "Needs Projects › Run › create"
What you see. A disabled button whose tooltip reads "Needs <module> › <action>", or a toast titled "Permission required": "Your role does not include <module> › <action>. Ask an organization administrator to add it to your role in PolyX."
Cause. Where your deployment enforces module permissions, each action needs a grant in your organization role: Projects › Run for running, approving, requesting changes, uploading an RFP and chatting; Projects › Abort for Stop; Projects › Binding for the agent; Integrations for the repository. Creating a project gives you no extra rights on it.
Fix. Ask an organization administrator to add the named grant to your role in PolyX. Changes can take a minute to reach Alara Code. See Members and permissions.
"Project not found"
What you see. "Project not found" and "The project may have been deleted or you do not have access."
Cause. The project was deleted, or you cannot see it: it is in your organization but not shared with a team you are on (the bridge answers 403), or it belongs to another organization (404). The page reads the same in every case.
Fix. Check that you are signed in to the right organization, and ask the project's creator or an organization administrator to give your team access.
"Not available"
A toast titled "Not available" ("This route is not mapped to a module.") means the action has no permission rule on this deployment. Report it to your administrator.
Documents
A document shows raw Markdown
Cause. The reader's view switch is on Markdown, which shows the source the document is written in.
Fix. Click Preview in the switch at the top of the document (next to its status badge). The choice resets to Preview when you open another document.
A diagram is not drawn
What you see. "Drawing diagram…" that stays, or "This diagram could not be drawn: ..." followed by the diagram's source.
Cause. Diagrams are drawn in your browser from the Mermaid text in the document. The bridge checks that each diagram block is closed and starts with a known diagram type, but it cannot check every detail of the syntax, so an occasional diagram fails to draw. The rest of the document is unaffected.
Fix. The source shown under the error still carries the content. To get a corrected diagram, use Request changes while the document is under review and name the diagram, or re-run the step. If diagrams never draw, reload the page: the drawing library loads the first time a diagram appears.
The document card has not appeared yet
Cause. A turn offers its document card only once the run has written the document and has not failed or been stopped. While the step is working you follow it in the live panel; a failed or stopped run never shows a card, because the document registered for that step is still the previous version.
Fix. Wait for the step to reach "Awaiting your review". If the run failed, fix the cause and run it again. Older documents are always available in the Artifacts tab.
"Document not available" and other reader messages
| Title | Meaning | Fix |
|---|---|---|
| Document not available | The document could not be loaded, often because its step is still running. | Try again once the command has finished. |
| This file opens outside the browser | The file type cannot be shown in the reader. | Use Download the file. |
| This file is too large to preview | "This file is too large to show in the browser, download it instead." | Use Download the file. |
| This file could not be read | The stored file is damaged or unreadable. | Re-run the step, or download the file. |
| "This document is empty. Re-run /X to regenerate it." | The stored document has no content. | Re-run the step. |
See Read and export documents.
Board and repository
For "No tickets yet", "Publish failed", "Sync failed" and the Alara Plan banners, see The delivery board. Tickets are moved in Alara Plan, not on the board. For repository connection and push errors, see Repository integration.
Publish to Alara Plan is disabled, TICKETS_NOT_APPROVED
What you see. Publish to Alara Plan is disabled with "Approve the tickets first, approving publishes them to Alara Plan." A call to POST /api/projects/:id/board/publish answers 409 TICKETS_NOT_APPROVED.
Cause. The tickets are awaiting your review. A /tasks run no longer publishes to Plan; approving the tickets does.
Fix. Approve the tickets, on the board with Approve tickets or on the Tasks turn in SDLC Pipeline. In a linked project that publishes them. If Plan fails at that moment, the approval still stands; use Publish to Alara Plan to retry. See Review the tickets.